Android Question how can I switch & display between two open app.

Alex Steinmetz

Member
Licensed User
I have 2 app. running, a browser and b4a app.
I would like to display the b4a app. and let user copy the ID code and then
switch & display the browser and let user paste the Id code.
and again switch to b4a app. and copy the password and switch to the browser
and paste the password.
how to do the switching ???
 

DonManfred

Expert
Licensed User
Longtime User
how to do the switching ???
You can use PhoneIntents to open the browser and navigate to a url.

B4X:
Dim p As PhoneIntents
    StartActivity(p.OpenBrowser("http://www.b4x.com"))

I don´t know a way to programatically switch back.
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
I'd recommend a completely different user interface solution. Take a look at how KeePassDroid solve it, it's identical to your needs and very quick and simple for the user. (And probably a lot simpler for you to implement also, perhaps using the brand new Clipboard Class from @hatzisn.)
 
Last edited:
Upvote 0

Alex Steinmetz

Member
Licensed User
Hi. Sandman
Thanks to your help, I was able to finish my first Application.
I would like to send you the apk file, please let me have your Email.
 

Attachments

  • en4mypass2.txt
    2.9 KB · Views: 185
Upvote 0
Top