Discussion Forums  >  Crashes, Memory Warnings

Replies: 12    Views: 188

ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
03/08/13 07:21 PM (11 years ago)

No Screen is Connected to This

Hi, been having an issue when running lots of buzztouch apps on my android phone. When I start the app up it works fine. It goes to the background and I do other things. After a short while, I go back to the app and I get the 'no screen is connected to this' error, even on home menu. It is the same for every menu choice. I go back out of the app, wait a long time and the app eventually is stopped. When I go back into the app, I get the 'app was stopped' message, I start the app back up again and it works fine once more. I understand the app being stopped and needing to restart after some time in the background, but what I can't understand is the app not being able to find its screens. This is happening to multiple apps on the phone. Has anyone else seen this problem?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
03/08/13 07:25 PM (11 years ago)
I see it all the time on Android older devices. Usually fix it with restarting, cleaning and running again. Not certain but I always just put it down to older Android devices. Not a huge Android dev but just bought an old SII and it seemed to stop, was using an older HTC when it was happening.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
03/08/13 07:59 PM (11 years ago)
Just went through this with a client. He was using an app killer, that is the problem.
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
03/08/13 10:21 PM (11 years ago)
Hi, brand new phone, no app killer. It is an htc though which is interesting considering MacApple's comment. Could it possibly the mail client - aqua mail which is always running?
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
03/09/13 05:45 AM (11 years ago)
Does the log cat say anything? Is your config file up to date?
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
03/09/13 05:19 PM (11 years ago)
Log cat just says the screen (by its name) cant be found. The config file is up to date. This is happening to all the buzztouch apps on the phone. If I stop the app and restart it, there's no problem
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/11/13 03:32 PM (11 years ago)
HTC Gadget: Cool. What version of Android is this thing running?
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
03/11/13 05:05 PM (11 years ago)
Hi, it's running android 4.0.3. Deleted all of the other stuff I thought might be messing things up, but it's still happening. It wouldn't be a problem if the app could be forced closed when leaving it, is there any way that I could make it do this? Thanks for your time guys, Liz
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
07/10/13 06:02 AM (10 years ago)
This is happening on my Note2 also. If I press the home button and leave my app running in the background, then open it again a few hours later (in this case 6 hours later), everything on the main screen says No screen connected to this, and when you press the menu button to refresh all you get is the Ok- Close option, Refresh all data has disappeared. Fortunately all I have to do is hit the back button to exit out and restart the app to fix it, but it is quite annoying. Could this be a memory leak?
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
07/10/13 06:09 AM (10 years ago)
The new Android OS has a built in app killer, sort of. I've found that all my apps that are PDF heavy, all of them, do this on the newest devices. Wish someone had a fix, but I fear it's not so easy. Tim
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
07/10/13 06:20 AM (10 years ago)
Thanks, I just got finished reading your thread on the problem too. I don't have any PDFs, but I do have a lot of images I'm loading, plus a lot of screens (it's basically a directory app). Wish there was a way to just close the app after it has been idle for so long.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
07/10/13 06:31 AM (10 years ago)
Yeah, I think that would solve it. Or somehow telling Android which stuff in the background is connected to each other so if part gets killed all of it does. Tim
 
Theien
Aspiring developer
Profile
Posts: 33
Reg: Dec 31, 2012
Colorado Spring...
9,780
like
07/11/13 04:17 PM (10 years ago)
I finally figured how to close an app after idling too long, in case anyone wants to do this in the future: http://stackoverflow.com/a/14361698 I pasted the first half under this line in BT_activity_base.java: public class BT_activity_base extends Activity implements LocationListener{ The second half goes in the onResume section, paste it below this line: super.onResume(); change ...your move... to finish(); You'll need the following added to the import section: import java.util.Timer; import java.util.TimerTask;
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.