Yeah, I used Service.startForeground() just in case the service was
being killed because it was in the background (and since this is an
AppWidget I guess my "App" isn't in the foreground, rather the
Launcher's "App" is in the foreground).

Am trying out ditching Zehon FTP for Java and using the native
URLConnection. unfortunately Android's implementation of
FtpURLConnection is hard-coded to guessContentTypeFromName(url) so it
doesn't want to download a text file that has an extension of,
say, .wtf...one of the reasons I wasn't using native URLConnection in
the first place.

I'm still interested to know/solve why my service gets killed when
using Zehon FTP for Java, but in the interest of meeting overall goals
of the AppWidget I'm now rejigging regexes to handle the FTP download
of an html file.

On Dec 11, 5:44 pm, TreKing <[email protected]> wrote:
> On Fri, Dec 10, 2010 at 8:45 PM, metal mikey <[email protected]> wrote:
> > I've since tried running my service as a foreground thread but that didn't
> > help.
>
> As a "foreground thread" you mean you had an ongoing notification in the
> notification area?
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to