First, just show an image inside a toast: This method just displays a text toast: And this method displays a Toast that contains both an image and text:
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
It’s easy to send Messages using the SmsManager in android. Check some of the examples relating to working with SMS’s in android. 1. How to simulate an incoming call to an emulator OR Send an SMS to an emulator in ANDROID ? 2. Listening incoming sms message in Android. 3. How to get notified during an incoming call… Read More »
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.
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.