I start some activities with an intent to parse extra variables to sub activity_create. This works perfect. Intents are 'bounded' to the activity, so even when the activity is re-created, the intent is still available.
Now I want to execute an extra sub afterwards.
I tried to use
java.lang.RuntimeException: java.lang.ClassCastException: android.content.Intent cannot be cast to java.lang.String
It doens't seem to work. Should this be possible?
B4X:
Dim Intent1 As Intent
Intent1.Initialize("","")
Intent1.SetComponent("com.mydomain.myapp/.myactivity")
Intent1.PutExtra("id", id)
StartActivity(Intent1)
Now I want to execute an extra sub afterwards.
I tried to use
B4X:
Callsubdelayed2(Intent1,"name_of_sub","showmodel")
It doens't seem to work. Should this be possible?