Android Question Help please getting started; simple app

Scotter

Active Member
Licensed User
Hi all -

I'm a complete newb to B4A. I do have VB experience but not a pro.
The first app I want to build is this simple:
User clicks app icon. First (and only) thing app does is open user's default browser and send them to a URL. That's it. I wonder if someone can either:
(a) give me some tips on how to build this thing; or
(b) send me the code so I can analyze it, tweak it, and learn by observing.

Either way,
Much gratitude!
Scott
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Dim p As PhoneIntents
StartActivity(p.OpenBrowser("http://www.b4x.com"))
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
First (and only) thing app does is open user's default browser and send them to a URL. That's it.
then i gues you want to quit your app afer starting the browser.

Use
B4X:
Dim p As PhoneIntents
StartActivity(p.OpenBrowser("http://www.b4x.com"))
Activity.finish
in this case...
 
Upvote 0

Scotter

Active Member
Licensed User
Apology for my ignorance. Hoping this next question is even easier for you. I'm sooo new to this IDE that I'm unsure where to put the code you so generously gave me.
See attached screenshot showing completely new project.
Oh and Notice the "Libraries manager" on the right? Are there certain libraries I should check in order to do the "opening app opens a URL"? Like the "HTTP" library?
Thank you!
 

Attachments

  • question-simple-http-app.jpg
    question-simple-http-app.jpg
    225.7 KB · Views: 201
Upvote 0

An Schi

Well-Known Member
Licensed User
Take a look at the beginners guide. There are three easy app tutorials which get you started.

For this project you could also use a webviewer and see that weppage within your app.

Enjoy :)
 
Upvote 0
Top