thanks Mark, i have another question
my main.xml : <LinearLayout> <WebView android:id="@+id/mywebview" <Button> . . and my code : webView1 = (WebView) findViewById(R.id.mywebview); there is an error message : R.id can't be solved i dont know why, since i already "import android.view.View" and in the html i should write <script type="text/javascript" src="my.js"> or <script type="text/javascript" src="file:///android_asset/my.js"> ? > According to the WebView documentation: > > The Android SDK provides a custom scheme to load assets from the > application's .apk file in WebView. The prefix "file:///android_asset/" > will cause WebView to load content from the current application's assets > folder. For example, a myimage.gif file in the /assets folder can be used > in the html image tag as: > > <img src="file:///android_asset/myimage.gif"> > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---