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

  • SEARCH
  • Home
  • 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 7048185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:51:40+00:00 2026-05-28T02:51:40+00:00

when a text message is sent form, lets say an application ‘myApp’ it’ll open

  • 0

when a text message is sent form, lets say an application ‘myApp’ it’ll open in default text message app of the receiver. but i want to control how it looks to receiver(like changing colour). Is there anyway to send text and read that text in native app, ‘myApp’? Or identify it was sent from ‘myApp’ and import message to ‘myApp’.

  • 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-05-28T02:51:41+00:00Added an answer on May 28, 2026 at 2:51 am

    sure you can to receive messages make a broadcast receiver for ingoing messages an each time a message arrive start your activity that displays the message …

    public class SMSApp extends IntentReceiver {
        private static final String LOG_TAG = "SMSApp";
    
        /* package */ static final String ACTION =
                "android.provider.Telephony.SMS_RECEIVED";
    
        public void onReceiveIntent(Context context, Intent intent) {
            if (intent.getAction().equals(ACTION)) {
                StringBuilder buf = new StringBuilder();
                Bundle bundle = intent.getExtras();
                if (bundle != null) {
                    SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent);
                    for (int i = 0; i < messages.length; i++) {
                        SmsMessage message = messages[i];
                        buf.append("Received SMS from  ");
                        buf.append(message.getDisplayOriginatingAddress());
                        buf.append(" - ");
                        buf.append(message.getDisplayMessageBody());
                    }
                }
               //start you messages activity 
    
            Intent i = new Intent();
            i.setClassName("com.test", "com.test.myMessagesAcivity");
            i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    
            //prepare message text to be sent to the activity via bundle 
            Bundle bundle = new Bundle();
            bundle.putString("message", but.toString());
            i.putExtras(bundle);
            context.startActivity(i);
    
    
            }
        }
    
    
    }
    

    and in your manifest file add these permissions

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

    and this receiver

    <receiver class="SMSApp">
    
                <intent-filter>
    
                    <action android:value="android.provider.Telephony.SMS_RECEIVED" />
    
                </intent-filter>
    
            </receiver>
    

    and to send SMS from your app

    use this method

    public void eb3atSMS(String phoneNumber, String message)
        {        
    
            PendingIntent pi = PendingIntent.getActivity(this, 0,
                new Intent(this, **DummyClasshere.class**), 0);                
            SmsManager sms = SmsManager.getDefault();
            sms.sendTextMessage(phoneNumber, null, message, pi, null);        
        }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The email still gets sent and delivered, but still no flash message. form: <%=
Sometimes in an application, one might compare the Message text of an exception. For
I'm seeing a System.Diagnostics.Process.HasExited method throw an InvalidOperationException , but the message text property
in my app i need to be able to send a text message in
Ive got a contact form that isnt sending but is outputting that the message
how to send rich text message in system.net.mail need code for send a mail
I'm setting up my site to receive info from people via text message. The
I am having difficulty determining if the body of a text email message is
I'm submitting to a rails webservice the following message: xmlPostData = <message> <message-text> +
I need to display a variable-length message and allow the text to be selectable.

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.