Re: [android-developers] intent for using a file manager to save a file
Did you check openintents?
For non standard intents, you can you usually do a "best try" by
looking for the common file managers and seeing if they have public
intents for you to use, then scan the user's system and see if they
have one of those installed, if so you can use it, and if not, you can
revert to doing something by yourself.
It's quite high possibility the user will have no file manager
installed, I should think..
You can poll the package manager to see if there's anyone available to
handle your intent,
kris
On Sun, Aug 12, 2012 at 7:52 PM, Jim Graham <spooky130u@gmail.com> wrote:
> On Sun, Aug 12, 2012 at 05:42:34PM -0600, Justin Anderson wrote:
>> AFAIK there isn't really an intent for this... You would either have to
>> write your own file explorer or tap into one (or many) existing ones... To
>> do the latter you would have to contact each developer to find out how they
>> expect to receive the intent data to do that, if they support it at all.
>
> No standard intent, then? Oh well. Now that I think about it, I've seen
> file managers, gallery apps, share, and a few others all lumped together
> quite a few times. I guess everyone is doing what you said. :-(
>
> I suppose I could have a default directory, and ask the user if they want
> to store photos to a group (e.g., when I go to a homebrew club meeting,
> save it to /mnt/sdcard/UCPro/HBU/Christmas2012/...... (where /mnt/sdcard
> is determined by File(Environment.getExternalStoragePublicDirectory....),
> not just assumed to be that exact path), and is checked to make sure it
> exists, and so on.
>
> Thanks,
> --jim
>
> --
> THE SCORE: ME: 2 CANCER: 0
> 73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
> spooky130u@gmail.com ICBM/Hurr.: 30.44406N 86.59909W
>
> "The iPad is a status symbol for yuppies. The Android
> is for people who actually want something that works."
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home