File upload in background: thread/service/AIDL...?

by Anna PS » Tue, 02 Mar 2010 01:24:21 GMT


Sponsored Links
 Nothing, really. I just want to upload a file in the background, with
an icon in the status bar, and update the icon when the upload is
complete.

I might possibly want to call the main application back again when the
upload is complete or if there is a problem, but I don't expect to use
the Service for anything else.

Does that sound OK? So the most communication I would need is (i) pass
a filename to the Service, and (ii) go back to the main application
once the upload is complete.

Anna






--



File upload in background: thread/service/AIDL...?

by Anna PS » Tue, 02 Mar 2010 01:35:33 GMT


 Superb - thank you :)






--


Sponsored Links


Other Threads

1. Samsung Captivate sdcard issues.

Hello fellow android devs,

There appears to be more internal sdcard path location issues on the
horizon...

I recently got my hands on a lovely Samsung Captivate... quite a nice
phone. It, like the HTC Incredible, has an internal sdcard as well as
a slot for an external one. I had a chance to play with a friends
Incredible, and the external card's path is returned when calling:

   File sdfile = Environment.getExternalStorageDirectory();
   String sdpath = sdfile.getPath();

... and it works as expected, giving /sdcard as the path. I've not
been on the group lately, so I'm not certain how the issue with
accessing the Incredible's internal sd storage has been handled... but
on the Captivate...

Unlike the Incredible... when calling the same function, the same path
is returned, BUT it's pointing to the internal sd storage... The
external is instead mounted at /sdcard/sd

My app needs to access files on an sdcard somewhere... I guess I don't
care where exactly and I can provide instructions in a readme and even
maybe prompt the user and ask where they copied the game files.... but
I'd much rather be able to decide a standard location and stick to it.
Are there any talks of how this can be addressed?

-- 

2. How to quit the app?

I need to implement option to quit the app. I tried calling
System.exit(0) but Android restarts the app process immediately.

-- 

3. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

4. Identify Application from Input Method?

5. Opening the preferences.xml file

6. Application icon for wallpapers missing

7. Call to onDestroy() method of Service does not take place immediately from inside Activity