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 1064155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:53:19+00:00 2026-05-16T18:53:19+00:00

I use code from http://mobiforge.com/developing/story/sms-messaging-android as reference. I added scrollview and it show the

  • 0

I use code from http://mobiforge.com/developing/story/sms-messaging-android as reference.
I added scrollview and it show the append text upon sms send out.

however i have problem append incoming sms text in the same scrollview.
how can i solve it? do i need to use thread, service?

  • 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-16T18:53:21+00:00Added an answer on May 16, 2026 at 6:53 pm

    Use a Broadcast Receiver to Hook onto incomming SMS….Fire an Intent (with SMS Body as an Extra) to Trigger your Activity (your link will help with that)…in the onStart() or onNewIntent() you grab the Extra and update your UI…

    Another Method would be to use a ContentObserver for content://sms/ but that’s advised against unless your sure the Messaging App will intercept the SMS.

    Untested Code!

    Intent intent = new Intent(context,YourActivity.class); //context from onRecieve(context,intentData)
    intent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK); //required if ur app is not currently running.
    intent.putExtra("SMSBODY",smsbody); //get smsbody from the getMessageBody() (from your link)
    context.startActivity(intent);
    

    In your Activity…In onStart() or onNewIntent()

    Intent intent = getIntent();
    if(intent.getStringExtra("SMSBODY") != null)
    {
    String msg = intent.getStringExtra("SMSBODY");
    //append msg to scroll view
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use the hibernate dialect for SQLite from http://code.google.com/p/hibernate-sqlite/ in
I'm going to use the sample code from http://gettinggeneticsdone.blogspot.com/2009/11/split-apply-and-combine-in-r-using-plyr.html for this example. So, first,
I create a document class Main and use Adobe Sample code from http://help.adobe.com/en_US/as3/components/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f9f.html and
I'd like to use the code from http://jquery-ui.googlecode.com/svn/trunk/demos/tabs/vertical.html but how do I access the
I have repo the Android source code from http://source.android.com/ . And successfully made a
Got this code from here http://www.irunmywebsite.com/raphael/drawtool2.php . Runs great in IE when I tested
I downloaded a sample code from here: http://gallery.expression.microsoft.com/ShowHideWithFlip Now my problem is that i'm
I am using the code from http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable to insert a checkbox column in a
I've a got a code snippet below modified from http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart.aspx : public class WebPartBla
I am trying to learn a few things from http://code.google.com/p/iosched/source/checkout . I wanted to

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.