App freezes up after screen time out.

5 replies [Last post]
kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013

Hi

We now have a number of devices, running the HAH Android app, modified to suit our requirements.

I have a problem as follows:-

If you do not (wife) shut the Android app down after completing your task, but leave it running and the phone goes in to screen lock. After a while (not sure how long) it freezes up the app and also flash will not respond. Sometimes you can just take the phone/table out of stand bye if you know which device was last used and it will respond, after it completes updating all the changes since it was previously used. Other times I have to reboot the HAH.

Hope the above makes.

Would it be possible to have the app shut down after a set time, say 2 minutes after non-use.

 

kema

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I think you are talking about

I think you are talking about the applicationSuspend and applicationResume events.
Did you handle these in your code like this sample does:  https://code.google.com/p/livebox-hah/source/browse/trunk/userapps/HAHCo...

Brett

kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
Does not look like i do

Brett many thanks for your response.

Had a very quick look at the link you sent to me (multi scene). It looks like the version I am using does not include this code.I have been using the single scene version..

I have attached to this post my main.lua, this may be of help as a first step to other novice HAH enthusiast on there journey of knowledge.

Will report back if I need further help.

Thanks again.

kema

AttachmentSize
main.lua 4.88 KB
kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
Nearly There

Brett

Just a line to confirm I have now graduated to the latest multi scene Android app. All appears to be working.

My next challenge is to get the Slider Control 2 working you wrote, integrated into the app. I have not yet had a proper look at what is required.

Many thanks 

kema

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Glad it got you moving.  The

Glad it got you moving.  The whole suspend/resume thing was something that caught me out too.

What I'll really love to do is some drag and drag xAP UI builder where you can design and build some control surface without having to code anything.  Now where did I put that motivation?

Brett

kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
Update

Brett I cannot remember where on the forum I got the Android app code, I was using. I was very surprised when I got it working , as it seemed quite a complicated process for me. Once working I stuck with it.

It was not until I was having lock up problems that I raised it on the forum. Unfortunately I did not come across the older post regarding this issue until after you responded to my request.

At this time I am have problems with the slider 2 app, I will not be able to investigate properly until latter next week. If I cannot get it working I will raise a new post, would be interested to know if anyone else has slider 2 working though.

kema

Hardware Info