Android :: Managing Background Uploads
Oct 21, 2009
In our app we're doing background photo uploads. The current implementation works using a combination of a Service and an AsyncTask. The former will trigger the latter, which will do the actual network I/O.
My question is: since the user can trigger many uploads in parallel, is this the correct implementation pattern? The problem is that I can never call Service.stopSelf() from an upload task when it finishes, because those tasks don't know anything about each other or the service that triggered them (because of the very nature of AsyncTask).
Do I even need a Service here at all? I always thought services were meant for long running background tasks, but their documentation clearly states that one must execute blocking operations in a separate thread. What's the purpose of Services then? You could just fork an AsyncTask from an Activity, it would make no difference at all.
View 3 Replies
Apr 15, 2012
I'm looking for an App which allows efficient control of the 'Restrict background data' checkbox on a per-App Basis.
In ICS today I can navigate
Settings -> Data Usage -> "someAPP"
And then check/uncheck the 'Restrict background data' checkbox to make the data traffic explicit for me: If I don't use "someAPP" I can expect that there is no background data traffic generated by "someAPP" (no extra cost in roaming mode).
I do have some apps (e.g. a pushmail app for company mails) which I always want to allow the use of background data in order to get my mail.
Other's (e.g. use of gmail, G+, etc.) I want to toggle the behaviour very quickly:
If I'm in 'roaming' mode: disable, if in my home-network with flat cost: enable.
This is the reason I can't use the 'Mobile Data' switch.
Today I navigate as shown above, which is cumbersome and likely to be incomplete. I think of an app, where you can compose a list of apps (from the installed ones) and enable/disable 'restrict background data' for apps on this list with one click.
View 5 Replies
View Related
Mar 4, 2010
Anyone know how to unclog stalled uploads to Facebook? I've tried to upload vacation photos but they don't get through + remain somewhere between the cloud + my T-Mobile MyTouch phone. I've tried clearing the cache as well as logging off + relogging. Nothing seems to work.
View 7 Replies
View Related
Jul 7, 2009
This problem in the browser has been written about for months, with no response anywhere. Some of the threads just stop, but the problem is still there.Can anyone shed some light on how to workaround the problem in the browser when a web site allows for files (pictures, etc) to be uploaded, but when done through the g1 browser, the button says "uploads disabled".
View 5 Replies
View Related
Nov 9, 2009
I took a photo in San Francisco yesterday with Droid and uploaded it using Facebook app. But it is really tiny, downsized too much.Overall, it's a great phone. Do wish it had some Sense UI sexiness though!
View 5 Replies
View Related
Jun 20, 2010
perhaps it is just me but my phone, wife's phone and the phone in the Sprint store all have the same issue. Take a movie or a photo doesn't matter and try to share regardless of option and anything under 3mb goes it seems. Anyhting over gets "queued waiting for WiFi connection".Little upset with this as the Sprint peeps have no clue I'm not completely stupid and I can't figure it out. And frankly I'm paying for the hotsopt ability plus the extra charge for access to 4g, i live in a 4g market, Austin Texas I should be able to upload anything any size any time.
View 1 Replies
View Related
Oct 9, 2010
So I'm uploading the pictures I take through the share function to picasaweb.Unfortunately they are not completely uploading. It says they complete successfully but when I view them online the bottom 5% is a gray bar instead of the photo.It is like the whole jpeg didn't upload.Anybody else experiencing this? Know how to fix it?Evo is non-rooted and has all recent updates.
View 1 Replies
View Related
Jul 13, 2010
this will be a fix in Froyo, supposedly due out by christmas for all us EVO owners. (unless you have rooted it already). YouTube App won't upload Multiple movies. I take several clips when documenting my friends and family. then I like to upload them all at the end of the day off the phone. This seems like a normal practice, but it is something that the YouTube app seems to have a problem with.
Here is the scenario:
I'm in Videos.
I click Share.
I choose YouTube from the Pop-up.
Then I choose my videos (plural).
Now they are all in the Que.
First video in the que uploads slowly, and then randomly stops at 40 or 50 or 60% saying "Waiting to retry"
This is the case for every single Multiple Upload I do. So I ran tests with: Gmail - no luck cause it get's stuck on "Sending" with no progress bar. Browser - upload disabled on Mobile devices over browser. What works is - Uploading 1 video at a time.
View 6 Replies
View Related
Aug 15, 2010
Does anyone know what the My Uploads task is? Can it be killed?
View 1 Replies
View Related
Aug 26, 2010
Uploads from Evo videos are no longer going though, keep getting waiting one minute to retry messages Also the youtube widget doesn't work anymore since froyo, any fixes.
View 6 Replies
View Related
Aug 23, 2010
I tried some searching and was unsuccessful, so I apologize if tis has been covered before.I just recently decided to start posting pics I take with my droid onto facebook and am noticing tht I can only figure out how to load one photo at a time and having to repeat entire process for each photo.What I am curious about...is there a way that I am missing since the 2.2 update, or an application I can download to where I can select and upload multiple photos at once without having to repeat process for each picture.Any help from you guys is greatly appreciated.I enjoy all the discussions on here as tey have helped me many times in the past.
View 7 Replies
View Related
Nov 3, 2010
I just got rid of my Blackberry, and per that phone If i decided to take a pic on FB it would automatically update to fb page.. IS this possible on the moment and how do I set that up.
View 2 Replies
View Related
Sep 15, 2010
I'm suddenly not able to upload pics from my vibrant to Picasa; 3g or WiFi. Pics go into que and then fail and then keep retrying. Can;t figure out what the problem is.
View 1 Replies
View Related
Feb 24, 2012
Desperately need a firmware for Galaxy S2, and multiuploads is resolutely dead.
View 1 Replies
View Related
May 27, 2010
I seem to have noticed when I start the day. Use Astro File Manager's Prcoess Viewer to shutdown every task on my phone to conserve battery. All that is usually left running is Dialer, Android system, and android keyboard. I have used APN droid to shut off the internet and I use the power widget to turn off syncs and GPS. Even so at the end of the day, I check the process manager to see that maps and my uploads are running even though I have not used the phone. I was just wondering if there is a reason for this and if so does it affect battery life?
View 1 Replies
View Related
Oct 5, 2010
On my old phone (HTC Imagio) you would select "Share" and then it would pop back to the album where you could touch the thumbs for the pics you wanted to upload. When you touched it, the corner of the pic would fold over showing that it was selected, and you could then keep touching other thumbs to select as many as you would like and finish by hitting the soft key titled "Upload".On the Fascinate it appears that you have to select the pic in the album, hit share, hit Photobucket and then you have to scroll to the next and do it again and again until you have uploaded all your photos one at a time. Am I missing something, or is this just how the Fascinate and Photobucket app work together?
View 5 Replies
View Related
Aug 6, 2010
I am a long time Palm OS user who is just getting started with Android. I have a gmail account and I haven't paid much attention to managing contacts there. I chose to try importing my contacts from Gmail to the Android, and I got a huge list of 5000 people, basically everyone who has ever sent me an email over the last 7 years (and none of them have phone numbers).
View 1 Replies
View Related
Sep 3, 2010
With 2.2, the old Calendar and Corporate Calendar have been merged into one. A slight problem for me is that I preferred keeping the two separate. I don't use the Google Calendar much myself, but I share calendars with bandmates so I can see their schedules for booking purposes. Now, when looking at my calendar to see my own work and social schedules, I have to wade through everyone else's scheduled events. I wouldn't mind continued access to others' schedules, but is there an easy way to separate my Google and Outlook calendars, and/or choose whose Google calendar events appear in my Droid calendar? Ideally there would be an easily accessible switch in the menu for whose calendar items I see. Lacking that, is there a way to turn others event on/off from my phone?
View 1 Replies
View Related
Oct 19, 2010
You can manage wifi connectivity, and you can kind of manage 3G, but what about 4G, more specifically WiMAX? I saw an API on ClearWire's website, but I am not sure if Google is planning to include WiMAX as part of the SDK. Does anyone have an insight? I am looking for connect/disconnect functionality, failover connection settings, etc.
View 1 Replies
View Related
Jun 1, 2010
I have a service that listens to the serial port. According to data received from serial i switch between particular service states, and start particular activities on state transitions. I would like to accomplish it in following way: Let's assume there is one active Activity1 started from previous state, I call startActivity from service to start a new one Activity2, but I want to simulatenously destroy Activity1 when Activity2 gets on top of the stack. I tried to call finish() in Activity1.onStop but it seems not to work (Activity1.onDestroy() doesn't get called). I'd prefer to finish Activity1 after Activity2 gets on top in order to avoid blinking.
View 5 Replies
View Related
Apr 9, 2010
I have a simple app that uses a Google MapView. Now in the layout file for my map activity, I created an apiKey for the debug keystore and use that. However when I want to deploy my app, I need a seperate apiKey for production (based on when I sign my application), correct?
What I'm wondering is how do people manage these two apiKeys. When developing I want to use the emulator and the debug apiKey, but when I'm deploying / doing some integration testing with my phone, I want to use the production apiKey. To me, it seems that I need to remember before compiling for production, to swap out the apiKeys in my layout file. A very error prone process given my bad memory.
View 13 Replies
View Related
May 25, 2010
I'm building a suite of applications, meaning that I have a single set of code that gets customized via a single change of an API key. This means that all of the applications have the same activities, same behaviors, but different icons, package names, and application names depending on the client I am building for.
Unfortunately, I haven't figured out a clean way to do this. Because the package name is what the Android Marketplace uses, I've been changing it to com.nilobject.productname.clientname. However, this changes the package for all of the activities to no longer be in the package of the application, since they live in "com.nilobject.productname." Additionally, the autogenerated "R" moves, so all of the references to R in com.nilobject.productname break.
I'm using Eclipse for development. Should I just refactor the activities with each build to be in the same package? Is there a system for this that I don't know about?
View 4 Replies
View Related
Sep 14, 2009
I'm writing a game for a computer class that I'm currently taking for school. The game has a lot of graphics associated with it (mostly in .png format). There is too much data to simply include it as part of the 'res'. The way i'm currently doing it, is to store all of the graphics in a single zip file, in a folder on the SDCard, e.g., / sdcard/Game/PlayerImages.zip (or whatever). And then i'm using the ZipInputStream to read from those, then using the BitmapFactory to decode the stream and then draw them on the canvas. The problem that I'm having is that this method is terribly slow if I add a lot of images into the zip file. The best way I have found thus far is to name the .png files within the zip numerically, then use a for-loop to jump directly to a specific file, but this is still a very slow way of doing it. I would like to use a single file (like zip) to hold all of the files for several reasons. 1., i'm trying to use a file container so i can simply update graphic 4.png and then push it into the zip file (for example) from a server. 2., because android sees all image files on the sdcard when you open the gallery application. 3., easier to prevent data manipulation by doing an md5/sha-1 checksum on 1 zip file, rather than every time a file is opened if it weren't in a container.
View 6 Replies
View Related
Mar 31, 2009
I would like to dynamically build a view that would display a certain number of 'rows'. Here is a piece of code I wrote, but it is not working:
CODE:..............
View 2 Replies
View Related
Aug 12, 2010
I am trying to create multiple notifications in my application. To identify each notification uniquely, i have given them an unique identificationId.
Problem: When a notification is selected, Tabs activity is called passing the intent. I want to access the unique notificationId of the notification that was selected in Tabs. I tried intent.putExtra() to save the notificationId in the intent. But, for multiple notifications its overwriting the notificationId and returns the latest one. I dont understand as to why this is happening and how can i avoid this overwriting of notificationId.
View 2 Replies
View Related
Nov 22, 2009
How would one manage continuous updates to translations? I.e., when releasing a new version, you wouldn't want your translators having to manually copy and paste existing translations from the previous versions, or worse, re-translate everything. Even when for those languages that I translate myself I noticed that when introducing a new string, I basically need to update all the language-specific resources right away, or I will have trouble later on trying to come up with a list of everything that changed.
I'm familiar with gettext, where this problem is solved by basically being able to merge the diff between Original-V1 and Original-V2 into Translation V1.
View 2 Replies
View Related
Feb 22, 2010
Just installed the Touchdown on my Nexus One. Links with my firm's Exchange server perfectly and generally works as it should. HOWEVER, it is driving me crazy that I can't seem to manage notifications to the phone. That I want is to receive a notification prior to every appointment but to NOT receive a notification on the arrival of email.Can't find any setting to control notifications except "Enable Push" under Email, which would seem ideal except no matter how many times I uncheck "Enable Push," when I close and relaunch Touchdown, it is checked again (and I hear the email notification chimes going off constantly on the arrival of new emails). Also have issues understanding how sync with the server works, but this is a minor issue--the notifications are key for me, as I imagine they are with others who don't want their phones chiming constantly.
View 4 Replies
View Related
Sep 20, 2010
I'm currently writing a application that allows to save drafts (using android version >= 2.0). Each draft is connected to a contact via the ContactsContract.Contacts.LOOKUP_KEY. My problem is that if I change the name of my contact the lookup key changes also. Is that the way this works?
So for what do I need a lookup key? I thought that the lookup key does never change and now it changes anyway. I'm confused about that behavior. Can someone explain to me how to link permanently to a contact? Should I use IDs instead of the lookup key?
View 1 Replies
View Related
Jun 17, 2010
Is there an app to record the prices of shares bought, the amount of dividends obtained, capital gains etc? I'm hoping for an easy way out of creating one in Excel..
View 1 Replies
View Related
Jun 10, 2010
Are there apps out there that will allow me to manage contacts without having them on Google's servers? I want a desktop application that syncs with my phone (haven't bought it yet, but probably HTC Desire) and a csv import/export facility so I can get everything in and then out again if I decide to completely change technology in 5 years. I don't want to put all my contact details, and calendar etc up on Google.
View 3 Replies
View Related