Italian problema installazione pacchetti

fbot

New Member
Licensed User
Longtime User
Salve a tutti
avrei bisogno di un aiuto, sto scrivendo 4 righe di codice banalissime usando una activity un modulo service e la libreria PhoneEvents. il problema è che se provo installarla nellosmartphone (nexus 5 con android lollipop) mi restituisce un messaggio che l'installatore di pacchetti si è bloccato in modo anomalo.

codice Activity
#Region Project Attributes
#ApplicationLabel: call
#VersionCode: 1
#VersionName: 1
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified

#End Region

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True

#End Region

Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.

End Sub

Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.

End Sub

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
StartService(start)

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)
Activity.Finish
End Sub

Codice Service
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.

Dim pe As PhoneEvents
Dim pi As PhoneId

End Sub


Sub Service_Create
pe.Initialize("pe",pi)
End Sub

Sub Service_Start (StartingIntent As Intent)

StartServiceAt("",DateTime.Now + 1 * DateTime.TicksPerMinute,False)

End Sub

Sub Service_Destroy
pe.StopListening
End Sub

Sub pe_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
Log("stato attuale " & State &" " & IncomingNumber )


End Sub

Perchè mi si blocca l'installazione?

grazie anticipatamente
 

picenainformatica

Active Member
Licensed User
Longtime User
Devi disattivare la verifica dei pacchetti di installazione e attivare la possibilità di installare da sorgenti sconosciute.
 
Top