Android :: Super Slow Apps Caused By Large Number Of Unending AsyncTasks

Aug 11, 2010

I have no idea, but my app is stalling sometimes completely (not responding to touching the screen) I thought I was following all the rules for threading, but my app is apparently slowing down the Sprint EVO! I have never used an app as slow as my own. I don't get an ANR dialog, though I think I probably should get getting one. I have no idea how to make this application run like every other app I've ever used -- Not freezing. Is it not a good idea to have one HttpClient and keep a static reference to it for all Activities that want to use it? I used to create a new one each time, and thought that changing it to one sped it up. None of my AsyncTasks ever end. If I go to Activity A -> B -> C -> D the first time it will be smooth. I can press back but when I get back to A, its completely frozen, not responding to anything. That when I took that screenshot. I really have no clue what I am doing wrong. Should I manually kill my AsyncTasks on Activity.onPause()?

Android :: Super slow apps caused by large number of unending AsyncTasks


Motorola Droid :: ChevyNo1 1.1Ghz ULV Caused Slow Loading To Boot Loop

Sep 28, 2010

Currently I am running Blueberry Liquid Frozen Yogurt 1.6, with Slayhers 1200 Kernel. I set it up last night and I've been using it very lightly and now I have about 50% battery. Just for kicks and giggles I decided to try ChevyNo1's 1.1Ghz ULV Kernel to see what would happen as I have heard very good things about it. And when I flashed it and upon Reboot the boot animation loaded extremely slow. And when it finally got to the Droid Eye it went into the dreaded boot loop. So now I pose these questions to the Root Gurus, did I do something wrong? Should I choose another kernel? And how do I go about choosing the optimum kernel to maximize performance? With LFY 1.6 and Slayhers 1200kernel I can get a 1339 on Quadrant, and a Short Bench of 316-466, and a long bench of 579-585. And a native bench of 945.77. This is all with SetCPU set to Ondemand.

View 5 Replies View Related

Motorola CLIQ :: Super Slow Messaging

Mar 16, 2010

is anyone else experincing this?? like text messages are slow to open and when i type it laggs really bad. i've had it fc on my like 4 times now. its really annoying.

View 4 Replies View Related

HTC EVO 4G :: Super Slow Wi-Fi / Router File Transfers

Jul 24, 2010

Using both Astro and the ES File Explorer included with Fresh 1.0.1, I'm trying to transfer files over my wifi from my computer to my SD card..Talk about SLOW, I could downloaded the files from the internet faster.I transferred a 175 meg TV show, took like 30 minutes, seriously.

View 9 Replies View Related

General :: 3G Is Suddenly Super Slow / Not Working

Nov 19, 2013

so me and my gf both have the straight talk lg optimus, one day i go to use the internet on mine and it is completely bogged down and useless now. i can still use hers without any problems being slow what so ever, but mine seems to be soo slow that half the stuff times out before it even loads. doesn't matter what i use, google play store, youtube, facebook, literally anything that uses 3g. i have factory restored several times and still nothing has changed. my gf is growing tired of me borrowing her phone to stream videos and quite.

View 5 Replies View Related

HTC Hero :: Yahoo POP Mail Is Super Slow To Download

Feb 13, 2010

I just got the sprint htc hero and setup the pop email with the native mail application. I am a Yahoo PLUS member, so I set it up as the yahoo mail site said to (plus.pop.mail.yahoo.mail etc). When I do a manual mail check, it takes FOREVER to download the emails! What is going on here? gmail is super fast to download, but the yahoo takes 5 minutes sometimes. i dont understand. I dont want to use the IMAP either.

View 5 Replies View Related

HTC Incredible :: Flash Super Slow Mo Audio Is That Normal?

Sep 2, 2010

I just recieved my OTA yesterday And when I play you tube type of files it works fine.But when I play videos from CBS the advertisement plays audio/video fine.But when the show starts, I get full speed video, and the AUDIO goes into super slo mo.I also noticed the same behavior listening to KJRAM.com video ads play fine, but when the radio stream plays, its super slow mo.

View 6 Replies View Related

Android :: Slow Searching In Large Sqlite Database ?

Jun 30, 2009

I have a large(ish) database - around 30MB, created offline with 400,000 rows. Doing a simple select (name LIKE pattern%) and then showing the query in a listview takes about 10 seconds. I tried indexing that field but no difference. If this is normal I will just use a raw data file and do a binary search myself. If this is not normal I hope someone has a hint or two to what might be wrong.

View 15 Replies View Related

Android :: Scrolling Large Image - Working Good But Slow

Nov 12, 2009

For a project, I'm displaying an image with sizes 800 x 600 and I've implemented my custom scrolling (horizontal and vertical) - which is works fine. However, my problem is that it's not fast enough. If you continuously move your finger on screen for instance, scrolling is not responding fast enough. There is a lag and you need to wait (say 400-500ms) for new scrolled image to be loaded. Now below I described how I implemented scrolling and my question is that
- How can I make it faster, if possible - Is there any other better way to implement this.

My custom scrolling solution:
* I have a Main activity, SurfaceView and a thread
* In main activity, I'm using GestureDetector and override onScroll method.
* In onScroll method of activity, I'm passing values to SurfaceView's "handleScrolling" method.
* In "handleScrolling" method, I'm calculating proper values and using "newImage = Bitmap.createBitmap(myImage, starX, stopY, SCREEN_WIDTH, SCREEN_HEIGHT)"; to create a new, "scrolled" image.
* Then in thread loop, I'm drawing this "newImage" to canvas.

View 5 Replies View Related

Android :: Broadcasting SMS - Message - Large Number Of SMS Are Being Sent

Sep 30, 2009

There seems to be a limit to the number of SMS that can be sent programmatically. It seems to be hovering around 70 to 100 messages. After a batch of messages, when I try to resend a batch I get a warning message "A large number of SMS are being sent. Press OK to continue or Cancel to stop sending" This requires user intervention and impedes the program from sending SMS. Is there a way around this error message? Maybe a way to turn off the warnings?

View 3 Replies View Related

Motorola Droid :: Number Dial To Access The Super-secret Phone Settings

Nov 10, 2009

When I tried to activate my phone, it wouldn't work. So I called Verizon from my landline and I told them and they had me activate it manually. They had me type in some random string of numbers to the phone dial pad and it took me to a screen where I set my phone's ID and other stuff manually (that the activation call would do automatically). I'm just curious as to what's in here. Does anyone remember the number? I can't remember it for the love of me and it's not in my call log.

View 3 Replies View Related

Android :: ListView Large Number Of Items - Best Practices

Oct 20, 2010

I am working with a ListView, custom adapter and a large number of items. I read in a book for Android that is was more efficient to use what it called the holder pattern. That is to create a wrapper class for each view in the list view that cached the objects in the view so as to avoid calls to findViewById because those are supposed to be expensive. My question is what is better? To have 50,000 objects GC'd every time the user scrolls or to make the 4 or five calls to findViewById per view? Below is my implementation of what the book suggested.

@Override public View getView(int position, View convertView, ViewGroup parent) {
View view = convertView; if (view == null) {
final LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.survey_item, null);
view.setTag(new SurveyItemWrapper(view));
} bindView((SurveyItemWrapper) view.getTag(), position);
return view; } private void bindView(SurveyItemWrapper surveyItemWrapper, int position)
{ final SurveyedItem surveyedItem = surveyedItems.get(position);
surveyItemWrapper.getDescription().setText(surveyedItem.getItemName());
surveyItemWrapper.getCube().setText(String.format("%9.2f", surveyedItem.getCube()));
surveyItemWrapper.getShipping().setText(String.format("%d", surveyedItem.getShipping()));
surveyItemWrapper.getNotShipping().setText(String.format("%d", surveyedItem.getNotShipping()));
} private class SurveyItemWrapper { private TextView description;
private TextView cube; private TextView shipping;
private TextView notShipping; private View view;
public SurveyItemWrapper(View view) { this.view = view;
} public TextView getDescription() {
if (description == null) { description = (TextView) view.findViewById(R.id.SurveyItemDescription); } return description;
} public TextView getCube() { if (cube == null) {
cube = (TextView) view.findViewById(R.id.SurveyItemCube);
} return cube; } public TextView getShipping() {
if (shipping == null) { shipping = (TextView) view.findViewById(R.id.SurveyItemShipping);
} return shipping;} public TextView getNotShipping() {
if (notShipping == null) { notShipping = (TextView) view.findViewById(R.id.SurveyItemNotShipping); } return notShipping; } }

View 2 Replies View Related

Android :: ListView Scrolling - Array Contain Large Number Of Items

Jun 27, 2010

I have a ListView with a scrolling issue. The Array contain a large number of items. When I try to scroll down, the listview displays the first items again. For example, if the initial view shows 12 items and I scroll down to view the next three, instead of showing 4 through 15, if shows 4 through 12 followed by 1, 2, and three. Debugging the Adapter reports that getView return 4 through 15 just as I would expect.

View 3 Replies View Related

Android :: Best Way To Save Large Number Of Checkboxes State In Droid?

Sep 11, 2010

I have some 34 checkboxes on one Activity which i have to mark and unmark. and I want to save the status of the each checkbox.

I want this persistently. So should i have a sqlite table or preferences ?

If sqlite table is recommended, then what should be the ideal table structure design?

View 1 Replies View Related

Motorola Droid X :: Super Slow Motion Video On Droid X

Jun 25, 2010

Other than being briefly listed as a feature on the upcoming Droid X, no additional information has been provided regarding the "super slo mo" that the Droid X video camera is supposed to be capable of.Is this feature still a go? I went to the Motorola website and it isn't even mentioned. Could they have pulled it?I always thought that super slow motion video required quite a jump in frames per second (fps). As far as I know, the Droid X camera can only do 24 @ 720P. Maybe it will do super slow-mo only at the lower resolutions.If anyone has tested this feature, or has confirmed that it is or is not there, please let us know.

View 17 Replies View Related

Android :: DejaOffice - Super-charged Contacts - Calendar - Tasks And Notes Apps For Mobile Professionals

Jun 4, 2010

DejaOffice is a mobile office suite for professionals on the go. It makes your Android device work more like PC software (like Microsoft Outlook).

www.dejaoffice.com

Some of the features:
Categories with colors
9 custom fields
Sort by first, last or company name
Day, week, month and year view on calendar
Assign priorities and due-dates with alerts to tasks
Sort tasks and notes by subject, date, priority or category
Global search feature across all data types
Supports English, French, Spanish, German, Portuguese, Japanese, Korean, and Czech (more coming!)

Contacts:

Calendar:

Tasks:

Note from AF: CompanionLink Software is an approved Sponsor for AndroidForums. Give their free ad-supported version of DejaOffice a try!

View 49 Replies View Related

Motorola Droid :: Caller ID Shows Number / Slow To Show Name

May 28, 2010

Is there a way to fix this? it will show the number for about 4 or 5 seconds before the contacts name pops up... and sometimes, the contact name wont pop up until i have already answered the call.

View 7 Replies View Related

Android :: Large Screen On 1.6 - All XML Files Of Layouts In Layout-large Can't Load

Oct 23, 2009

I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment.

View 4 Replies View Related

Android :: Concurrency Of AsyncTasks

Jun 26, 2009

I am replacing the multithreaded code in my app with the AsyncTask from 1.5. I found that two AsyncTasks do not work concurrently. I investigated a bit and found a workaround; I would like second opinion if my solution is right. OR if there is a better solution.

AsyncTask allows the app to do a task on a thread other than the UI thread. But IIUC, it only provides a single thread on which a queue of tasks is performed. Therefore, if one of the task is to wait on some event (n/w or sleep) then all other tasks will wait for it to finish.

To elaborate with the coding example: <code>

public class MyTask extends AsyncTask<...> { ... }

On the UI thread execute two tasks MyTask mt1 = new MyTask().execute(args);

MyTask mt2 = new MyTask().execute(args); </code>

In the above code both the execute calls will return immediately and free up the UI thread; however mt1 will be executed first and mt2 will have to wait until mt1 finishes.

Thanks to the android's open source, we can see implementation of AsyncTask. http://google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#uX1GffpyOZk/core...

I copied AsyncTask.java as UserTask.java in my project and changed the value of CORE_POOL_SIZE to 5. This makes the thread pool to use 5 threads to multiplex the queued AsyncTasks. This indeed solved my problem. Now if mt1 blocks on a sleep; mt2 goes ahead and finishes its job.

Here are some questions for those who know more about AsyncTask implementation:

Is this work-around right? If yes, can the CORE_POOL_SIZE be made configurable in future, via an API call? Is there a solution by which multiple thread pools can be used?

Let me add that, I am aware that this is a phone and not a web server - I am not using 10s of threads to do network I/O. However a single thread is not sufficient for my app either.

View 5 Replies View Related

Android :: Periodically Executing AsyncTasks?

Sep 1, 2010

I am getting data from the server using AsyncTask. I need to update the data periodically.

View 3 Replies View Related

Android :: Pause And Resume AsyncTasks?

Mar 19, 2010

I have an AsyncTask that acts as a countdown timer for my game. When it completes the countdown it displays the out of time end screen and it also updates the timer displayed on the screen. Everything works fine, except I need to be able to pause and resume this when the pause button in the game is pressed.

If I cancel it and try to re-execute it, it crashes with an IllegalStateException.
If I cancel it and instantiate a new AsyncTask in its place the old one begins to run again and the new one runs at the same time.

Is there a way to cancel/pause the timer and restart it using AsyncTasks or is there a different way I should be going about doing this?

View 3 Replies View Related

Android :: Design Strategy - Large HTML In Apps Bookmark Location

Nov 8, 2010

I write Windows/iPhone/Android apps that mostly display large documents (HTML) in an HTML container view. What is a good strategy to determine where in a document the users has scrolled to so that when the app runs again, it goes to that location in the HTML document? ll of my software can 'listen' to javascript. Is there a way to find in a HTML page, perhaps with javascript, where the visible section is?

View 1 Replies View Related

Android :: Running Multiple AsyncTasks At The Same Time - Not Possible?

Nov 1, 2010

I'm trying to run two AsyncTasks at the same time. (Platform is Android 1.5, HTC Hero.) However, only the first gets executed.

Here's a simple snippet to describe my problem:

CODE:................

The output I expect is:

onCreate() is done.
bar bar bar
foo foo foo
bar bar bar
foo foo foo

And so on. However, what I get is:

onCreate() is done.
bar bar bar
bar bar bar
bar bar bar

The second AsyncTask never gets executed. If I change the order of the execute() statements, only the foo task will produce output.

Am I missing something obvious here and/or doing something stupid? Is it not possible to run two AsyncTasks at the same time?

I realized the phone in question runs Android 1.5, I updated the problem descr. accordingly. I don't have this problem with an HTC Hero running Android 2.1.

View 1 Replies View Related

Android :: Same Activity Called Twice - Multiple AsyncTasks?

May 8, 2010

I have three simultaneous instances of an AsyncTask for download three files. When two particular ones finish, at the end of onPostExecute() I check a flag set by each, and if both are true, I call startActivity() for the next Activity.

I am currently seeing the activity called twice, or something that resembles this type of behavior. Since the screen does that 'swipe left' kind of transition to the next activity, it sometimes does it twice (and when I hit back, it goes back to the same activity). It's obvious two versions of the activity that SHOULD only get called once are being put on the Activity stack.

Could this be from both onPostExecute()s executing simultaneously and both checking the flags each other set at the exact same time? This seems extremely unlikely since two processes would have to be running line-by-line in parallel...

A lot removed from this question since I was way off in what I thought was wrong. Nonetheless I found the answer here quite useful, so I have edited the question to reflect the useful parts.

View 1 Replies View Related

Android :: AsyncTask Preformance Issue On Many AsyncTasks Spawning

Sep 19, 2010

I'm about to create a lazy image loader for images both from device and from the web for a ListView. I'm thinking of what to use and how, on one hand i can use a thread that pools my request (always running, and i can attach a view and an adapter and it will handle the image loading for me), cache my allready loaded images and checks for the visibility of the images before i load so i wont do unneeded job.

I had another thought of using the AsyncTask like many suggest in the forum. Terhe is one drawback though.I see that many use new MyTask().execute(urls); this presents a problem if i want to start loading and stop loading images on demand. If i use the async task per image then i need new async task for each image, that's a lot of 'new' to make, i can use a pool, but if too many async tasks are stuck, i will still create about 150-200 asyc tasks, too many for my taste...

What do you guys think ? i think a thread will do a nicer job here:
1. keep on running till killed
2. try to get a job from the queue, if not jobs, wait.
3. if a job is available, get it and start processing.
4. each request is processed alone,serially and blocks the thread.
5. once does goes on with '2'.
6. each enqueue that is done by the adapter using startLoadingImage() for views that need to be displayed will create anew job and call notify on the wait lock.

I can optimize this code with a pool of threads if i want several GETPOST requests in parallel. Also I'm caching the images i already downloaded loaded for fast load on next access. the idea is to minimize GC and list's slagging.

View 2 Replies View Related

Android : Does Installing Apps Slow Phone?

May 10, 2010

I really like installing apps, testing them, and removing them. Does installing apps and then uninstalling them end up making your phone slower? I don't have my Incredible yet but I don't want to install all these apps to just test if it will end up slowing my phone down when I remove them! I know Windows does get slower by installing and uninstalling apps, OS X not so much. How does Android fare?

View 6 Replies View Related

Android :: Emulator Performance - Apps Running Slow?

Sep 29, 2010

A while back I mentioned that running the imported p2p codebase I have on the emulator (on a fairly powerful laptop with plenty of mem and a fast processor) was pretty slow. I blamed all that on the codebase and in fact I was able to profile it and make it much lighter. Well still the overall app performance is slow --- and I am finding that most apps I run on the emulator are fairly slow. Is this a common trend? I do expect emulators, who are by no means a real device, to have such processing delays but are they in general this slow? Any metrics or any other feedback from anyone that depict the factor of slowdowns you would expect on an emulator vs the real device? I know a lot of this are machine dependent as well but consider an idle powerful machine. And regarding memory - I am loading Eclipse with close to 1G to be able to run the emulator and its basic services - is that normal?

View 3 Replies View Related

Android :: Developer Console Not Showing Number Of Apps

May 31, 2010

I had published an app and in two days the number of downloads were update normally. But since wednesday the numbers are the same, and I know that maaaany people had download the app.

If there is anyone here that works in google, the app name is "World DroidCup".

View 3 Replies View Related

Android :: Catch Exceptions Caused By A Malformed Layout-xml File?

Sep 29, 2010

Code...

Exception will be thrown after this line. Where to catch it?

View 1 Replies View Related

Samsung Galaxy S :: General Opening And Closing Of Apps Is Slow?

Jul 29, 2010

Im thinking about buying the samsung galaxy s soon. But I would like to know wha the bugs are? I know theres a problem with the gps im sure. Ive also heard things like the general opening and closing of apps is slow? is this true?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved