+ Reply to Thread
Results 1 to 9 of 9

Thread: How open a new screen to display a web page

  1. #1
    Join Date
    Dec 2007
    Posts
    4

    Default How open a new screen to display a web page


    If you want to open a new screen to display the web page you can use:

    Intent myIntent = new Intent(Intent.VIEW_ACTION,
    ContentURI.create("http://androidcommunity.com"));
    startActivity(myIntent);

    But, of course, replace "http://androidcommunity.com" with the URL you want to open.

    Luisa

  2. #2
    Join Date
    Dec 2007
    Posts
    4

    Default

    import android.content.Intent;
    import android.net.ContentURI;

  3. #3
    Join Date
    Nov 2007
    Location
    San Diego, CA
    Posts
    18

    Default

    cool thanks for the tip

  4. #4
    Join Date
    Mar 2008
    Posts
    1

    Default changes in m5 sdk

    instead of android.net.contentUri......use android.net.uri....

  5. #5
    Join Date
    May 2009
    Posts
    1

    Default Re: How open a new screen to display a web page

    Hi,
    I am new to android dev. I try it but Eclipse how the following error..
    1- ConentURI cannot be resolved
    2 - Intend.view_action cannot be resolved.

    any idea?

    Thanks

  6. #6

    Default Re: How open a new screen to display a web page

    Hey all, first post! Whoopdy-do, right?

    Anyways, do you all have any idea how to simply have an program icon which launches a website? I understand that it's only a shortcut in functionality, but I'm new to Android and would LOVE for you guys to give me a hand in getting started.

    ~Thanks

    Brandon

  7. #7
    Join Date
    Mar 2010
    Location
    sacramento, ca
    Posts
    488

    Default

    Quote Originally Posted by brandonjclark View Post
    Hey all, first post! Whoopdy-do, right?

    Anyways, do you all have any idea how to simply have an program icon which launches a website? I understand that it's only a shortcut in functionality, but I'm new to Android and would LOVE for you guys to give me a hand in getting started.

    ~Thanks

    Brandon
    In your browser, book mark whatever websites you want. Then from your home screen add shortcut and pick book mark and select the one you want welcome to AC, Brandon and enjoy your stay

    sent from my droid using Tapatalk
    CM 6.0 rc3 droid

  8. #8
    Join Date
    Sep 2010
    Posts
    5

    Default Re: How open a new screen to display a web page

    Hi! Thanks for the info...I was looking for something like this :P

  9. #9
    Join Date
    Sep 2010
    Posts
    3

    Thumbs up Re: How open a new screen to display a web page


    Thanks for the valuable tip. I just tried this on my Droid and it worked.

    To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts