Instead of a text view, why don't you use a button?
http://code.google.com/android/reference/android/widget/Button.html

If a user clicks on the button, you could forward her to the browser
using

Intent i = new Intent(Intent.ACTION_VIEW);
Uri u = Uri.parse("http://www.openintents.org";);
i.setData(u);
startActivity(i);

I found this information here ;-)
http://www.openintents.org/en/node/118

Peli
www.openintents.org


On Oct 11, 6:08 pm, Techfixer <[EMAIL PROTECTED]> wrote:
> I would like to make an online application that android can access via
> an internet shortcut.
>
> I managed to get this far with the "hello, android" program, and it is
> working on the emulator.
>
> now I would like to be able to click on the textview "Hello, Android"
> and open a web browser leading to my website. There, I may be able to
> write the rest of the program, so it may be easier for me and use less
> memory on Andoid.
>
> Please help me amend the following code so that the Textview is
> clickable and leads to my site :)
>
> package com.android.hello;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloAndroid extends Activity {
>    /** Called when the activity is first created. */
>   [EMAIL PROTECTED]
>    public void onCreate(Bundle savedInstanceState) {
>        super.onCreate(savedInstanceState);
>        TextView tv = new TextView(this);
>        tv.setText("Hello, Android");
>        setContentView(tv);
>
>    }
>
> }
>
> my idea is that people can register a quick profile on my website,
> and then that would put them as a marker on google map.
> the marker would show what skills this user is willing to contribute
> to the community for free.
>
> e.g. I would show up on google map as :
>
> "bt56 8pj"
> "level 1"
> "Techfixer - computer guy"
> "I am willing to do free computer reformats"
>
> or
>
> "bt55 7ry"
> "level 70"
> "Toby - Auto Mechanic"
> "I can do oil changes for free! "
>
> then android users can locate these community members and benefit from
> their free services.
> each successful completed free-service transaction would "level-up"
> the free service provider by giving them Experience Points.
>
> I am think of calling this application "Epic Persons".
>
> Any help would be much appreciated. Please feel free to use my idea
> because I would rather see this idea working asap.
>
> Techfixer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to