Android Question b4a - how to make sure Google chrome is there?

IamTrying

Active Member
Licensed User
How can i tell, only use WebRTC compatible browser, if do not exist i want to inform install first and then continue?
(when Google chrome is not installed in my Samsung its using some ugly Samsung browser which do not have WebRTC)

bs9vy7Y.png

B4X:
Intent1 = pm.GetApplicationIntent("???what is WebRTC compatible browser ID's???");
if Intent1.IsInitialized Then
Else 
End if
 

IamTrying

Active Member
Licensed User
OK

Second problem. When there is Google chrome installed.
And i execute a site on that browser from B4A app.

How do i hide the ADDRESS BAR in browser , so that the URL is not shown?
(so that it looks like full screen kiosk mode like B4A apps?)
 
Upvote 0

IamTrying

Active Member
Licensed User
Third problem.

- When B4A app open an URL
- Android ask user which browser you want to use to open it?
- User choose ugly (no WebRTC) browser. And my application fails

How to tell B4A only use WebRTC browser? (no user choice, my expected end users are dumb)
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
If you want Chrome to open the site, then after checking for it, open the website using Chrome, you can do that by setting the component, no choice will be shown to the user.

Like I mentioned before, search for the code examples.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Third problem.

- When B4A app open an URL
- Android ask user which browser you want to use to open it?
- User choose ugly (no WebRTC) browser. And my application fails

How to tell B4A only use WebRTC browser? (no user choice, my expected end users are dumb)


B4X:
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, "http://google.com")
    i.SetComponent("com.android.chrome")
    StartActivity(I)
 
Upvote 0

IamTrying

Active Member
Licensed User
That helps:

B4X:
Dim i AsIntent
i.Initialize(i.ACTION_VIEW, "https://www.bank-government.com/very-private-very-very-very-private-cant-show-the-url")
i.SetComponent("com.android.chrome")
StartActivity(I)

the only issue right now i have is that when my app is opening the URL, its visible to the end user (which suppose to be hidden).
 
Upvote 0
Top