mWebView.loadDataWithBaseURL(null, "தமிழில் கணினி", "text/html", "utf-8", null);
OR
WebSettings settings = mWebView.getSettings();
settings.setDefaultTextEncodingName("utf-8");
Wednesday, July 9, 2014
Tuesday, July 8, 2014
Load Image from URL
Use the following code to display the picture in ImageView,
URL url = new URL("http://www.vijaynetwork.com/vijay_top_logo.jpg");
Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
imageView.setImageBitmap(bmp);
URL url = new URL("http://www.vijaynetwork.com/vijay_top_logo.jpg");
Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
imageView.setImageBitmap(bmp);
Subscribe to:
Posts (Atom)