How to make a web browser like app?

Inman

Well-Known Member
Licensed User
Longtime User
By "web browser like", I am not talking about using WebView to display web pages within the app. I am actually interested in how to do the following:

  1. When the user clicks on a link in any Android app (Twitter, Facebook etc...), a popup window shows up asking the user to select the default web browser. The list will contain the standard Android web browser and any alternative browsers you have installed (Opera Mini, Dolphin HD etc..) How can we add our app to this list?
  2. Now the user selects our app from the list. It is assumed that the link the user clicked, is now passed on to this app. How to receive this link within the activity so that we can display it within the app using a WebView?
On VB6 we had command() to receive command line parameters passed on to the application from Windows. I was wondering how to implement this in Android. I believe most of this is accomplished by adding some intent filters to AndroidManifest.xml. But still I am confused as to how the passing of data takes place.

Please help.
 

Inman

Well-Known Member
Licensed User
Longtime User
Hey Erel, I see that you have a demo out for the widget app that is compiled with the upcoming B4A, which means a new release is around the corner. I hope you haven't forgotten about the "data fetching from intercepted intent" feature discussed in this thread.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Any example of this intent filter for default web-browser ?

UPD:
AddActivityText(%Main%,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"/>
</intent-filter>
)
 
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Yes, i just meant that activity name can be variable. But agreed, that it's bad for copy & paste.
 
Upvote 0

bparent

Member
Licensed User
Longtime User
Data fetching from intercepted intent

The required feature will be available in this update ---Hey Erel, I see that you have a demo out for the widget app that is compiled with the upcoming B4A, which means a new release is around the corner. I hope you haven't forgotten about the "data fetching from intercepted intent" feature discussed in this thread.

Erel, Is data fetching from intercepted intent possible in V2.02? If so, how is this done. Thanks for such a great product!

Bernie
 
Upvote 0
Top