Hi Everyone,
Thanks for support.
I am able to solve my problem here is the code
WebView browser;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.aboutus);
browser=(WebView)findViewById(R.id.webkit);
browser.loadUrl("file:///android_asset/about.html");
On Tue, Nov 2, 2010 at 9:59 AM, Mark Murphy <[email protected]> wrote:
> On Tue, Nov 2, 2010 at 10:28 AM, Amit Mangal
> <[email protected]> wrote:
> > I want to load local html page on web view
> > is this possible on android or not ?
>
> Yes. Use the WebView widget. Use loadUrl() (and a file:/// URL) or
> loadData() to give it the HTML.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 2.2 Programming Books: http://commonsware.com/books
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
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