General :: How To Find Which Apps Cause Memory Leaks
Apr 22, 2013
Any user friendly android app which can effectively show which apps cause memory leaks on a phone?
I can only find developer tools to detect memory leaks within apps like Eclipse MAT. Sadly I'm not a developer so I would rather prefer just a list of apps to uninstall and not the exact cause of memory leak within a specific app.
View 6 Replies
May 20, 2010
When start Activity A, I found the memory usage of application is about 5MB. Then start Activity B from A via startActivity. In Activity B, I created a thread, and traverse file system in this thread, after traversing completed, call finish() and to return to Activity A. At this time, I found the memory usage of application is about 8MB (GC is forced before check memory usage). How to find Where memory leaks? By the way, I checked the memory usage with DDMS.
View 5 Replies
View Related
Jul 18, 2009
I've got an Android app developed, and I'm at the point of a phone app development where everything seems to be working well and you want to declare victory and ship, but you know there just have to be some memory and resource leaks in there; and there's only 16mb of heap on the Android and its apparently surprisingly easy to leak in an Android app.
I've been looking around and so far have only been able to dig up info on 'hprof' and 'traceview' and neither gets a lot of favorable reviews.
What tools or methods have you come across or developed and care to share maybe in an OS project?
View 3 Replies
View Related
Aug 3, 2010
Will the code cause a memory leak? Essentially I switch between various layouts in my application using setContentView(), and I have member variables of my activity that maintain references to various views (buttons/text views) on the layouts. Am I correct in thinking that if the activity class has a reference to a button and then changes layouts the layout wont be garbage collected because it will still hold a button reference? If this is the case, can I just null the button variable before changing layouts?
View 3 Replies
View Related
Oct 23, 2010
I have a very simple application which has a problem with getting ListViews to be freed by the GC. i have a ViewGroup which has a ListView. When the page with the ViewGroup no longer has any references to it, and I force a GC, the ListView is not freed. The project in question is quite small and can be found at http://gabysoft.com/download/MemoryLeak.zip. If you run it, the first page has a button and a ListView (which has no items so you cannot see it). When you press the button it switches to a second page which has just a button. When you press the button on the second page, it creates a new ViewGroup and ListView and sets that as the current view. Thus, every time you switch pages, a new ViewGroup/ListView is created, and all references to the old one go away. Hence the old one should be GC'd. However if you switch views 20 times and then force a GC you will see that the ListViews are never freed (i.e. their finalize method (which is logged) is not called). Now here is the really weird part. This happens ONLY if I build my project using Eclipse. If I use Ant to build and install the project, the ListViews are all freed when I do a GC as you would expect. Why would the Eclipse version exhibit this behavior?
View 7 Replies
View Related
Oct 20, 2010
I have a class 'GListView' which extends ListView and acts as it's own adapter. It is declared thus: public class GListView extends ListView implements List Adapter In it's constructor, I set it's adapter to itself
View 2 Replies
View Related
Mar 5, 2010
I was trying to find out were my apps memory was being leaked and was able to discover that when calling registerCallback(...) it would lead to a memory leak after a screen orientation change. What could be some possible things that are causing the leak? I've tried many things. And I do have a unregisterCallback(..) call.
View 20 Replies
View Related
Jul 27, 2010
I've read that it is a mistake and a source of memory leaks in Android application to keep a long-lived references to a Context.
But I don't understand if it is ok to create an class that looks like this one:
CODE:..........
And call it from an Activity:
CODE:.................
View 2 Replies
View Related
Apr 10, 2010
I just read the article 'Avoiding memory leaks' in android blog written by Romain Guy. http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.
View 4 Replies
View Related
May 17, 2010
How to trace the Memory Leaks in Android Development? I am working on eclipse IDE to develop the application. i cant find out how to rectify the memory or window Leaks Exceptions? Any Idea.
Mainly the Window Leaked error raises the Illegal Argument Exception? how to rectify both og this.
View 1 Replies
View Related
May 21, 2009
I'm writing a widget. Currently, I'm have a simple ImageView, and calling RemoteViews.setImageViewBitmap(). I'm using a service to do the updates.
I thought it might be a good idea to reuse an existing RemoteViews instance, so I'm only querying it the first time around, and subsequently simply call setImageViewBitmap() with the new image.
This works well initially, but after some time I first start getting "!!! FAILED BINDER TRANSACTION !!!" errors, and later, an OutOfMemory exception.
Simply creating a new RemoveViews instance every time works flawlessy on the other hand. I'm just curios why that would be, any ideas?
View 2 Replies
View Related
Jan 24, 2014
I recently updated my Sprint Galaxy Note 2 to android 4.3. Everything went slow, and so it was suggested to hard reset my device. I though I had everything backed up but i didn't. I am trying to recover deleted files. I used the guide I found on this forum here.
My problem is the under /dev/block all the mmcblk files are 0 bytes. Every time I extract I get 0 bytes as well. What should I do differently?
View 2 Replies
View Related
May 21, 2013
I am trying to build simple custom minimal kernel for my android phone (htc explorer). So from where do I find out memory map for it.
View 1 Replies
View Related
Dec 23, 2009
I am using kind of results search engine, problem is to remember the searching criteria i made singleton static class which keeps only one instance.In my application there are lots of class level private variables, lots of public static variables, a big util class which contains only static final methods.problem is my application get crash any time any where any spot and interesting thing is crash code always surrounded by try{} catch(Throwable e){} block but never catch, i think it may be memory full issue. I want to discuss one sample case, on the result page i also display result related image, i download image from web and using drawable i place image in the imageview, i created static hashmap to reuse images, some time after downlaod 5 images application crash some times click on a result get user to new detail screen get crash and all code surrounded by try catch block, i am new to mobile program this thing has become night mare to me. Last thing, On emulator hardly application crash but when i try to test the application on device, i am using samsung glaxy android supported to test the application it goes smoth and suddenly it start getting crashed, and after crash android relaunch the activity that throws null pointer exception on every click and caught by try{}catch{} block i think after crashing android dealocate all objects only keep the UI objects thats why when after crash i auto launch the activity clicking causes null pointer exception.how can i stop relaunching crashed activity?
View 1 Replies
View Related
Aug 12, 2010
I have developed a simple application before testing it i want to check whether any memory leaks are there in the application. I don't know how to identify the leaks in Android. I am using Eclipse IDE for development. Is there a good introduction into finding memory leaks in Android apps somewhere?
View 2 Replies
View Related
Sep 22, 2010
How to detect Memory leaks in Android JNI code? I am using Froyo
View 1 Replies
View Related
Feb 22, 2012
I am trying to find a Bluetooth speaker that can retain in its memory multiple devices (5 preferred but 3-5 is okay too). I know the Bose Soundlink does this, but it is more money than I want to spend right now. I have an imonster, but it only remembers one device at a time.
View 3 Replies
View Related
Sep 18, 2010
Is there anyway I can install apps onto the memory card rather then the phones memory as I keep getting the 'memory low' message on my phone esp when I install games/apps that are around 15mb in size.
View 1 Replies
View Related
Dec 28, 2011
I just upgraded from an HTC Aria to an HTC Inspire. I had a bunch of apps on my SD card, but when I put the SD card in my new phone, I can't seem to access the apps. I went to "Manage Apps", and "On SD Card", and nothing was there, although it does show about 1GB is used, 7GB free. Where are all my Apps and how do I get to them?
View 3 Replies
View Related
May 13, 2012
I use a sports tracker to track my results.If i run 2 sports tracking apps at the same time, over a short distance. In 'battery use' is the app that used less % the app to go for?This was only over a short distance, 9km.But. do you think strava will save more battery?
View 2 Replies
View Related
Oct 11, 2013
I have android 4.1.2 cyanogen based on acer iconia a200. I know I have camera app in the system as I have the camera app shortcut on the unlock screen and I can launch the camera from there. But I dont have camera in installed apps (in app drawer). I have tried installing the camera apk (install was successful) but still I dont see it in the search.
View 3 Replies
View Related
Sep 16, 2010
I need help to get my apps to the memory card instead of phone memory, how do I do that?
View 2 Replies
View Related
Apr 2, 2012
I recently upgraded to 16gb from an 8gb but now when i install apps from play store they disappear after an hr or so why its doing this annoying process?
View 1 Replies
View Related
Jul 28, 2012
I was wondering if there is a way to always keep commonly used apps preloaded into memory for instant access.
View 3 Replies
View Related
Aug 4, 2012
Is there a way to keep apps in memory?
I have a Galaxy Nexus which has a lot of ram. I only use some minor applications but it seems the system kills the processes which are only several mb all the time.
When I check my free ram its mostly half empty. Is there a way to tell android to keep an app in memory?
Galaxy Nexus
View 2 Replies
View Related
Nov 1, 2012
I am about to get my first Android phone. It is a Motorola Flipside (I am on a budget and I need a physical keyboard; hopefully, if you didn't hate me for posting a new thread you will not hate me for buying a Flipside). The phone comes with Eclair, but can be upgraded to Froyo. When I do this, I know that I will have less than 100MB of free space (could be as little as 60MB) on the internal hard drive, but I am not sure how much less, and I don't want to mess around with moving too much bloatware or rooting. In order to get the apps that I have preselected to all fit, I'm going to need to get them in a certain order. I should get the ones that I can move to SD first, and then get the ones that are not able to be moved.
I have heard that App 2 SD is a good program, although Froyo can probably do it on its own. Do I need App 2 SD?
I am wondering which of the following large-ish apps can be moved so that I don't need to install apps only to be forced to delete them because they cannot be moved:
1. Battleheart
2. Battleloot
3. Modern Conflict
4. Plague, Inc.
View 4 Replies
View Related
Apr 3, 2012
I've occasionally had some issues with seeing the white HTC screen between switching apps and what not, is this because all of them are on my phone? Is it better to put some on the sd card?
View 7 Replies
View Related
Apr 3, 2010
is there an SDK way to find out the exact amount of memory consumed by a process identified by its pid?
View 10 Replies
View Related
Jul 15, 2009
I want to calculate the performance for some of the task/process.How to find out the percentage of memory used by each process in the android. - is there any in build classprocess to do this?
View 7 Replies
View Related
Feb 22, 2010
It would also be handy to know how many memory is still available.I am writing a memory hungry application that tends to crash randomly (in native Code),and my suspicion is that it gets out-of-memory.
View 5 Replies
View Related