Android :: Android - Memory Analyzing - Eclipse Memory Analyzer?
Jun 24, 2010
I need to check my application for memory leaks, i also need to see the memory allocation of my application.I downloaded and installed eclipse memory analyzer, and it looks like the first step is to open a heap dump.But what is a heap dump, how can i create a heap dump.And how exactly am i going to use this software, I did some googling but i couldn't find any useful information
View 3 Replies
Jan 21, 2010
My application is designed to support both portrait and landscape orientations. Using my HTC IO device, it survives 12 orientation changes before throwing an out of memory exception while inflating my activity.When I follow the recommended procedure of using DDMS to first force a GC and then write a heap dump, and then load it into the Eclipse Memory Analyzer, there is only one retained instance of my application, as there should be. None of the other retained objects are obvious offenders. Just for yuks, I reran the test, and did everything the same way except I didn't force a GC. In this case I see 13 instances of my application, which is more consistent with throwing an OOM exception. Is this telling me something useful? If forcing a GC with DDMS reclaims the memory used by now-defunct instances of my activity, I would have thought the VM would have garbage collected some, if not all of these defunct activities automatically. Do I need to request GC at the very beginning of my activity lifecycle to make sure?
View 7 Replies
View Related
Aug 1, 2011
Is there any app which lets me check the state of internal memory?
I want to detect what takes memory up and it isn't related to app (like text messages etc..)
View 4 Replies
View Related
Aug 27, 2009
I was using ADT for debugging and then I get this Internal error: out of memory error
Is there any way to avoid this?
View 3 Replies
View Related
Dec 2, 2009
How to tell the installer intent to install on memory card or on phone memory ?
View 2 Replies
View Related
Jan 20, 2009
When I install my application with Eclipse ADT (by simply run and choose device that appears in the list) through USB onto device, sometimes I noticed it consumes internal memory (storage) space even though application is already loaded on the device (exactly same version - just some minor code changes)As my application size getting big, this is really annoying because eventually it will use up all initial storage space of ~70MB and I have to factory reset in order for me to continue testing my application on real device.I did little investigation and find out this seems to happen when
1) load/run application onto device for first time with USB
2) disconnect USB
3) restart Eclipse
4) connect device and try to load/run application onto device
5) internal memory goes down by application size ...
and it does NOT seem to happen as long as I keep USB connection and Eclipse still recognize the device. I'm just guessing here, but maybe does Eclipse ADT creates temporary file of some kind that's get left behind when I disconnect USB? I'm running RC30 so I don't have root access and can't check system files/folders but is there any way to look for these temp files (if any) and clear out either from Eclipse, or using adb shell command?So for now, I leave my device connected to Eclipse all the time but I want to use it as phone as well as sometimes I want to show to my friends to get some feedback etc it would be really nice if I can somehow load application onto device, disconnect and keep testing/using phone.Has anyone experience this issue? If so, is there any walk around to this problem? Or could you point me out what I'm doing wrong here? I tried few things myself, such as close Eclipse right after I launch my application on device, disconnect USB etc but nothing seem to work.
View 5 Replies
View Related
Jul 10, 2010
iv got a x10i how do i transfer photos from phone memory to my memory card as i can't find an option do do this.
View 1 Replies
View Related
Jun 24, 2010
My phone is low on memory, when I open my app manager it shows my mail app is using 59mb of memory. I have erased all mail and cleared the cache with no change. I am running android 2.1
View 3 Replies
View Related
Jun 25, 2010
I have a 4GB SD card and it thinks that it has a total of 200MB on there (Its empty). I have tried formatting it using my Mac & via the phone itself but it continues to believe that its a 200MB MiniSD card.
View 1 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
Sep 9, 2010
Not had my desire long but down loaded a few apps for it they all seem to be stored on phone memory not the sd card. what is stored to the sd card seems to be unused so far. do you have to set it up to use sd card or does it know one is fitted. does it switch to sd card when phone memory full. will run out of space soon if can't get things to store to card instead of phone mem.
View 5 Replies
View Related
Aug 19, 2010
Every time I download a app it installs in phone memory and not internal memory.Where is the settings for this? I am switching over from windows mobile phone to my new incredible
View 1 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 7, 2013
I'm wanting to learn more about android. Is there a way to use memory from the sd card for the phones internal memory? Is there an app that will tell me whats useing up so much memory? I'm on the ZTE warp sequent ,rooted.
View 1 Replies
View Related
Apr 27, 2010
how can you tell where an app is being downloaded to? is everything set to download to the sd card?if not what is set to download to the phone memory? i'm guessing phone back ups and settings?
View 3 Replies
View Related
Jun 7, 2010
Here's the proof of the madness. I deleted several space hogging applications and it hasn't gone away. I have also power cycled and messed around with a few settings and the low storage warning will not go away.
View 49 Replies
View Related
May 27, 2010
My first post here, hopefuly, one of many. wi-fi and sleep app I am looking for the same thing. An application that monitors your sleep. It exsist on iphone, and found that pretty nice.
View 12 Replies
View Related
Jul 9, 2009
I wish to analyze the various data passing through the browser. I would need a handler of the browser to query the contents. Is there any way that my application can get this handler of the browser and query for these data.
View 5 Replies
View Related
May 11, 2010
I know they have this for the iPhone. Anything similar for the Android?
View 2 Replies
View Related
Sep 22, 2010
I used advance task killer and check frequently to see which programs are running in the background, frequently there are a number of programs I never use running in the background. How do I keep these programs from loading?
View 5 Replies
View Related
Jun 25, 2010
Is there any API by which we can get CPU or Memory usage of android? I have tried one code as below: Please look into it and let me know if this is the correct way?
package com.infostretch.mainactivity;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;..............
View 1 Replies
View Related
Jun 30, 2010
1 I want to see the usage of memory in the android through the procrank command,but throw a error error: creating kernel interface. Why/ 2 if use the top command, but the info of the %MEM is not correct. Because all the pid's info's sum will >100% ,so Why?
View 3 Replies
View Related
Sep 2, 2010
I have a problem with a strange out of memory exception that only occurs on some devices (mostly HTC Desire). It happens there every time a user starts a certain activity (no matter how - there are two paths to that activity) and i'm really puzzled as to why (i checked for leaks and couldn't find any)...
The error is either thrown when calling setContentView or shortly after.
This is the code block that throws the error:
CODE:.........
As i said - the error is usually thrown when calling setContentView or when calling getMonthTimeStamps()
getMonthTimeStamps is a helper function which creates a list of dates available in the internal database. It creates a couple of (small objects) and returns an ArrayList.
Here is the function:
CODE:.............
I'm not claiming that my code is flawless or perfect, but i really don't understand why this error is thrown. The XML-layout doesn't contain any references to images and not very complicated (textview, spinner, tablelayout).
Here is the error log i received from one user:
CODE:.....................
View 4 Replies
View Related
Jun 15, 2009
I have been trying to use traceview for profiling my Android app. So far I have gotten it to work on very small parts of the program. If I use it for bigger chunks it creates too much information (.trace file is too large) and I get an OutOfMemory (heap memory) error from the java compiler. I tried some tricks with setting higher min and max heap memory values but no luck. If anyone has used traceview with similar effects before. I would highly appreciate any tips you may have. Here are the details. First I am reproducing the error message: $ traceview.bat tmp.trace Exception in thread "main" java.lang.OutOfMemoryError:.....
View 3 Replies
View Related
Feb 2, 2009
I am running a script that runs randomly the browser and music.After 7-8 instances of browser getting opened I see the following error :-
CODE:........
Is it possible to open the browser windows consecutively for 10 mins.Secondly why does the background process get killed?
View 2 Replies
View Related
Sep 8, 2009
I am using a ListActivity. Each list entry contains an ImageView and a TextView. I have a huge list and has been getting Out of Memory errors once I scroll through a fair amount of them. I figured I need to reduce the size of the images but I am wondering what happens to the objects once the list entry is hidden from view (as i scroll down the list). I have read somewhere that the list entry objects are automatically re-use. But what happens to the drawable images which were loaded into the ImageView? IF the ImageView object is reused, what happens to the binary image? Are they freed automatically? How do I prevent the OutOfMemory exception? I want to do something similar like the Android Market. As one scroll downwards the images are loaded and new entries are loaded. The Markey can have a long list which one can scroll down and all the way back up again without any problem. The only difference being mine throws OutOfMemory Exception. Advice anyone?
View 2 Replies
View Related
Feb 2, 2010
I'm contemplating making an android version of my iPhone app. One of the attractions is the availability of a micro/miniSD card from Spectec that has an Ant+ radio in it, to communicate with Ant+ protocol devices.
The technical feasibility of this is not my question; but rather its practicality:
This obviously involves taking out the SD memory card in the handset and replacing it with one with no on-board memory, leaving the device with only the builtin 256mb or whatever. this is plenty for my app, but I'm concerned that, aside from annoying the user by having all their music removed, there will be apps on the users device that save data to the SD and will be broken by removing the SD memory.
View 1 Replies
View Related
May 17, 2010
I made an android application with googlemap api, and draw some 16x16 png (about 200 count) on overlay. When I move or zoom on/in mapview, "out of memory" error occurs very often.
I also used the googlemap appication in my htc itself. Seams that it uses about 14+MB memmory, and never happens "out of memory".
How to save memmory usage in a googlemap api, or how to enlarge android api memmory limit.
View 1 Replies
View Related
Oct 12, 2010
Below is my code to make bitmap from network-jpeg-stream whose size is 360*288 i don't know how to handle it
CODE:.............
logcat - error:
CODE:................
View 5 Replies
View Related
Jun 14, 2010
The NDK download page notes that, "Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't allocate much memory, such as signal processing, physics simulation, and so on."I came from a C background and was excited to try to use the NDK to operate most of my OpenGL ES functions and any native functions related to physics, animation of vertices, etc... I'm finding that I'm relying quite a bit on Native code and wondering if I may be making some mistakes. I've had no trouble with testing at this point, but I'm curious if I may run into problems in the future.
For example, I have game struct defined (somewhat like is seen in the San-Angeles example). I'm loading vertex information for objects dynamically (just what is needed for an active game area) so there's quite a bit of memory allocation happening for vertices, normals, texture coordinates, indices and texture graphic data... just to name the essentials. I'm quite careful about freeing what is allocated between game areas.Would I be safer setting some caps on array sizes or should I charge bravely forward as I'm going now?
View 1 Replies
View Related