Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
in webview download link not work??!!!
masoud ke
Jan 21 2017 12:19 AM
241
Reply
hi.
can you help me?
i us webview in my android app. and i load web page in webview.web page continio download link.but i
Click
in link is not work.
Programs written in Visual Studio
2013 and xamarin.android.
C#
code webview :
w = FindViewById(Resource.Id.webView1);
w.Settings.LoadsImagesAutomatically = true;
w.Settings.JavaScriptEnabled = true;
w.SetWebViewClient(new mybrowser2());
w.LoadUrl("http://mypage");
// code for open page in webview
public class mybrowser2 : WebViewClient
{
public override bool ShouldOverrideUrlLoading(WebView view, string url)
{
view.LoadUrl(url);
return true;
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Xamarian or Cordova
Guides to create an online mobile store app