anderson wrote: > 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"
R.id is referring to the R.java class that should be built for you automatically by the Android SDK build tools. Do you have an R.java class in your project, in the same Java package as the class where you're referring to R.id? If the class does not exist anywhere, there may be a problem in how you are compiling the code. If the class exists but is in a different package, and that is not what you intended, determine which is incorrect (the R.java location or the location of your source code) and adjust your file locations and AndroidManifest.xml and build.xml/your Eclipse project to match. If the class exists and is in the same package, but the compiler isn't finding it...I'm not sure what would cause that. > in the html i should write > <script type="text/javascript" src="my.js"> > > or > > <script type="text/javascript" src="file:///android_asset/my.js"> I have no idea -- I haven't tried this with WebView. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, & ebook formats, just $35/year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---