Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android app that just points to a URL

Tags:

android

If I build a website that is designed and developed for android or just the droid, is it possible to just make an app that will directly point to that url? or is that not considered an app because it will open in the droid browser etc...

like image 653
iwek Avatar asked Jan 25 '11 14:01

iwek


People also ask

How do you get a URL to hit an Android app?

Open your mobile phone network setting and set the http proxy and then you can grab request from you android app. Charles download url https://www.charlesproxy.com/。 Open WIFI wireless hotspot on your computer then connect to the hotspot。 Now you can use wireshark or httpScoop to grab request from you android app.

What is an URL app?

An app: URL is a [ URL ] that can be used by a packaged application to address resources within its container (e.g., a . zip file).

What is deep linking in Android?

In Android, a deep link is a link that takes you directly to a specific destination within an app. The Navigation component lets you create two different types of deep links: explicit and implicit.


2 Answers

You can't create a link in Android - you'd have to make an app that automatically opens the browser up and goes to the specified URL when opened.

Something like this in the onCreate:

Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.com"));
startActivity(browserIntent);
like image 121
xil3 Avatar answered Nov 06 '22 23:11

xil3


It's considered an app because the result will be an independent APK (which you can distribute in the Market). You don't have to launch the droid browser; rather, you use WebView to embed the site on your app.

like image 26
Cristian Avatar answered Nov 07 '22 00:11

Cristian