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

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.



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. Adding a system-wide hardware key listener

I'm working with a couple of devices that have some extra keys and I'd
like to map an Activity to one of them, but I want to do it system-
wide. I want it to function like the camera key does on the G1/Dream
phone; if you press that key while in an application (home, gmail,
etc.), the .Camera activity will be called. I would like to implement
the same sort of functionality with these devices so that I can load
an appropriate activity to handle a specific, custom part of the



2. Ant vs Eclipse build difference

The Eclipse build for my 1.6 application project is succeeding and the
Ant build is failing.  I'm looking for help on why they aren't
behaving the same way.

We are developing on Mac OSX 10.5.8 with Eclipse 3.5 against SDK 1.6 +
Google APIs.  There are no setting changes in Eclipse, either at
workspace or project level.  Similarly, our ant is also a vanilla-
flavored unmodified installation of 1.7.1.  JDK is 1.5.0_22.  The
CLASSPATH environment variable is not set.  JAVA_HOME is /Library/Java/

The application was initially created by a team member using the
Eclipse plugins.  The application references two jar files, one of
which has a dependency on javax.xml.bind.annotation.XmlSeeAlso, which
is not defined anywhere in our code or in android.jar.  The other jar
file has an explicit dependency on android.jar.  I generated the Ant
build file using android update.

The Eclipse project builds an apk and runs the application in the
emulator.  I think this is incorrect behavior.

The Android project fails to build.  I think this is correct behavior. cannot access javax.xml.bind.annotation.XmlSeeAlso
    [javac] file javax/xml/bind/annotation/XmlSeeAlso.class not found

Any ideas as to why the two build methods are behaving differently?  I
would expect them both to fail.




3. Spica upgrade to 2.1 , it's finally official :)

4. Test myTracks

5. Masking password input in extracted UI

6. Changing Textview dynamically in the same activity/

7. Paging XL user