How to delete all messages from android inbox or sent folders, without loop How to get message ids Use following simple function to delete sms from default android application / database.
Tag Archives: android
Receive sms in own android application
To get notification of received sms we will use BroadcastReceiver. So create new class with any name like SmsReceiver and extend it with BroadcastReceiver. Code with description is given following.
How to programmatically save sms to inbox or sent folders in android
To save sms / message in inbox or sent folder on default android’s messaging application, use following simple function. This code will save text message in all Android versions including above or below versions from Kitkat.
Read SMS from the inbox or sent folder programmatically in Android
How to read SMS from the inbox or sent folder programmatically in Android: To read all messages for inbox or sent programmatically in Android use following function.
Write your own Background Service in Android
Service: is one of core component of Android. Service have not any user interface, like dialogboxe or buttons etc. Service runs in background. We use service for long process like fetch long (time consuming) data from network, play sound in background or some process where user interaction is not necessary.
Android DatePicker Dialog
Android DatePicker: In this session will learn to use DatePicker. Create new project in eclipse (Android-First-Programm). In res -> layout open “activity_main.xml” and use button.
Android TimePicker Dialog
Android TimePicker: In this session we will learn to use TimePicker. Create new project in eclipse (Android-First-Programm). In res -> layout open “activity_main.xml” and use button.
Android WebView
Android WebView:In this session will learn use of simple WebView.
Android Simple ListView
In this session will learn use of simple ListView. Simple ListView means we will use built in list row or layout.
Android Button
In this session will learn to create Button. Create new project in eclipse (Android-First-Programm). Click on res folder and then layout, now open required xml where you want to use button.