java - How to start a web action from an imagebutton -
i trying develop android app have problems. know little bit java i'm perfect xml part. made imagebutton , want browser open url when user clicks on button. please explain me how step step?
this button code taken main_activity.xml
<imagebutton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/donate" android:src="@drawable/donate" android:text="@string/about_link" android:autolink="all" android:layout_below="@+id/textview2" android:layout_centerhorizontal="true" />
please remember im not @ java copy , paste activitymain.java
use on imgebutton click listner
webview=(webview)findviewbyid(r.id.webview1); webview.loadurl("http://www.google.com");
Comments
Post a Comment