Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:49:07+00:00 2026-06-05T06:49:07+00:00

I want to develop an app which tracks the sent/received SMSs. I mean, when

  • 0

I want to develop an app which tracks the sent/received SMSs. I mean, when a user sends a message from its device, the message detail should be saved to a table provided by me. Similarly, when the device receives any SMS, then that also should be saved into a table provided by me.

Note that the user uses the default message application of Android to send message. I mean I am not integrating my application with the default message application. I just need to keep track of all messages sent from that application as Android keeps track of all sent messages in Sent Message folder of its Message app.

How would I do this? Please help me. I don’t need answers, but I need some clue to do it.

Please don’t suggest to read the messages from Inbox and Outbox etc. Because I want to save the messages when user sends/ receives it. Not after sends or receives it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:49:08+00:00Added an answer on June 5, 2026 at 6:49 am

    This is easy to do with a broadcast Receiver write in your Manifest:

    edit: seems only to work for SMS_RECEIVED see this thread

    <receiver android:name=".SMSReceiver"  android:enabled="true">
     <intent-filter android:priority="1000">
          <action android:name="android.provider.Telephony.SMS_RECEIVED"/>
          <action android:name="android.provider.Telephony.SMS_SENT"/>
     </intent-filter>
    </receiver>
    

    And the Permission:

    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    

    Then Create the Receiver llike:

    public class SMSReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
           if (intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")){
        //do something with the received sms        
           }else  if(intent.getAction().equals("android.provider.Telephony.SMS_SENT")){
                //do something with the sended sms
         }
      }
    }
    

    To handle a incoming sms might look like:

    Bundle extras = intent.getExtras();
    Object[] pdus = (Object[]) extras.get("pdus");
    for (Object pdu : pdus) {
            SmsMessage msg = SmsMessage.createFromPdu((byte[]) pdu);
            String origin = msg.getOriginatingAddress();
            String body = msg.getMessageBody();
    ....
    }
    

    If you want to prevent a sms to be pushed in the commen InBox, you can achieve this with:

    abortBroadcast();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to develop a python desktop app which interacts and posts its content
I want to develop an app which can send and receive data from a
I want to develop an app for WP7 using C# where a user taps
i am develop app in Blackberry which have photo functionality. i want to get
I want to develop an app which records the call-duration etc.. when a call
I am using Phonegap 1.3.0, and want to develop an app which uses local
I want to develop an Android app that will fetch geo-tagged tweets from Twitter
I want to develop an app which broadcast messages which can be viewed only
i want to develop a Rhomobile app which uses GPS tracker. so can any
If I want to develop php app in linux , which version of linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.