service.StartForeground disables boot on startup on HTC ONE X

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi

Has anyone experienced this. When a project a a reference to service.startforeground, your app will not start on a cold boot(phone powered off).

Is there a reason for this type of behavior ?

Regards

John.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi

This is the first entry in the log file for our app.

2012-10-18 12:30:20.164 I 251/WindowManager: WIN DEATH: Window{41691680 is.com.vitllink/is.com.vitllink.main paused=false}

Is WIN DEATH as bad thing ?
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
attached is a simple foreground service that wont start on a cold boot. All it does is display the current time in the notification area. Anyone who views this post please have a go using the test_1.zip. Let me know if you experience the same problem.
 
Last edited:
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
Here are the log file for test1, anyone who views this post pls download the application zip and play with it. Let me know if it works on your device.

Many thanks.
 
Upvote 0

viljemto

Member
Licensed User
Longtime User
Hi,

have you maybe found any solution to this problem? I have the same problem with Htc One V (Android 4.0.3). With Htc Desire S (Android 2.3.5) works OK.

On both devices I have Fast boot enabled. I have made test project in Eclipse. Result: on both devices Start on boot works OK.
 
Upvote 0

viljemto

Member
Licensed User
Longtime User
Can you explain this a little please? Service.StartForeground or StartServiceAt?
I just use a simple service, which shows ToastMessageShow.

That is a little more strange today. On Htc Desire S I ran out of battery. Today it also does not want to start service at boot. Before it did.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…