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. Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

Hi,

I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse
3.4.2), the ADT & DDMS Eclipse plugins (0.9.1.v200905011822-1621), and
successfully worked my way through the Hello World Tutorial.  However
I'm not able to get very far into the Notepad Tutorial because I'm not
able to properly import the project files.  No problems downloading
the ZIP archive and extracting the files to sub-directories of my
Eclipse workspace directory, however I'm then unable to open them as
Android projects in Eclipse.

The Notepad Tutorial instructs me to:

1. Start a new Android Project by clicking File > New > Android
Project.
2. In the New Android Project dialog, select Create project from
existing source.
3. Click Browse and navigate to where you copied the NotepadCodeLab
(downloaded during setup) and select Notepadv1.

This is where I hit a problem, as with my combination of ADT plugins
and Eclipse version the New Android Project dialogue doesn't have a
'Browse' button or any other way to select a path for the creation of
a project from existing source!  All I get is an error stating
"AndroidManifest.xml not found in samples." and no way to proceed any
further.

As that was a dead end I tried to import Notepadv1 as a General
Project and use the Android Tools to convert it to an Android project
afterwards.  The general project dialogue at least gives me the option
of selecting the path to the Notepadv1 project directory so I'm able
to create the first project, however when I then right click and
select Android Tools > Convert to Android Project I get an 'Problem
Occurred' dialogue windows which tells me that "'Convert Project' has
encountered a problem.  Notepadv1 does not exist."  The Details>>
button doesn't give me any details.

The project now appears as an Android project, but fails to build
after a clean or a modification to the files.  The Android ADT error
in the Problems tab is 'Failed to get output folder!'.  If I try
Android Tools > FIx Project Properties I get the same error dialogue
as with Convert Project.

I've search these groups, and the web in general, and wasn't able to
come up with any solutions to my problems with what really ought to be
straightforward.  Can anyone give me some pointers as to what is going
wrong?

--~--~---------~--~----~------------~-------~--~----~

2. having a newbie issue with my app

I'm trying to run some simple code to access a database and populate
TextViews on the the screen with the data that they return...and it
works great!...except when the activity is put into the background and
is eventually killed, then reopened, the TextViews all show their
default states prior to the code in my onCreate.  So i basically have
a blank screen.  The only way to get them to repopulate is by
navigating back to a splash screen that allows you to go back into the
activity.  I've tried moving the code that populates those fields into
the onResume to no avail.  Should I be using a SharedPreference,Editor
for this?  Are there any other options that will allow me to keep the
values in my TextViews when the activity is resumed?

--~--~---------~--~----~------------~-------~--~----~

3. Can we develop android apps in C or C++?

4. It there a bug in the1.6 Emulators in landscape mode ?

5. happy diwali

6. Does there exist a Google Search APP widget? How to use own Launcher and Google Search

7. ListActivity.onListItemClick(...) not being invoked