Android Question Intent with Return

Discussion in 'Android Questions' started by MarcoRome, Jan 29, 2015.

  1. MarcoRome

    MarcoRome Expert Licensed User

    Hi All.
    After running this intent:
    Code:
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can monitor the PackageRemoved event with PhoneEvents library.
     
    thedesolatesoul likes this.
  3. MarcoRome

    MarcoRome Expert Licensed User

    Work n perfect mode :)
    Thank you Erel
     
  4. MarcoRome

    MarcoRome Expert Licensed User

    This is code in Main ...

    Code:
    Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("antispy2")
      
    StartService(start)
    .....
    this is code in Service

    Code:
    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 StringIntent As Intent)
        
    Log("PackageRemoved: " & Package)
        
    Log(Intent.ExtrasToString)
        Main.verifica_rimosso = 
    1
    End Sub

    Sub Service_Destroy

    End Sub
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice