Get all the available network connections One important thing is that don’t forget to add the following lines in the manifest file
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.
Call this function to restart your application Note : PLease add this to your app.XML file inorder for the above code to work.
This sample code helps you to load html from a string and from a file into webview in ANDROID.