Tag Archives: Photo

How to Get Contact Image in Android.

By | November 12, 2012

This simple example gets the image from contacts in android. [java] private void getContactsDetails() { Cursor phones = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null); while (phones.moveToNext()) { String Name = phones .getString(phones .getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); String Number = phones .getString(phones .getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)); String image_uri = phones .getString(phones .getColumnIndex(ContactsContract.CommonDataKinds.Phone.PHOTO_URI)); System.out.println("Contact1 : " + Name + ", Number " + Number + ",… Read More »

Facebook May Acquire Opera

By | May 28, 2012

It is rumoured that facebook is employing ex- Apple iPhone and iPad Engineers to build their own smartphone. Now there is another rumour that facebook may acquire Opera. Facebook could be set to pursue a deal for web browser firm Opera, as the social network seeks to unlock new business opportunities. Flush with a $16bn (£10bn) war chest… Read More »

How to Open camera in ANDROID?

By | June 25, 2011

Hello everyone.. In today’s tutorial I will show you how to use camera in ANDROID in your program. In this tutorial we will be having a button which will open the camera and after taking the photo it will show it in an imageView. Note: This program will work only in the real device not in the emulator.… Read More »

Load html string into WebView in android

By | September 13, 2010

This sample code helps you to load html from a string and from a file into webview in ANDROID. [java] String str = Your HTML String; /* use src=’file:///android_asset/images/photo_3.jpg’ for loading images from the assets /images folder */ /* To load from a string use loadDataWithBaseURL */ webview.loadDataWithBaseURL("",str , "text/html", "utf-8", ""); /* To load from a file… Read More »