Android :: Android Game Runs Out Of Memory When Close And Open
May 21, 2010
I have an Android game that has an activity for the menu, and then another activity for the game that creates a SurfaceView and Thread to deal with canvas drawing and game logic. When you exit the game and start it up again too much or if you open and close the keyboard (thus restarting the activity), the game runs out of memory, usually when loading a bitmap: java.lang.OutOfMemoryError: bitmap size exceeds VM budget keeping all my images in memory without loading them again.
View 3 Replies
Jan 19, 2010
I want to close my application, so that it no longer runs in the background.How to do that? Is this good practice on Android platform?If I rely on the "back" button, it closes the app, but it stays in background. There is even application called "TaskKiller" just to kill those apps in the background.
View 6 Replies
View Related
Aug 30, 2010
I am building a 2D game with Android SurfaceView. When I touch the screen the game animation runs slowly. Why, and how can I avoid this?
The touch events are stubs just like onTouchEvents(MotionEvents ev){ empty };. All of the game logic and graphics draw code are in run() in an extends Thread class.
View 3 Replies
View Related
Jun 18, 2009
My game runs fairly well on my phone, but i want to increase the performance by using opengl. However currently i use the Canvas. I am a beginner in opengl. I have to port all my drawing code to opengl. However can somebody give me directions. For example how do i do the following in opengl:
c.save();c.scale(0.3f+scale, 0.3f+scale, width/2, height/2) c.drawBitmap( bMsg.bitmap, width/2 - bMsg.bitmap.getWidth()/2,dy+height/2 - bMsg.bitmap.getHeight()/2, MESSAGE_PAINT);c.restore();
And why cant i just use Canvas as an abstraction layer (facade) for opengl. An implementation of canvas could call the correct opengl methods in order to render. Why do i have to port all my code. I thought the canvas was a good abstraction interface to a drawing surface, why do i have to bother with opengl? It looks like this is possible, when is see the following contructor: "public Canvas (GL gl)" Also the this seems usefull. SURFACE_TYPE_GPU Surface type: creates a surface suited to be used with the GPU So what should i do? Re implementing the GamePainter completely and call opengl functions directly? Or is there some kind of abstraction mechanism, so that i can use OpenGL with just a few lines of code?
View 4 Replies
View Related
Apr 28, 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 2 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 23, 2010
In my app, I'm supporting the backup and restoration of the Sqlite db file. I need to close and re-open my database connection after the restore. How can I do this?
View 2 Replies
View Related
Sep 1, 2009
does somebody know site(s) with open-source games for Android?
View 2 Replies
View Related
Jul 26, 2009
Does anyone knows how to open or close the soft keyboard by code not for application development?
View 7 Replies
View Related
Jul 28, 2009
I have fixed the activity screen orientation to portrait on AndroidManifest.xml file. When I open or close the keyboard the activity gets restarted. How to avoid this restart?
View 4 Replies
View Related
Oct 15, 2010
I'm writing a graphic design application for Android where the user can add several images to a document, where each image is stored as a Bitmap object. Each bitmap has roughly a dimension of 800x400 pixels and uses ARGB8888 pixel format (i.e. ~1.5Mb each).
I'm aware that most of the first generation Android devices have a 16Mb heap limit and this limit is 24Mb and larger for newer phones. I'm also aware that bitmap memory is allocated externally, but I'm confused and what the implications of this is.
My question is: How can I tell at runtime when adding a new Bitmap will get me too close to the memory limit?
Before someone suggests "don't use that much memory", I know that one option I have is to limit how many Bitmaps the user can create such that I know this limit is safe for the most basic Android phones. However, I'd like for phones with a bigger memory limit to support more bitmaps and/or bigger bitmaps.
I know to check for OutOfMemory exceptions when allocating bitmaps. However, there will be some situations where I've only got just enough memory left to allocate one more bitmap. After this point, the whole application will be unstable because even allocating small things like strings could cause an OutOfMemory exception. This is something I want to avoid.
I'm not sure how to define "too close to the memory limit", but I suspect something like "don't allocate more than half of your available memory to bitmaps" would work OK as my other data structures I store in memory are small in comparison.
View 3 Replies
View Related
Mar 29, 2010
I am setting up an open source 3D game engine for android. What license should we use? Thought we'd go with something like BSD or maybe GPL/LGPL, but getting confused about it. Want a license that helps developers - doesn't hinder them - and an engine that's as open as possible.
View 2 Replies
View Related
Dec 15, 2009
I was trying to do a memory game on android, but i can't figure out the code that matching 2 button with the same image..
CODE:..................
View 1 Replies
View Related
Dec 20, 2009
The AOL INSTANT MESSENGER (AIM) app is always open for some reason.. I see the Icon on the notification bar and it never goes away, even when I sign out of aim.. This is keeping my awake time at 50%.. Besides rebooting does anyone have a fix for this.. I dont download 3rd party task managers and apps because they seem to slow down the performance of the hero.. I think partiallly because it skipped the 1.6 and cupcake builds.. However there is an internal task manager (Applications>Manage apps> Menu/filter by running) but a force stop here seems not to fix the problem
View 3 Replies
View Related
Nov 11, 2009
Any idea? It doesn't seem to close apps like TaskKiller or TaskPanel. So what is it doing?
View 4 Replies
View Related
Jun 16, 2010
Anyone experiencing force close with Qik app? It was working ok now it won't open and I get a force close dialog.
View 3 Replies
View Related
Jun 27, 2010
I recently bought the game loft game NOVA. When I open it up, it says it has to download something to run. After its done, it says it has been downloaded and click to continue. I click but then it exits out of the app. What's wrong?
View 8 Replies
View Related
May 4, 2010
I am just wondering about this.....I had the same issue with my old LG phone..is it because all these phones have a flash memory? Are there any app's besides task managers that can close the app's for good?
View 30 Replies
View Related
Jun 24, 2010
This morning my camera and video camera would open and then immediately close down. I shut the phone down and rebooted. Camera still did not open. Next, I shutdown the phone and removed the battery. After a few moments, I reinstalled the battery and rebooted. The camera still would not open. I had to do other work, so I just set the phone aside for a few hours. When I came back, I tried the camera again and after a short pause it opened, but not as smoothly as in the past. It is still not opening as it should. First it displays a very quick view of the desktop with an error message. It goes too fast for me to read and then it opens the camera app.
View 1 Replies
View Related
Aug 27, 2010
So I'm running 2.2 and now my camera wont work. I can open and take pictures using an Fx camera, but anytime I try to open the camera or camcorder it will open for maybe 2 seconds then just close, sometimes my screen will just be completely black, and also sometimes it tells me camera not available try again another time.
View 1 Replies
View Related
Sep 28, 2010
i just downloaded a build prop and rebooted and after that the camera and camcorder will open but only for a second or so.i need to fix it can someone help?i am running 2.2 leak and tranquility rom,
View 1 Replies
View Related
Sep 24, 2009
I'm new to android, and i just got my htc hero, how do you close applications. I mean, i open an app and when i'm finished with the app then click the "back" button or the "home button" to open another app, but seems when i long-press the "home" button, previous apps are still open... the only thing that sort of close all the apps when i turn off & on the phone. how do you close apps?
View 7 Replies
View Related
Jun 13, 2014
Following are details of my Cell --
Model: Samsung Galaxy S Duos (GT-S7562)
ROM: PMP Ultra 8.5.1
Issue:Recently, I switched my s duos from official Stock OS/ROM to PMP Ultra 8.5.1 for better features an usability. As I could see that after installing some apps(~8-10 in count), apps such as Gmail(while opening particular email), Link2SD, Gallery gets shutdown as soon as try to open them.
This issue happens after some time rebboting cell, and persist until next reboot, I could see that I have enough space and RAM available to manage yet more apps.
View 1 Replies
View Related
Jan 30, 2010
I'm looking for a memory card game (where you need to find matching pairs of cards) to play with it with my Android phone but there are so many different, I can't make a clear choice and would like to avoid trying all of these
So, if you've tried some of them and have an advice about it, could you please give me the name of your favorite memory game?
View 1 Replies
View Related
Aug 23, 2010
Does an average game on psx4droid use? i have about 200mb left on my sd card and was wondering if i was going to need another card and what size i should get to suffice.
View 1 Replies
View Related
Mar 4, 2010
I am new to the whole rotting thing, I installed the bugless beast on my droid 2 days ago and everything went great and it worked fine, I'm just having an issue with it being really lagy at times and the biggest problem is that it freezes everytime I open or close the keyoard, I have to forse close and wait for it to load everything up again, a message is desplayed and it says:
The application launcher+(process android.process.acore) has stopped unexpectedly. Please try again. Then I hit forse close, it usually only happens when I open or close the keyboard but sometime it will happen at random. Does anyone know why this is happening and how to fix it.
View 3 Replies
View Related
Jan 31, 2013
Ascend P1
Is it possible to put game data in memory card and run the game. i mean should the game data be on internal storage in order to run the games or it is ok with memory card too? will the game search for game data only in internal storage or it searches the memory card as well?
View 2 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 6, 2010
I've just uploaded Version 1.1 to the Android Market which adds support for large screen sizes. You can also pick it up at the Mobihand App Store: Mobihand App Store
Critical Altitude 3D is an Accelerometer based third person flight game featuring real-time 3D graphics (OpenGL ES). Race through endless levels avoiding buildings and various obstacles to earn a highscore!
- OpenGL ES for true 3D real-time graphics
- Accelerometer ( tilt the device ) for Up/Down and Left/Right steering
- 4 Planes to choose from with different speeds and point rewards
- Planes unlocked based on Highscore...
View 7 Replies
View Related
Nov 20, 2010
I downloaded nesoid and rom gripper from the market. I then downloaded 2 game roms from rom gripper. If I delete nesoid and rom gripper from the market will the two roms be deleted as well. If not where are the roms and how do I delete them.
View 3 Replies
View Related