StartAtBoot

ivanreus

Member
Licensed User
Longtime User
In my application I put in the service module StartAtBoot = true and my application does not start when you turn on the tablet, which can be the problem?

thanks
 

ivanreus

Member
Licensed User
Longtime User
When I turn the tablet does not start my application.

#Region Module Attributes
#StartAtBoot:true
#End Region


.......

Sub Service_Create

If Notification.IsInitialized = False Then
Notification.Initialize
Notification.Sound = False
Notification.Vibrate = False
End If

Timer2.Initialize ("timer2", 800)
End Sub

Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(1, Notification)
If IsPaused(principal) AND IsPaused(WebPag) AND IsPaused(panelpie) AND IsPaused(nosotros_terminosuso) Then
Timer2.Enabled = True
End If
End Sub

Sub Service_Destroy
Service.StopForeground(1)
Timer2.Enabled = False
End Sub


thanks
 
Upvote 0

ivanreus

Member
Licensed User
Longtime User
The project is 5 activitys, I can not make public because it is private. (not mine).

You could anyway help me with this problem?

thanks
 
Upvote 0

ivanreus

Member
Licensed User
Longtime User
Thanks for answering teacher

Manifest File I have not touched

'This code will be Applied to the manifest file During compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText (
android:minSdkVersion="4" <uses-sdk android:targetSdkVersion="14"/>
<supports-screens android: largeScreens = "true"
android: normalScreens = "true"
android: smallScreens = "true"
android: anyDensity = "true" />)
SetApplicationAttribute (android: icon, "@ drawable / icon")
SetApplicationAttribute (android: label, "$ LABEL $")
'End of default text.

and Project -> do not overwrite this file manifest unmarked

Any other ideas of what can be?

thanks
 
Upvote 0
Top