[android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread John Gaby
> You have to admit, that's not a reasonable expectation for the user
> having to download a seperate app.  It's an invitation to 1-stars (and
> understandably so) if the user cannot find the widget.

Yes, that is what I was thinking as well (I was asking if there was an
automatic way to install a second APK, I did realize that the user
could manually install one).  If I put up a message when the app is
first installed telling them that they can install the Widget app, and
providing a link to the Market, do you think that I will get a lot of
flack.  Note that use of the Widget is an optional feature, and there
may be many who simply will not use it at all.  Considering that many
phones don't have a lot of internal storage, I really don't want to
force the user to install the whole app on the phone just to get a
Widget that he may not really want anyway.

On Jan 15, 7:02 pm, Zsolt Vasvari  wrote:
> >  So, it's a
> > bit of a pain for all involved, but it would allow you to have the
> > main APK installable to the SD card.
>
> You have to admit, that's not a reasonable expectation for the user
> having to download a seperate app.  It's an invitation to 1-stars (and
> understandably so) if the user cannot find the widget.

-- 
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: App Widget disappears on reboot

2011-01-15 Thread Zsolt Vasvari
>  So, it's a
> bit of a pain for all involved, but it would allow you to have the
> main APK installable to the SD card.

You have to admit, that's not a reasonable expectation for the user
having to download a seperate app.  It's an invitation to 1-stars (and
understandably so) if the user cannot find the widget.

-- 
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


Re: [android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 8:30 PM, John Gaby  wrote:
> Actually, after playing with it a bit, I have determined that the
> problem lies with installing the app on the SD card.

http://developer.android.com/guide/appendix/install-location.html#ShouldNot

> I presume that it is
> simply a bad idea to have a Widget that runs from the SC card, because
> the user can unmount it at any time.

Yup -- see the above link.

> My Widget is part of a larger app, which I would still like to install
> on the SD card.  I don't suppose that there is any way to install a
> second APK file for the Widget on the phone, is there?

Sure you can. You'd need to arrange for some sort of communication
between the two apps, so the app widget would have access to whatever
information its needs. And users would have to download/install the
app widget APK separately from your main application APK. So, it's a
bit of a pain for all involved, but it would allow you to have the
main APK installable to the SD card.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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: App Widget disappears on reboot

2011-01-15 Thread John Gaby
Actually, after playing with it a bit, I have determined that the
problem lies with installing the app on the SD card.  Apparently the
card is not mounted in time during a reboot.  I presume that it is
simply a bad idea to have a Widget that runs from the SC card, because
the user can unmount it at any time.

My Widget is part of a larger app, which I would still like to install
on the SD card.  I don't suppose that there is any way to install a
second APK file for the Widget on the phone, is there?

Thanks.


On Jan 15, 5:15 pm, Mark Murphy  wrote:
> On Sat, Jan 15, 2011 at 8:11 PM, John Gaby  wrote:
> > I have an App Widget which I place on my home screen.  It seems to
> > work fine, but when I reboot the phone, it is not only gone from the
> > home page, but is missing from the App Widget list, so I cannot add it
> > again.  Does anyone have any idea what might be going on here?
>
> Is your package mentioned anywhere in LogCat after the reboot?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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