Android Question Intent with Return

MarcoRome

Expert
Licensed User
Longtime User
Hi All.
After running this intent:
B4X:
Dim i As Intent
i.Initialize("android.intent.action.DELETE", "package:" & sRealAppName)
StartActivity(i)

you see this message:


test.png


the question is .... can i have a "return" if the user has clicked the "OK" or "Cancel" ??

Thank you
Marco
 

MarcoRome

Expert
Licensed User
Longtime User
This is code in Main ...

B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("antispy2")
  StartService(start)
.....

this is code in Service

B4X:
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 PhoneId As PhoneId
  
End Sub
Sub Service_Create
     PE.InitializeWithPhoneState("PE",PhoneId)
End Sub

Sub Service_Start (StartingIntent As Intent)

End Sub

Sub PE_PackageRemoved (Package As String, Intent As Intent)
    Log("PackageRemoved: " & Package)
    Log(Intent.ExtrasToString)
    Main.verifica_rimosso = 1
End Sub

Sub Service_Destroy

End Sub
 
Upvote 0
Top