How shell a app?
i have a APP1 and other: APP2, i need shell APP1 from APP2 .
The next quesition was: pass user from app1 to app2 (and no login in app2, because the user are login in app1)
i try to punt:
B4X:
Sub cmdHerramientas_Click
Dim i As Intent
Try
' i.Initialize("","")
' Dim jo As JavaObject = i
' jo.RunMethod("setPackage", Array("netsistemas.fricaltecgases"))
i.Initialize(i.ACTION_VIEW ,"")
i.SetPackage("perico.app2")
i.SetType("*/*")
StartActivity(i)
Catch
Log(LastException)
Msgbox(LastException.Message,"")
End Try
End Sub
DISCLAIMER: This tutorial is written without testing code. There may be bugs, but try to understand the process, not copy the code. An intent is a way for different applications to communicate at run time. It can be used to pass messages between activities and make them do actions. Using...
Sub Activity_Create(FirstTime As Boolean)
Dim pm As B4XPagesManager
pm.Initialize(Activity)
Dim in As Intent
in = Activity.GetStartingIntent
If in <> Null Then
MsgboxAsync(in.HasExtra("GetSettings"),"")
End If
End Sub
but the app2 say blank (empty text)
Oh!,
Then, the user must open and insert againg user in app2.
My idea is get 2 apps, and lunch the second in other 'thread' and then, the user change between one an other..
App1 is B4Android, new app2 is B4X (or migrate all to App2... no... 2 apps and finish question).
Thansk all.
and the second question? pass param to app2 (for to learn how do this).