|
|
| Re: Making a Button clinked to a web site [message #653504 is a reply to message #653362] |
Wed, 09 February 2011 20:55  |
Eclipse User |
|
|
|
On 2011.02.09 7:25, Bigmos wrote:
> This is my main xml
>
> I have a YES button that when clicked I want it to go to a specific
> web-site how do I make it do that?
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> >
> <TextView android:layout_width="fill_parent"
> android:layout_height="wrap_content" android:text="Live with Pastor Bob "/>
> <Button android:text="Yes" android:layout_height="wrap_content"
> android:layout_width="wrap_content" android:id="@+id/Yes"></Button>
> </LinearLayout>
I'll answer this anyway; it's quite simple. See
http://www.javahotchocolate.com/tutorials/android.html#launc h-browser
|
|
|
Powered by
FUDForum. Page generated in 0.09502 seconds