[android-developers] Re: ExternalStorage, ContentProviders, and Startup

2010-10-04 Thread Adam Hammer
I found it and it does exactly what I need. My api was set to 2.1, but
that function is 2.2. My min-sdk is level 8 so I'm ok with that.

Adam

On Oct 4, 4:50 am, Adam Hammer adamhamm...@gmail.com wrote:
 The answer I think I was looking for was
 ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, I can't exactly find it in
 the Intent class though.

 That would solve at least one of my problems. If it was guaranteed to
 be triggered even when there were no applications, in the case that
 the card is ready and loaded and done with, it would be perfect.

 Thanks.
     Adam

 On Oct 3, 9:39 pm, Dianne Hackborn hack...@android.com wrote:



  I would strongly recommend not putting such apps on the SD card.  There is a
  reason that apps must explicitly opt-in to being on the SD card, and why we
  recommend so many types of apps don't do 
  so:http://developer.android.com/guide/appendix/install-location.html#Sho...

  http://developer.android.com/guide/appendix/install-location.html#Sho...(I
  guess add apps that publish content providers for other apps to use to
  that list.)

  With the transient nature of the SD card, we generally consider it to be a
  good place for large apps that are self-contained.  Games, for example. :)

  On Sun, Oct 3, 2010 at 7:27 PM, Adam Hammer adamhamm...@gmail.com wrote:
   I have a ContentProvider in a separate apk that supplies data to my
   live wallpaper. At boot time my content provider does not seem to be
   available. I can wait until the SD is mounted, but it's still not
   ready, as I assume it makes the provider available post mount.

   So how do I wait for the providers to be loaded when stored on sd?

   --
   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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ExternalStorage, ContentProviders, and Startup

2010-10-04 Thread Adam Hammer
The answer I think I was looking for was
ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, I can't exactly find it in
the Intent class though.

That would solve at least one of my problems. If it was guaranteed to
be triggered even when there were no applications, in the case that
the card is ready and loaded and done with, it would be perfect.

Thanks.
Adam


On Oct 3, 9:39 pm, Dianne Hackborn hack...@android.com wrote:
 I would strongly recommend not putting such apps on the SD card.  There is a
 reason that apps must explicitly opt-in to being on the SD card, and why we
 recommend so many types of apps don't do 
 so:http://developer.android.com/guide/appendix/install-location.html#Sho...

 http://developer.android.com/guide/appendix/install-location.html#Sho...(I
 guess add apps that publish content providers for other apps to use to
 that list.)

 With the transient nature of the SD card, we generally consider it to be a
 good place for large apps that are self-contained.  Games, for example. :)



 On Sun, Oct 3, 2010 at 7:27 PM, Adam Hammer adamhamm...@gmail.com wrote:
  I have a ContentProvider in a separate apk that supplies data to my
  live wallpaper. At boot time my content provider does not seem to be
  available. I can wait until the SD is mounted, but it's still not
  ready, as I assume it makes the provider available post mount.

  So how do I wait for the providers to be loaded when stored on sd?

  --
  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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en