Android :: Out Of Memory / Orientation Change / Memory Analyzer Question

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?

Android :: Out of memory / orientation change / Memory Analyzer question


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 View Related

General :: Internal Memory Analyzer

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

Android :: Installer Intent To Install On Memory Card Or On Phone Memory

Dec 2, 2009

How to tell the installer intent to install on memory card or on phone memory ?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: How Do I Transfer Photos From Phone Memory To My Memory Card

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

HTC Droid Eris : Low Memory - When Open App Manager It Shows Mail App Is Using 59mb Of Memory

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

HTC Desire :: MiniSD Card Showing 200MB Memory Instead 4GB Memory

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

HTC Wildfire :: Can Install Apps Onto Memory Card Rather Then Phones Memory

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

HTC Desire : Memory - Switch To Sd Card When Phone Memory Full

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

HTC Incredible :: Saving To Internal Memory Instead Of Phone Memory?

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

HTC Desire : Get Apps To Memory Card Instead Of Phone Memory?

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

General :: Way To Use Memory From SD Card For Phones Internal Memory

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

HTC Legend :: Phone Memory And External Memory

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

HTC Incredible :: Low Memory Warning But Plenty Of Memory Available

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

Android : Need To Change - Old Image Is Staying In Memory

Oct 30, 2009

I'm getting some reports from the remote stack trace plug-in, with this error (see below)

What I'm doing, is findViewById(R.id.instructionsBack).setBackgroundResource (R.drawable.instructions1);

And then when I need to change the image, findViewById(R.id.instructionsBack).setBackgroundResource (R.drawable.instructions2);

From the error, I'm guessing that the old image is staying in the memory and preventing the new one from loading?

What's the correct way to do this kind of thing? Code...

View 2 Replies View Related

Android :: Dalvik Memory Allocation / How To Change Default Limits?

Jun 20, 2010

I am currently considering to develop an application for processing of images captured by the camera of mobile phones using the Android OS. Before I make the decision to go forth, I have done some research and found out there are some complaints regarding the limits of the memory allocated by the Dalvik VM, which seem to be limiting to applications that require manipulation and processing of images. Which limits should i have in mind if i would have to process for example 3 photos taken with the camera, in my process, applying filters, transforms and other types of mathematical operations?I would like to know if it is possible to change the default value of
memory allocated by the Dalvik VM for each application (this default is of 16 MB), in any way, using the Android 1.6 OS. Has anybody looked into this that can help me out please? I have also read in the Android 2.1 compatibility definition document
(available here: http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/pt-PT//compatibility/android-2.1-cdd.pdf )that it is possible to change the allocation of memory by the Dalvik VM from 16 MB to 24 MB or even a bigger amount if it is necessary, but t is not mentioned anywhere how this can be done. If someone has looked into those issues before.

View 1 Replies View Related

Android :: Want To Fetch IMSI Number To Keep It In Memory - Detect SIM Card Change

Oct 30, 2009

I want to fetch the IMSI number so that I could keep it in memory and detect whenever SIM card changes. Is it actually possible? Is there anyone who can guide me a bit?

View 4 Replies View Related

General :: Change Internal Memory With ExtSdcard

Jan 17, 2014

Can I Change Internal Memory With ExtSdcard In My Samsung Galaxy Ace 3 3G Verison Android 4.2.2

View 1 Replies View Related

General :: How To Change App Install Location On Internal Memory

Sep 9, 2013

I have Prestigio PAP 4500 dual SIM phone with 4 GB internal memory and external microSD card 16GB - rooted. This 4 GB internal memory is devided on 2 part:

1.st labeled as Internal storage with 503 MB - this is location for app installation
2.nd labeled as Internal memory card with 2 GB - this is empty because I use externalSD 16GB.

Because Internal storage (503 MB) is too small for all app I'd like to install phone often pop up message "Storage space running out". How to change installation path so apps install on Internal memory card (2 GB) ??

I tried:
1. change in Settings, Storage, Preferred install location, SD card but after reinstalling all apps again get "Storage space running out"

2. install Mobile Uncle Tool (chinese menu), right button click on 1.st pop up, AppToSD, choose external, press button under it and install all apps again but again get "Storage space running out".

In both cases no change in capacity of Internal memory card with 2 GB.

View 5 Replies View Related

General :: Galaxy Mini 2 S6500d - How To Change Internal Memory With SD Card

Apr 25, 2013

Im with samsung galaxy mini 2 s6500d how i can change internal memory with sd card ?

View 2 Replies View Related

Android :: Orientation Change - Dialog Above Activity With Fixed Orientation

May 14, 2009

I have created an activity for my game which handles all orientation changes by itself and has a fixed "portrait" layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his name. The dialog is floating above the underlying level screen which gets blurred out nicely. This generally works.

Problem is that the dialog does not get rotated if the orientation of the phone changes. So even if the keyboard is exposed the dialog is shown in portrait mode instead of landscape. I have tried to use an activity with dialog theme instead but the behavior didn't change. After several tries it seems that I have found the reason for this: Once there's an activity with fixed orientation in the activity stack then all subsequent activities keep this orientation, too. They will not react on orientation changes anymore (e.g. if the keyboard gets exposed).

After upgrading to 1.5 SDK the described behavior changed a little bit. Now at subactivities indead react on orientation changes like expected. However, the need to have an opaque background! That means that neither dialogs nor activities with dialog theme will work. Those will stick with the orientation of the underlaying activity. So my workaround is to first start a sub-activity with an opaque black background. This activity then shows my highscore dialog on top. It looks quite okay but I wonder if there's a better solution? Is it possible to show a dialog above a fixed portrait or landscape activity which automatically adapts to orientation changes?

View 3 Replies View Related

Android :: Change Intent Bundle Data Before Activity Recreated After Orientation Change

Jul 30, 2009

I have a notification that starts my activity and passes a messages using the intent's putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in the intent's bundled data.
How can I remove the extra data?

I tried the following:

Bundle bundle = getIntent().getExtras();
if (bundle.getBoolean("showMessage")) {
// ... show message that is in bundle.getString("message")
// remove message
bundle.remove("showMessage");
}

But the message will still be shown after the orientation changed, seems like the intent used is not the one I changed, but the original one. The only workaround I found is to save the showMessage additionally in onSaveInstanceState(). Is there another way? Or is this the way to go?

View 2 Replies View Related

Android :: Change Widget Dimensions On Orientation Change

Jul 22, 2010

I have a widget which has say, a dimension of 294*72(portrait). But when the orientation is changed, I need to change this dimension of the widget to another dimension which would look good on the landscape orientation.

View 4 Replies View Related

Android :: Change Background After Orientation Change

Jun 8, 2010

I have an image set as my background and when it is vertical, the image looks fine. However, when the orentation is changed, the image get streched out. If there a way that I can change the image based on the orentation of the device?

View 4 Replies View Related

Android :: Change Orientation Of AlertDialog

Mar 25, 2009

I am building a AlertDialog in java code, so by default it is portrait but I want to show it in landscape orientation. How to do it in Java code?

View 2 Replies View Related

Android :: Screen Orientation Change

Oct 8, 2009

I notice when using the emulator that when the screen is flipped, I get a following logcat message:

INFO/WindowManager(589): onOrientationChanged, rotation changed to 1

How can I catch this in the code? I want to know whenever the orientation changes. I assume I have to set a listener, but I can't find an example anywhere.

View 6 Replies View Related

Android :: Dialogs On A Change Orientation

Mar 5, 2010

I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change the orientation of the mobile I lost them...they are not being kept on the screen.

View 13 Replies View Related

Android :: Views - Orientation Change

Oct 1, 2009

Do Views know changes in orientation? In my case, I create popups from TextView and need to know when the orientation changes(porttrait<-- >landscape). I cannot depend on activity's onOrientationChange.

View 2 Replies View Related

Android :: Keep Screen On And Change Orientation

Feb 11, 2009

I am making an Android app which is currently coming along nicely - I've hit upon a couple of stumbling blocks.

1) How do I stop the screen from going dim/off and the phone locking while the application is running?

2) Can I force the phone to enter landscape mode on running my application?

View 2 Replies View Related

Android :: Possible Leak In Orientation Change

Jul 1, 2009

My app *sometimes* when orientation change, leaks Activities (getInstanceCount() increases from time to time) and i cannot figure out where references to my Activity or rather Context are kept - tried to use jhat but it couldn't help me much.

what is strange: it doesn't always happen on orientation change, so its even harder to fix.

btw when doing normal app life cycle - start, do something, exit - everything is ok - getInstanceCount() always returns 1.

View 5 Replies View Related







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