Dev question: how to prevent Adobe Reader from copying pdfs to "Download/Adobe Reader"?

I am making an app that downloads pdf files from a server and the users can decide to store them in the phone. Those files are kept in the app's private storage.
The pdf files can be opened from inside the app. The problem is that every time a pdf is opened, adobe reader copies it in "Download/Adobe Reader" (the path may be different depending on the device and the android version). Those pdf files should not be available from outside my app. How can I prevent adobe reader from creating copies in that folder? Do I really have to make my app track them down and delete them? It wouldn't be the safest solution...
In order to open the files, I se up a content provider:
from the manifest:
<provider
    android:name="android.support.v4.content.FileProvider"
    android:authorities="com.example.myapp.fileprovider"
    android:exported="false"
    android:grantUriPermissions="true" >
    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/filepaths" />
</provider>
And then, in a method, I do this:
File pdfToRead = new File(pdfPath);
Uri uri = FileProvider.getUriForFile(context, "com.example.myapp.fileprovider", pdfToRead);
for (ResolveInfo resolveInfo : appsList) {
    String packageName = resolveInfo.activityInfo.packageName;
    context.grantUriPermission(packageName, uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
openPDF(context, uri);
public static final void openPDF(Context context, Uri localUri) {
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setDataAndType(localUri, PDF_MIME_TYPE);
    context.startActivity(i);
Thanks for the help.

Meh, I just hoped there was a way to tell acrobat "don't create a copy of the file because it's private". For now, I'm detecting the "downloads/Adobe Reader" folder, look if there's the file that was opened and delete it.
Now I need to know something that I can't ask on stackoverflow: what paths does Adobe Reader use to create the "Adobe Reader" folder? Because not every device has an external sd card (external, not removable. Just for clarity). In my device it's at "Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)+"/Adobe Reader".

Similar Messages

  • How do I remove password protection from a PDF file in Adobe Reader

    How do I remove password protection from a PDF file in Adobe Reader?

    PDF security can only be implemented or removed using Adobe Acrobat.

  • Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    You can extract pages with Adobe Acrobat, not Adobe Reader.

  • How do I disable Adobe Reader from opening pdfs?

    how do I disable Adobe Reader from opening pdfs in Safari? I tried unchecking the box for opening pdfs in browser under Adobe's Internet prefs, but that didn't seem to work.

    Hello-
    I actually saw a solution to this earlier today. To disable PDF viewing in safari, first quit safari, then open terminal, and type in this command:
    defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
    To re-enable PDF viewing in safari simply open the terminal, and change the "YES" in the command above to a "NO"
    Hope this helps.
    You may also find this link interesting:
    http://www.macworld.com/2005/10/features/safarisecrets/index.php?lsrc=mwtoprss
    Kevin

  • How do I extract pages from a pdf using 'Adobe PDF Pack'?

    How do I extract pages from a pdf using 'Adobe PDF Pack'?

    I think you have to buy extractor for 1.99 a month to extract PDF.  But I am having trouble activating it.  Good luck.

  • How do I get firefox to open pdf files with Adobe reader instead of google?

    Firefox is unsucessfully using google to open pdf files.  How do I get firefox to open pdf files with Adobe reader?
    Message was edited by: veeryTalonted

    "Google" is a search engine (website) and NOT (repeat: NOT) a PDF viewer. It can't and won't open PDFs in any real or imaginable way.
    Firefox added their own proprietary PDF viewer with version 20 - they're on 21 now. I'll be the first to admit "it sucks". You CAN'T fill in PDF forms with it, and you can't email them from the page like with Opera, Safari or Chrome (which use the reader plug-in still).
    Unfortunately, the ONLY option you have now that they've added it and killed the ability for the Reader plug-in to work with Firefox, is Tools>Options>Applications - select Portable Document Format(PDF) and choose "Use Adobe Reader (Default)". What that will do is FORCE Firefox to download the PDF instead of opening it in their terrible PDF viewer in the browser window.
    Or... use one of the other browsers I mentioned. They're all free.

  • I recently loaded OSX mavericks on my Imac. I now find I cannot open any Adobe products from CS5. The error message reads " to open Adobe illustrator CS5.app, you need to install a JAva SE 6 runtime. Would you like to check and install one?

    I recently loaded OSX mavericks on my Imac. I now find I cannot open any Adobe products from CS5. The error message reads " to open Adobe illustrator CS5.app, you need to install a JAva SE 6 runtime. Would you like to check and install one? I try to install but get the error" download error". As far as i know I'm using Adobe Java 7. None of my CS5 suite works anymore............and i really dont want to upgrade to a monthly cloud service fee as i hate this policy with a passion.

    This goes for Dreamweaver CC on Mavericks!!!!! THANK YOU!
    I couldn't launch Dreamweaver CC. An error told me to install "java se 6 runtime". But when I clicked  OK I got another error telling me there is a network problem! I found this forum post on CS6 products, so I tried the download link, installed java 6 and presto, it worked! Thanks!

  • How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?

    How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?  Get error "There was an error opening this document. Access denied".  Disabling Protected Mode in Reader doesn’t always work.
    McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683

    If Reader ISN'T in the list of prpgrams to open with, click "Browse"
    In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
    Select "AcroRd32.exe" and click "Open"
    Make sure "Always use the selected program to open this kind of file" is checked and click "OK".

  • Adobe Illustrator CS4 Error: Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf.  Verify that the file exists and that you can access it.  AdobeColorCommonSetRGB

    Iam trying to load illustator in my PC i get following error while loading Application CD 2
    Adobe Illustrator CS4
    Error:
    Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf. Verify that the file exists and that you can access it.
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    My serial no. [Removed by moderator]

    Download a copy an installer for CS4 from the links on this page:
    Other downloads

  • How do I open RAW images from DSC_RX100M3?  I downloaded Adobe DNG converter 8.4, but could not convert the images?

    How do I open RAW images from DSC_RX100M3?  I downloaded Adobe DNG converter 8.4, but could not convert the images?

    Small correction to what SSprengel wrote...
    The RX100M3 is supported only by version 8.5.  It sounds like you need a newer version.
    Photoshop Help | Digital Negative (DNG)
    -Noel

  • How to transfer license key from Windows to Mac for adobe photoshop lightroom 5?

    how to transfer license key from Windows to Mac for adobe photoshop lightroom 5?

    You can download from this link and validate with your serial number. You can run LR5 on both machines.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5856

  • How to prevent a file from stripping?

    I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
    # $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
    # Maintainer: dale <[email protected]>
    pkgname=vacation
    pkgver=1.2.6.1
    pkgrel=1
    pkgdesc="an automatic mail-answering program"
    depends=(gdbm)
    url="http://www.tosn.org/projects/vacation/"
    source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
    build() {
    cd $startdir/src/$pkgname
    mkdir -p $startdir/pkg/usr/{bin,man/man1}
    # keeps binary from building
    rm -rf vacation
    # fixing the Makefile - not only for arch64
    sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
    sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
    mv vacation.man vacation.1
    make install
    These file have been created:
    [andyrtr@workstation64 vacation]$ ls -lRA pkg/
    pkg/:
    insgesamt 0
    drwxr-xr-x 4 andyrtr users 96 2006-01-28 09:32 usr
    pkg/usr:
    insgesamt 0
    drwxr-xr-x 2 andyrtr users 96 2006-01-28 09:32 bin
    drwxr-xr-x 3 andyrtr users 72 2006-01-28 09:32 man
    pkg/usr/bin:
    insgesamt 24
    -rwxr-xr-x 1 andyrtr users 16864 2006-01-28 09:32 vacation
    -rw------- 1 andyrtr users 470 2006-01-28 09:32 vaclook
    pkg/usr/man:
    insgesamt 0
    drwxr-xr-x 2 andyrtr users 48 2006-01-28 09:32 man1
    pkg/usr/man/man1:
    insgesamt 0
    [andyrtr@workstation64 vacation]$
    I get this error:
    ==> Starting build()...
    gcc -march=x86-64 -O2 -pipe  -Wall  -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
    install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
    install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
    strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
    install: strip fehlgeschlagen
    make: *** [install] Fehler 1
    ==> ERROR: Build Failed.  Aborting...
    Krusader detects it as a Perl program. Any idea?
    AndyRTR

    Posted: Sat Jan 28, 2006 8:45 am    Post subject: How to prevent a file from stripping?
    I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
    Code:
    # $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
    # Maintainer: dale <[email protected]>
    pkgname=vacation
    pkgver=1.2.6.1
    pkgrel=1
    pkgdesc="an automatic mail-answering program"
    depends=(gdbm)
    url="http://www.tosn.org/projects/vacation/"
    source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
    build() {
       cd $startdir/src/$pkgname
            mkdir -p $startdir/pkg/usr/{bin,man/man1}
            # keeps binary from building
            rm -rf vacation
       # fixing the Makefile - not only for arch64
       sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
       sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
       mv vacation.man vacation.1
       make install
    These file have been created:
    Code:
    [andyrtr@workstation64 vacation]$ ls -lRA pkg/
    pkg/:
    insgesamt 0
    drwxr-xr-x  4 andyrtr users 96 2006-01-28 09:32 usr
    pkg/usr:
    insgesamt 0
    drwxr-xr-x  2 andyrtr users 96 2006-01-28 09:32 bin
    drwxr-xr-x  3 andyrtr users 72 2006-01-28 09:32 man
    pkg/usr/bin:
    insgesamt 24
    -rwxr-xr-x  1 andyrtr users 16864 2006-01-28 09:32 vacation
    -rw-------  1 andyrtr users   470 2006-01-28 09:32 vaclook
    pkg/usr/man:
    insgesamt 0
    drwxr-xr-x  2 andyrtr users 48 2006-01-28 09:32 man1
    pkg/usr/man/man1:
    insgesamt 0
    [andyrtr@workstation64 vacation]$
    I get this error:
    ==> Starting build()...
    gcc -march=x86-64 -O2 -pipe -Wall -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
    install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
    install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
    strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
    install: strip fehlgeschlagen
    make: *** [install] Fehler 1
    ==> ERROR: Build Failed. Aborting...
    Looks like its tring to install to /var/abs/extra/system/vacation/pkg/usr/bin....... ????
    try make DESTDIR=$startdir/pkg/usr install

  • How to down my picture from my google drive to adobe photoshop touch on my table

    How to down my picture from my google drive to adobe photoshop touch on my table. when I download the photo and try to put two of them together so I can blend them it wont the two picture come together.
    help

    I have the same issue as maxworks67, my operating system is Win 8.1 (update version) and the msg I receive when I adden the plug in is
    and then the PC CC 2014 closes whit msg

  • How do you combine pages from separate PDFs?

    How do you combine pages from separate PDF files into one document?

    I use Adobe Acrobat for this.

  • How can I delete pages from a pdf file

    How can I delete pages from a pdf file

    Hi timk,
    None of the Acrobat.com online services allow you to edit a PDF file. But, in checking your account, I see that you purchased an Acrobat Standard subscription, and you can certainly use that to edit a PDF file.
    Have you downloaded and installed Acrobat Standard? It sounds to me as though you may be opening the PDF file in Adobe Reader, rather than Acrobat. (Reader doesn't allow you to edit PDF files.)
    If you haven't already, download and install Acrobat from https://cloud.acrobat.com/acrobat. Then, make sure that you're opening your PDF files in that rather than Reader, when you want to edit them.
    Please let us know how it goes!
    Best,
    Sara

Maybe you are looking for

  • Lenovo Fingerprint Software stopped working under Win 8.1

    Just upgraded to Win 8.1 (64-bit) and to the latest drivers for W700 (2753-WBB).  Major trouble with the Thinkvantage Fingerprint Software. The Lenovo Fingerprint Software version 3.3.2.50 for Win 7 (64-bit) was fine under Win 8.0 but it doesn't work

  • Youtube: security sandbox violation

    Does anybody have a recipe for loading the AS3 chromeless player into a Flex application such that you don't get the 'incompatible context' errors constantly? *** Security Sandbox Violation *** SecurityDomain 'http://core-dev.thismoment.com/client/De

  • How to update dual stack kernel

    hi all, all we know sap support dual stack in slm and PI. I had a slm71sr1 install with swpm/jvm use kernel 402 in win2008. I want to update kernel to ver600. the abap stack can logon after the update. but mmc show the java can't startup. I'd try to

  • Delete several partitions in physical model

    Hi All, I don't know if someone has the same necessity than me, if not maybe is because I don't know how to do something that is already implemented, anyway, my question is: How can I delete several partitions (400) at the same time from the same tab

  • Connections to CMS/AUDIT system Databases lost

    we are often losing connection to CMS/AUDIT system Databases therefore users can not log into Infoview. The work around is to restart the Server Intelligence Agent (sia.exe) Server Details: we have BusObjects Edge standard XI 3.0 Application Server: