Hi all, I used the HttpServer library for a small project. For my purposes the server isn't used as a service, but as activity, so it is started on ActivityCreate and stopped on ActivityPause. I tested the application on 3 different smartphones:
a) MID-A13 with Android 4.2.2
b) E1000 with Android 2.2.1
c) Galaxy Nexus with Android 4.3
For models a) and b) there are no problems, but the model c) has a problem: after installing the application, the phone can' be set to sleep (I know, the HttpServer is exciting). If you try to suspend with the button, it goes "off" (display off) then resumes "on" after a variable time, one to ten seconds. This makes the phone unuseable and I don't want to distribute an application with this problem. The normal status, also, is impossible to recover. I tried:
a) close the App with the application manager
b) uninstall the App
c) completely turn OFF the phone, also removing the battery for a couple of minutes.
All such operations had no effect. When turning ON the phone again, the old behaviour was restored: the phone can't be turned off.
Initially, I thinked about an hardware problem. The phone is damaged. I tried to restore the default phone conditions, erasing all my data and preferences
and in such case the phone revived, perfectly working. Reinstalling the App with the HttpServer reintroduced the problem. Please, note that if the phone is connected to a PC with usb cable the problem does not exists, it can be suspended regularly and doesn't resumes automatically. I don't know why this happens only on the Samsung phone.
Has anyone faced a similar problem ? Thank you.
a) MID-A13 with Android 4.2.2
b) E1000 with Android 2.2.1
c) Galaxy Nexus with Android 4.3
For models a) and b) there are no problems, but the model c) has a problem: after installing the application, the phone can' be set to sleep (I know, the HttpServer is exciting). If you try to suspend with the button, it goes "off" (display off) then resumes "on" after a variable time, one to ten seconds. This makes the phone unuseable and I don't want to distribute an application with this problem. The normal status, also, is impossible to recover. I tried:
a) close the App with the application manager
b) uninstall the App
c) completely turn OFF the phone, also removing the battery for a couple of minutes.
All such operations had no effect. When turning ON the phone again, the old behaviour was restored: the phone can't be turned off.
Initially, I thinked about an hardware problem. The phone is damaged. I tried to restore the default phone conditions, erasing all my data and preferences
Has anyone faced a similar problem ? Thank you.
Last edited: