In my android Application,I have an issue in which if I open app from background after some time (30 or 40 min) , that time my app got restart can any one have suggestion on it.
I have gone through almost question before asking this one,but can't find any suggestion or help.
Thanks in advance, any suggestion will be helpful.
Related
In the last couple of days, my AndroidStudio suddenly freezes while working on the UI. It's simply freezes and even if I wait for 10 minutes it won't resume itself and the only thing I can do is to terminate the process through task manager and start the Studio again.
I checked for updated to the AndroidStudio thinking this might help so I did the update and my current version is:
But even after the update - it's still happens after about 5 minutes of work on the UI.
I took a screen shout of task manager after the freeze happened and it doesn't seem like it happens due to some overload on the system , here's the screenshot:
I searched the forum before posting but I didn't find any post that described the same problem as I have.
I continued exploring my problem in order to make it more specific and fount out that it's only freezes when I'm trying to use the extract resource window in order to make my views name by the String.xml instead of direct writing the value to the text field of each view.
This is the extract resource window I'm talking about.
I hope it will make it easier for you to understand my problem and help me with a solution.
Thank you in advance,
Noam
In an Android alarm clock app that I want to develop, I want to allow people to have a custom image as the app's background when it goes off, rather than having the device's stock background, but I don't know how to go about it. It might actually be really simple but I am still a beginner (a shocker I know) so yeah does anyone have any ideas??
Just in case people are getting confused, I DON'T want the app to change the person home screen wallpaper, just the alarms background
I haven't started the app yet because as I said I need to know this one thing before i spend a few weeks developing
Kind Regards
Ryan
I believe this question has been asked multiple times before. Did you try searching the site prior to asking? It is a pretty basic question if you are just trying to change the background wallpaper on Android.
Edit based on your comment: See here.
This question already has answers here:
How to prevent an android activity to get killed
(3 answers)
Closed 9 years ago.
I'm trying to create an app that sets an alarm if the screen is off for too long. This will be checked in the background every 5 minutes. Unfortunately android kills my app sometimes and I need to keep my app active in the background. What is the best way to do this?
I was also thinking about restarting every 5 minutes if the app is killed. Is this a better way to keep my app mostly active in the background? How to do this? Or is there a better solution for me?
Maybe restarting the way like Facebook does?
I would recommend having a look at Mark Murphy's WakefulIntentService.
I think i fixed it by using a simple service that does nothing except for an infiit loop of logging.
I want to develop an app which user cant open after given days time or will pop up activity that time span is over .
I want to design an app. which user can use for 15 days after that user cant use its functionality.
For “normal” software a solution is to read the install date and add the time span. Then check on every start or resume the date. If the time is over show a dialog and finish app.
I know this is not really save solution if the customer knows it, so please don’t discuss about this. But is maybe a better solution than building two apps?
Faced this problem, and after spending hours of time on this, got the solution.
The issue is, whenever I installed the app, the TWLauncher of the Samsung device, enters a crash loop, where it always crashes.
No idea why, but when I replaced the icon with an other one, it fixed the issue. So use a different image and try, and it will work! Just thought I would share this with all of you.