Android :: How To Keep From Running Out Of Memory On Graphics For App
May 10, 2010
I've been working on an Android app in Eclipse, and so far, my program hasn't really grown past midget size. However I've already run into an issue with an Out of Memory error. You see, I've been using graphics comprised solely of bitmaps and PNGs in this program, and recently, when I tried to add a little bit more functionality to the program (mainly including a few more bitmaps and causing an extra sprite to be created), it started crashing in the graphics thread's constructor -> sprite's constructor. When I tracked the problem down, it turned out to be an Out of Memory error that is seemingly caused by adding too many picture files to the program and creating Drawables out of them.
This would be a problem, as I really don't have that many picture resources worked into that program...maybe 20 or so. I haven't even started to include sound yet. These images aren't all that fancy. My questions are this:
1) Are programs for the Android phone really that limited on how much memory they can employ, or is it probably something other than the 20-30 resource pictures causing that error?
2) If the memory for Android apps is so awful it can't even handle 20-30 picture resources being loaded into Drawables that exist at the same time, then how in the world are you supposed to make decent graphics and sound for that thing?
View 4 Replies
Aug 3, 2009
How does one create a graphics canvas that is visible by the user through orientation (port->land->port) changes? If one defines layout land and port, there is a noticeable pause during the switch. Yet, I downloaded a bubble level application that never pauses as orientation changes - even when it switches from a circular level (gravity vector through back of device) to a flat level (gravity vector through side or bottom edge).
View 14 Replies
View Related
Apr 7, 2010
Apparantly the 2.1 update has reduced the graphics capabilities of the Droid, and therefore I'm assuming the Milestone too. Unfortunately, I never ran the lag test before I updated to 2.1 so I can't say whether my phone is better or worse off in the graphics department. Currently running official 2.1, my average fps sits at about 37. Can anyone still running 2.0.1 download this app , run it, and post their results here? I'd be interested to know whether the reports on the Droid's graphics are the same as on our Milestones. And of course we then need to make Motorola aware!
View 10 Replies
View Related
Mar 31, 2009
I want to show off how good opengl es can display on my G1. Does anyone know a game with good 3D graphics that I should install for this?
View 13 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
Feb 3, 2010
My application loads 12 100x100 thumbnail images from the web using the code below. I then display the thumbnails in a GridView using an ImageAdapter derived from BaseAdapter.I'm running into memory issues because each of the thumbnails is held in memory as a Bitmap. This seems like a fairly straightforward application (display a gallery of thumbnails from the web), can some give me advice on how to reduce my memory needs? Maybe there's a better way to display web images in a GridView that doesn't involve downloading and storing each one as a Bitmap?
View 4 Replies
View Related
Feb 2, 2009
Is it possible to boot the phone (ADP1) from a compiled android image stored on the memory card without affecting the contents of the image flashed on the phone?
I would like to do this so I can work with development images, but I didn't want to mess with the factory image.
View 2 Replies
View Related
Apr 27, 2010
I have yet to try this on an actual device, but expect similar results. Anyway, long story short, whenever I run my app on the emulator, it crashes due to an out of memory exception.
My code really is essentially the same as the camera preview API demo from google, which runs perfectly fine.
The only file in the app (that I created/use) is as below-
CODE:.......
View 1 Replies
View Related
Jun 15, 2010
Sometimes when I'm reading comics on this app it will tell me that I've run out of memory and I cannot read any further. I've tried killing apps in the background but nothing works other than letting it sit for a good while.
View 4 Replies
View Related
Oct 15, 2009
I start a Service from an Activity, the user presses back, the Activity goes away and the Service stays running in the background. However the activity (and it's views) still stay in memory. I tested this with cupcake and G1. To reproduce I've made a simple program.
The activity:
package com.android.service_test;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class StartService extends Activity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.main);
startService(new Intent(getApplication(), RunningService.class));
} }
View 20 Replies
View Related
Apr 7, 2010
I would like to check the memory consumption of each running processes individually, cat /proc//statmis ok, but opening a shell for each check is time consuming, and maybe not the best way. any advices how to do it with the SDK?
View 1 Replies
View Related
Sep 12, 2010
My phone storage on my HTC Desire seems to be permanently full up, I know there's things like the Internet cache and contacts that are growing all the time but I should still have enough room for other stuff. I've installed and moved all apps to my sd card, I only have 35 or so and there all fairly small little apps but I use them all.
Yet I am always getting the phone is running low on memory message, so I cant install anything from the app store. Thing is I still have 11.55 mb of phone memory but I feel I should have loads more, there's only really a few things taking up memory from what I can see in my apps because everything else is on my sd card.
Contacts Storage: 17.34mb
Flash Player 10.1 : 12.39mb
Maps ; 7.75mb
Swype: 5.96mb
Facebook: 3.80mb
Voice Search: 2.57mb
HTC Sense : 2.30mb
Internet : 2.39mb
Everything else is all really under 1mb. Is there some other files or something lurking on my phone memory that shouldn't be there?
View 11 Replies
View Related
May 13, 2010
I just got my Incredible a few days ago and I'm still learning it. So far its much better than my old Blackberry. I just have a question as to if this is normal or if I have a defective phone. When I got into running apps under settings its shows on the bottom (the numbers of course vary) Avail: 64+219 in 25 and Other 60mb in 4. As soon as I open then browser and go back and check it goes to Avail: 58mb+0.00b in 25 and Other: 0.00b in 4. I checked my fiancee's Moto Droid and it isn't doing this. Is it normal with the Incredible or is my phone defective?
View 9 Replies
View Related
Sep 1, 2009
I have been trying moving applications to SD card but failed when I go to terminal and use CP command. Is anyone done applications to SD card and if yes how can somebody share some details please. A to Z. My hero is already root, just running out of space on my internal memory. Its sad that HTC don't allow to put applications on SD. Love to have an option to ask where do you want to install the apps?
View 7 Replies
View Related
May 3, 2010
When I first boot up the phone and check the memory (after shutting down all the apps I don't want running) I notice my phone has about 220-250 MB free after leaving the phone on for about 2-3 hours, with no activity on my part, that number gets smaller and smaller. I just rebooted my phone again because it was down to 125 MB free with no applications running.
Also, "Android System" is consuming 65% of my battery life. I realize that number is inaccurate after a fresh reboot so I played with the phone for a good 4 hours running apps and such, so that I could get a good test of how much the OS is eating up in comparison to other apps. 65% is a bit much no?
View 6 Replies
View Related
May 29, 2010
We have a info bar at the bottom of the following menu: Settings > Applications > Running Services
Avail: XXXMB+X.XXB in XYZ_____________________Other: X.XXB in XYZ
Is anyone able to explain what XXX and XYZ are please? I am guessing XXX = memory taken up and XYZ = number of processes?
But it doesn't make sense to say: Avail: 32MB + 0.00B in 31 processes
What are considered 'good', 'bad' and optimal figures here?
View 3 Replies
View Related
Sep 23, 2010
Ok yesterday my desire informed me its phone memory was.running low, so I got rid of some pointless apps and games. I've downloaded one game and now its full again. Have I done something wrong? Un-installing is really quick. Is there anything I can do.
View 1 Replies
View Related
Aug 11, 2010
I woke up this morning to a song playing from my phone that I made with xPiano about 2 weeks ago. I have no idea why this file was activated and when I looked at my task killer, most of my phone's memory had been used up but no programs were running in the background. I've never seen it get this low even when using 20 programs at a time. I've been using a mixture of apps that I've downloaded off of my computer and through the market. Is there any way that someone has access to my device and can look through all of my files/folders? Are there any known hacks/Trojans/viruses that do this?
View 11 Replies
View Related
May 6, 2010
Just curious what you guys normally have freed up on your phones, since this is normally a way of speeding things up a bit. I've been reading today about how Task Killers are somewhat counter-intuitive and do not help with battery life. So I deleted and I'm now thinking about not having enough free memory... Figures.
Anyways, I'm 25mb right now, and I've hovered between there and about 125mb today. I'm curious what you guys are normally seeing. If I'm not using a task killer, is there something else you might recommend to keep things running smoothly?
View 9 Replies
View Related
Jul 15, 2010
Just got the new Droid X. Coming from a windows mobile phone (which I hated) I have a question on the android OS. It seems that when you are done with an app you just have to hit the menu button again.. but this leaves it in memory running.. is there anyway to close the and and just leave it? I did download the Advanced app killer but that seems silly to have to pick from a list of what you want closed.. I see no way to just close the app you are in.. it should be a default option for every app.. I hope I am just not finding it.. and it is there somewhere..
View 7 Replies
View Related
Aug 21, 2013
My brothers a7100 was running low on internal memory, he ignored the warning messages and kept playing games, the phone then started to slow down he turned it off and when he has turned it back on its stuck in a boot loop. I can put the phone into download mode.
View 2 Replies
View Related
Nov 14, 2010
how the memory works on my orginial motorola droid (2.2). When I open the running services tab I see this on the bottom:
Other: 54MB in 3 Avail:19MB+45MB in 7
I'm wondering if someone can explain what this means. I assume this is all coming out of the 256MB of Ram the droid has? I was also installing app's and got a memory low warning aftering firefox beta that was 14MB in size. I gather that almost all the apps do not support installing to the SD card yet if ever. So of like the 100 apps I have installed is it likley that they are all taking up room of the RAM of the 256MB? I'm also wondering if there is a good app that shows you how much of your RAM is full with apps, so you know when you need to uninstall some etc. Like you are using 200MB out of 256MB or whatever.
View 3 Replies
View Related
Nov 1, 2010
My Xperia X10 mini is currently completely useless.
The symptoms:
I turn it on and it gets as far as the splash screen which says sony ericsson and shows the SE symbol and it gets no further. No error messages are displayed and it remains in that state until the battery runs out. The only action I can find is to press the power button and the middle button for a second or two to perform a reset but this results in it rebooting and getting to the exact same point. Plugging into a computer to charge up seems to charge it but when the power is sufficient it boots up and gets to the same point. PC Companion asks for me to mount the phone which is obviously impossible as i have no interface.
Possible causes:
Before this happened I put the phone into airplane mode. After doing this it displayed a message related to running out of space. This was strange as i haven't added any applications or even been using it as I am abroad. I deleted some data from a couple of applications that I don't use and restarted to the behaviour described above. The applications were user applications and completely unrelated to the system. Even a master reset if this is possible without being able to boot up the phone?
View 8 Replies
View Related
Feb 26, 2010
I have rectangle white box. on cliking the rectangle I will draw a toolbar beneath the box and also call relayout to accomodate the toolbar ( size+100) ( i used surfaceview and in secondary thread i draw the toolbar) on click again on rectangle box it will disappear the toolbar and also has to resize the layout to original size (ie size-100) this is where I get stuck. I can disappear the toolbar however I cant call relayout either from secondary thread (says cant call from secondary thread). So I created a while loop in onlayout( this is where i create a thread to draw the toolbar) if i call requestlayout after while loop ends it doesnt do anything it doesnt call onmeasure etc.
View 4 Replies
View Related
Jan 14, 2010
I created a 2d game in java that runs as an applet, and i am now trying to translate this over to the android. As the android doesnt used paint() methods, i am thinking that i will have to import images of the game instead of drawing it, but i cannot find out how to do this. Anybody know how to add images to the folder and call them in the app? Also, how can i call a screen repaint() in the android?
View 2 Replies
View Related
May 16, 2009
I want use the methods in android.graphics to draw one board (board chess,)
View 2 Replies
View Related
Oct 27, 2010
Is there any way to add the x-graphics in the android Editbox like the of iPhone.So that by clicking on that x graphic it can clear all the values in the Editbox.Is there any way to listen weather i touch a specific part of an edit text
View 1 Replies
View Related
Sep 1, 2009
I want to do some programs using graphics can anyone send me sample programs about graphics package
View 5 Replies
View Related
Apr 26, 2009
I'd like to build an activity that is mixing layouts with 2D graphics. So for example, would like to introduce an edittext with an integer value and based on that value the size of a circle is dynamically adjusted and drawn. Any idea how to do this?
For plain graphics I am using this approach here - but how can it be expanded to cover Android layouts (buttons, editboxes, textviews, radiobuttons, etc.)?
CODE:..............
View 2 Replies
View Related
Aug 2, 2010
1. What size should graphics intended to promote your app in the Market be designed for?
2. What about the larger graphics that depict screenshots of the app in the Market?
3. What size should app icons for devices be?
View 2 Replies
View Related