Hi guys ,
How can I create new instance of an activity ? I want to create new activity of act2 and again when I clicked the activity again new instance of this activity create.
its my code but it not works
I also put this line of code in manifest :
How can I create new instance of an activity ? I want to create new activity of act2 and again when I clicked the activity again new instance of this activity create.
its my code but it not works
B4X:
Sub Activity_Click
Dim Intent1 As Intent
Intent1.Initialize("", "")
Intent1.SetComponent(Application.PackageName & "/.act2")
Intent1.PutExtra("key", Rnd(1,1000000))
StartActivity(Intent1)
End Sub
I also put this line of code in manifest :
B4X:
SetActivityAttribute(act2, android:launchMode, "standard")
Attachments
Last edited: