Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Android DownloadManager Class: Don't Want to Download pdf files Multiple Times in Android Studio

As Shown the image like that I want in Android studio for pdf Files

enter image description here

File file=new File(Environment.DIRECTORY_DOWNLOADS,filename);
if(file.exists){
// do something
}
else{
// do something
}`

But the Above Code is not Working and it creates a new file..What is the code for Android Studio..Please Help me.

Comments