Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this site has a important part that is uploading part and now when the application load this site and when I touch choose file button nothing happen.
is there any code can solve this problem?
Posted
Comments
Richard MacCutchan 16-Jul-15 4:01am    
Probably yes, but without details of the problem it is impossible to suggest any.
Member 11800577 16-Jul-15 4:29am    
look for exmaple I load this site in webview uploadboy.com
then I want to upload my file and I click/touck choose file button and then nothing would happend
Member 11800577 16-Jul-15 4:32am    
detail of problem in android -logCat
tag=choreographer
text=skipped 43 fames!the application may be doing too much in its main threat

1 solution

In order to add WebView to your application, you have to add <webview> element to your xml layout file. Its syntax is as follows −

<webview xmlns:android="http://schemas.android.com/apk/res/android">
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>

In order to use it, you have to get a reference of this view in Java file. To get a reference, create an object of the class WebView. Its syntax is −

WebView browser = (WebView) findViewById(R.id.webview);

In order to load a web url into the WebView, you need to call a method loadUrl(String url) of the WebView class, specifying the required url. Its syntax is:

browser.loadUrl("http://www.tutorialspoint.com");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900