Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Making a Button clinked to a web site(New to Eclipse Help )
icon2.gif  Making a Button clinked to a web site [message #653362] Wed, 09 February 2011 14:25 Go to next message
Bigmos  is currently offline Bigmos Friend
Messages: 2
Registered: February 2011
Junior Member
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>
Re: Making a Button clinked to a web site [message #653387 is a reply to message #653362] Wed, 09 February 2011 15:39 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

This isn't an Android programming support forum. It's only for
installing, running and using Eclipse. For Android-specific questions,
please consider one of the forums listed at the link below.

http://www.javahotchocolate.com/tutorials/android.html#suppo rt


On 09-Feb-11 07: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>
Re: Making a Button clinked to a web site [message #653504 is a reply to message #653362] Thu, 10 February 2011 01:55 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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
Previous Topic:when and how code assist scans classpath etc?
Next Topic:Helios configuration problem
Goto Forum:
  


Current Time: Thu Apr 25 10:07:40 GMT 2024

Powered by FUDForum. Page generated in 0.07418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top