I created an app in AI2. Its still building but i wanted to check out its speed and efficiency in the apk file format so i build the app but the home screen reloads every second and i am just able to see something and it loads and again. I checked my code there is no timers there was a while loop which I have deleted. I can't figure out what is the problem.
There are the following possibilities
"something" in the Home_screen.Initialize event might trigger the reload, to find out if this is the problem, just disable all blocks in the Home_screen.Initialize event
A clock component in screen Home_screen or Screen1 might be the issue. Just check how the Clock.Timer event looks like and if you disable the clock again after calling it
As you mentioned in the comments, #2 was the issue and you forgot to disable the clock component in Screen1
It might be because of a clock trigger in the previous screen. When you change your screen disable the clock and enable the next screen.
Related
I have some problems to my app and I don't have any idea to fix that.
I open my app and use it for a while, then I let my app run in background which means I don't close it and use my phone do other things.
But when I want to use my app again, I found that my phone becomes very lag. When I click background app button to show which app is running in background, my app jumps to screen very lag, and when I want to click it or want to close it, it will very lag too, which means maybe my app make my phone become lag.
This situation only happen when I want to open my app again or I want to slide out my app to close it. When my app is running in background and I do other things, my phone will not lag.
I don't konw what happend to my app, can anyone tell me how can I check my app,
and know what happened that I can fixed it, thank you!
Check in your application code that you have not put a heavy task on onResume() method. If possible try to take that execution in appropriate life cycle method.
Put a break point on method which is call when the application got visible and try to find out that if any function is not taking much time to execution.
I have crashes occurring in my app when the drops in the LRU-application list within androids OS (See http://developer.android.com/guide/components/processes-and-threads.html#Lifecycle). This is due savedInstanceStates not being handled properly. It's really painful and time consuming to constantly have to open my app and then open like ten other applications just to mimic these errors and verify my fixes.
Is there a quick way to mimic this via code?
The way I test those cases is go to Settings > Developer Options. Scroll to the very bottom and enable Don't keep activities. Also, set the Background process limit to No background processes.
Open your app and hit the home button once you are in the activity you want to test and then bring it back from the Recent Apps list.
Hope this helps.
So, a few users have been asking me if I could make a home screen widget that launches my app..
Due to sensitive content, I've made a simple "Enter the password" splash screen. If the pin is correct the user gets access..
I've been getting complaints that it's a little slow and annoying to enter that every single time.
Majority of the requests I'm getting are relating to accessing the app quickly from the home screen itself. Using the simple shortcut icon is literally the same thing, since it will again open up the password screen..so I need something different.
So I need to open the app from the home screen, using a widget. I need the opening process to be say under 3 seconds or so... and I need to confirm the identity of the user.
What I'm thinking is a Lock Screen, or Pin screen widget.
Is there a way to replicate the Android Lock Screen inside a widget ? ... Remember, I need it on the home screen...
I think a 3X3 grid widget should do....
But there's absolutely no mention anywhere on how to do this... Is it possible? If so, how?
I want exact same functionality, the user can say, set a lock screen combination inside the app, disable the pin entering splash screen, put up the widget - and open the app from there.
Again, there's no mention anywhere of anything relating to this.
So, Any ideas on where I can get more help? Or how I might go about accomplishing this ?
I just want to add a screen help just like that one is in Go Launcher. The screen just loads in first time the app started in phone and with low opacity guides user to how to use that application with arrows and texts that notice.
You can save a flag in your app prefernces.
When your app starts the first time, set the flag and save it in the preferences. On startup check this flag and you can decide to show or hide your screen.
Some nice tutorials:
http://www.vogella.de/articles/Android/article.html
Today I am looking for a way to mimic the behavior I know from my HTC Hero's lock screen: the calendar and alarm clock can put text & drawables there to inform about an upcoming event or an expired alarm. The lock screen remains there in that it must be dragged down to dismiss the shown event and there might also be a Snooze button.
But, first question: is this default Android stuff or HTC Sense specific only??
Second question: If it is a common Android thing, why can't I find anything in Google's Android documentation for the topics "lockscreen" or "lock screen" that comes close to my question? Where's the API for it?
My problem is: I want to inform the user immediately - even if I try a standard notification, the user with a locked screen will have to unlock it and drag down the notifications list to see & clear what's going on. sigh Putting an endlessly playing notification sound there is a hassle as it takes at least two swipes down to stop the sound playing!
Any hints on this?
Thanks!
is this default Android stuff or HTC
Sense specific only?
It is HTC Sense only. You cannot modify the lock screen of the device from SDK code -- only via firmware modifications. Sorry!
It's kind of o long way around the problem...
but the wallpaper is shown on then lockscreen. so you clould write a custom wallpaper to display your info on the lockscreen. (i think).