If I don't want to launch the browser, do I need to create a view in the
Manifest?

Thanks for you help,
Kevin
On Tue, 2009-01-13 at 13:08 -0800, James Yum wrote:
> Hi,
> 
> You can use a WebView within your app ass Pratap suggested.
> 
> If you want to launch the browser application, it's fairly simple:
> 
> startActivity(new Intent(Intent.ACTION_VIEW,
>     Uri.parse("http://www.google.com";)));
> 
> One thing to keep in mind, the browser application will create a
> separate new window each time. Please refer to this thread for more
> details:
> 
> http://groups.google.com/group/android-developers/browse_thread/thread/f334b7178bcc02d8?hl=en&ie=UTF-8&q=ACTION_VIEW+android+browser#9498067596fc7f78
> 
> Cheers!
> James
> 
> 
> 
> On Tue, Jan 13, 2009 at 4:34 AM, PRATAP SOLAPUR
> <[email protected]> wrote:
> >
> > import
> >
> > android.app.Activity;
> >
> > import
> >
> > android.os.Bundle;
> >
> > import
> >
> > android.webkit.WebView;
> >
> > public
> >
> > class BrowserDemo1 extends Activity {
> >
> > WebView
> >
> > browser;
> >
> > @Override
> >
> > public void onCreate(Bundle icicle) {
> >
> > super.onCreate(icicle);
> >
> > setContentView(R.layout.
> >
> > main);
> >
> > //browser.getSettings().setJavaScriptEnabled(true);
> >
> > browser=(WebView)findViewById(R.id.webkit);
> >
> > browser.loadUrl("http://www.google.com";);
> >
> > }
> >
> > }
> >
> > On 1/13/09, Bear34238 <[email protected]> wrote:
> >>
> >> I know this is something simple but it has eluded me.  Could someone
> >> provide a code example of launching the web browser inside an adroid
> >> Application. >>
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to