Game App using surfaceview in android - surfaceview

I m trying to develop a game app using surfaceview.The app runs properly but becomes slow in between.I m stuck with this problem.Plz help me.Thanks in advance.

The question is too generic.. Have you been using any resource that are not recycled? Also considered call unlockCanvasAndPost() / unlockCanvas() only once for each loop.

Related

ARKit Persistence worldMappingStatus Always Limited

I am developing an ARKit application using World Tracking. However, the worldMappingStatus is always limited. Does anyone have the same issue or know how it can be solved?
Best regards,
Casper
That's not normal but I'd need a bit more info to properly answer your question. 1- How do you know it's always limited? 2- are you moving the phone around when you launch the app to "understand the surroundings" 3- what code have you tried?

Start application on shaking iphone

I'm making an application were I want to start the application when user shakes his iPhone. Is this possible? Does any one knows how to detect this?
It’s not, at least if we’re talking about a regular app distributed through the App Store.
No, its not possible, to start the application using shake.
you use the shake functionality inside application

Memory Issues in developing Android App

I am presently trying to develop an Image Processing based app for android mobiles using Eclipse. My app consists of several buttons and sub-menu buttons as well. I am trying to make it universal(so that it can run on any resolutions) using switch case for the different resolutions, and thereby different resources for different resolutions. The problem is, I am encountering memory overload problems. It runs fine on Xperia U, but not on Galaxy S, and also crashes in the Emulator. I haven't used XMl for my app, and have designed the entire UI programmatically. Please advice me on how to solve this problem. Any help will be highly appreciated. Thanks in advance!
Well, the question sis very general but here are some points that might help:
Designing everything programmatically means your app will be slow and will create everything on runtime. It is not using the design optimization of Android UI by not using XML.
What context are you using in order to create UI objects. If you are tying the UI objects to the apps context rather than activities' context, all the components of UI will remain in memory unless the app is killed. Unlike in activity as soon as the activity is destroyed all its UI components are killed.
You could use XMl inflator in order to reduce work in Java, by reusing components created in XML . This will help you optimize some sub components that you are using repetitively.

iphone - making Wifi-list app

I want to programmatically show a list of available wifi on my iphone.
I tried to run this program but it doesn't work.
http://code.google.com/p/iphone-wireless/wiki/Stumbler
Does anyone have any tutorial or sample code about creating a list of wifi-network.
Thanks.
I think that's not possible. I didn't try it myself. But I just read the first few lines of the description of Stumbler. There's the following line:
Stumbler can not be distributed through the app store, as it uses private APIs!
So I don't think it's possible to create an application that lists all WiFis. On iPhone this is a part of the Operating System.
Sandro Meier

Is it possible to write an application that plays music in the background on iOS using Adobe Packager for iPhone?

I would like my application to be able to remain running while the user goes and uses another application. (It will be playing music) Additionally, does anyone know about how to communicate w/ Cocoa Touch from this environment?
If you think this is not possible, which platforms are capable of this (other than the obj-c mac x-code route, which I am trying to avoid)?
Edit:
After a week, no answers at all. Very disappointing. I don't normally ask questions - this is my first! Isn't there anyone from Adobe here?
Having seen a project that I wrote being ported by someone else to work on iOS, using the iOS packager, I can say that it's totally possible that sounds playing in the AIR app can play even after you "close" the application whether you intend them to or not (continued playing in this case was not the desired situation). As long as the application exists somewhere, playing sounds appear not to stop without an explicit command otherwise.