How do I enable a URL on Android?

How do I enable a URL on Android?

30.Oct.2021

Do you have a webpage that you wish to share with others? Maybe it is an article, update on your profile or website, or maybe you want to make it easier for friends to contact you. Whatever the reason may be, if you are using Android there are several options available to allow users to access your webpage easy and quickly.

The easiest way is probably by adding the URL as a Contact app in your address book. Go to Contacts , select "My Profile" (or add if not present), then click on menu button (three lines) at top right corner, then Add . You will find "Web page" option under Advanced menu. This will take user directly into web browser when selected and open set URL automatically.

Another option is to add a bookmark in the browser. Go to Browser and select menu (three dots) at top right corner, then option Bookmark . This will create a shortcut from your address book. Pressing it will open your webpage.

The last option that I know of if by using Android's Intents system. Intents let other apps or services take actions on data you choose or share with them. In our case we want to share a URL with another application so it can open it in browser for user viewing pleasure. Fortunately Android has Intent system built-in and many apps already support this system which makes sharing even easier . To use Intent , go to Browser and select menu (three dots) at right corner, then option Share . This will open sub menu where you can select your sharing method. Enter the desired text that you want to use, then click on action button at bottom right corner of screen or press Menu button (three lines) at top right corner. After a few seconds list of actions available will appear and typically one of them is "Intent". Select it, then choose "Web page" from drop down box under Action . Press OK . This will create Intent with URL attached to it. Now we need to share this intent with other applications so they can access it and open web page for user viewing pleasure. In our case we are going to use eMail app as an example as already have Gmail account attached which makes sending mail easy , but good news is that Android supports many different apps.

Go to Browser and select menu (three dots) at right corner, then option Share once again. This will open sub menu where you can select your sharing method. Enter desired text that you want to attach with link, then click on action button at bottom right corner of screen or press Menu button (three lines) at top right corner. Another list of options will appear, but this time choose eMail . Select Gmail account if it hasn't been selected automatically already, then enter destination address, subject and message body for email we are going to send. Now we need to make sure Intent created in previous step is attached to out email so kernel can pass Intent information along with other required data like attachments and message. To do this, once again select menu (three dots) at top right corner and then option Share . This will open sub menu where you can select your sharing method. Scroll down a bit and under "Extra" section find Intent intentName we created earlier and attach it to email as desired data field. Add desired text if needed to be used as email body as well , then send the message as usual.

To test if everything is working correctly I have prepared simple example using Omega browser . In first scenario web page has been added as contact in address book so clicking on contact entry will automatically open webpage in browser for user viewing pleasure. In second case bookmark for website URL was saved into browser bookmarks, so pressing bookmark will direct user to webpage. Intent example shows how to use Android's Intent system to open web page using eMail app which in this case was Gmail .

We are social