Get my Telephone number in ANDROID
Gets the phone number the app is running on. It needs a permission so add the line uses-permission android:name=”android.permission.READ_PHONE_STATE” to the manifest.xml
Gets the phone number the app is running on. It needs a permission so add the line uses-permission android:name=”android.permission.READ_PHONE_STATE” to the manifest.xml
This snippet starts an Application automatically after the android-os booted up. in AndroidManifest.xml (application-part):
Converting a bitmap to drawable is really easy in ANDORID. It has a class called BitmapDrawable which takes a bitmap as the parameter and convert it into a drawable object.
Playing a video file is simple in android. This post will help you. Put your video in res/raw folder. If no raw folder present then create a new folder inside res. The main. xml file. Please leave your comments if this post was useful.
The following code helps you to do a drag and drop in ANDROID.
By using the below code snippet you can uninstall an installed application on your ANDROID phone. Create an intent object with an action and data as the package name and start with the ACTION_DELETE.
This sample code helps you to load html from a string and from a file into webview in ANDROID.