Android Question Pin Shortcut Intent

fbritop

Active Member
Licensed User
In reference to

I have set for example the intent value of "SCUT_TEST"
B4X:
        in.Initialize(in.ACTION_MAIN, "SCUT_TEST")
        in.SetComponent(Application.PackageName & "/.main") 'lower case
        builder.RunMethod("setIntent", Array(in))
        Dim info As JavaObject = builder.RunMethod("build", Null)

In the activty_resume sub, I have
B4X:
    Dim starting As Intent = Activity.GetStartingIntent
    Log("Action: "&starting.Action)
    Log("ExtrasToString: "&starting.ExtrasToString)
But when I check the logs after clicking on the shortcut, the resume only logs empty for the action, and "no extras" for the ExtrasToString. I´m I missing something in the creation of the shortcut with the intent?
 

fbritop

Active Member
Licensed User
Resolve it myself... if it helps anybody else

B4X:
        Dim in As Intent
        in.Initialize(in.ACTION_MAIN, "")
        in.SetComponent(Application.PackageName & "/.main") 'lower case
        in.PutExtra("QUICKOPEN", id)
 
Top