最简单的启动网页,在与Android的图标方式在与、最简单、图标、方式

2023-09-05 07:59:15 作者:小二°来碗泪流满面

我们有一个网站,提供电子邮件服务。我们愿为此创造一个完全成熟的应用程序,但不能承受这个现在。在平均时间将是巨大的,如果我们能够给用户一个图标上自己的手机,将他们带到格式化为移动互联网上的页面。因此,我想知道的是,我们怎样才能在Android手机用户的图标,将只需启动一个浏览器的网络链接这是否必须是一个应用程序,有没有更简单的方法,还是我过估算这将是多么复杂,是使这是一个应用程序呢?

We have a website that offers an e-mail service. We would like to create a fully fledged app for this but cannot afford this right now. In the mean time it would be great if we could give users an icon on their phones that will take them to a page formatted for mobile on the internet. So what I'd like to know is how can we get an icon on an android users phone that will simply launch a web link in a browser- does this have to be an app, is there an easier way, or am I over estimating how complicated it would be to make this as an app anyway?

在此先感谢

推荐答案

创建一个新的Andr​​oid项目(以下在 HTTP提供的SDK安装步骤后:/ /developer.android.com )

Create a new Android project (after following the SDK installation steps provided at http://developer.android.com)

上的目录/ RES / drawable- * DPI你有laucher图标。修改所有的人。

on the directory /res/drawable-*dpi you have the laucher icons. Modify all of them.

在主要活动,在onCreate方法删除里面的所有的认沽这样的:

In the main activity, delete all inside the onCreate method an put this:

String url = "http://www.YOUR-URL.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);

这将打开Android浏览器所提供的URL。

This will open the android browser with the URL provided.