仅指向URL的Android应用 [英] Android app that just points to a URL

查看:61
本文介绍了仅指向URL的Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我建立一个专为android或droid设计和开发的网站,是否可以制作一个直接指向该URL的应用程序?还是不被认为是应用程序,因为它将在droid浏览器等中打开...

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...

推荐答案

您无法在Android中创建链接-您必须制作一个可自动打开浏览器并在打开时转到指定URL的应用.

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.

onCreate 中的类似内容:

Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.com"));
startActivity(browserIntent);

这篇关于仅指向URL的Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆