android - cannot be resolved or is not a field WebView object -


does know what's problem here?

webview wv = (webview) findviewbyid(r.id.webview1); 

gives me webview1 cannot resolved or not field, don't know why. here's xml:

<webview         android:id="@+id/webview1"         android:layout_width="match_parent"         android:layout_height="match_parent" />  </linearlayout>  

i want simple line of code executed:

wv.loadurl("http://www.cinicraft.com/pick.html"); 

do have automatic build can check? also, try cleaning project, fixes these kinds of errors me.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -