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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:24:39+00:00 2026-06-10T20:24:39+00:00

I am developing a SMS application. I am able to send and receive SMS.

  • 0

I am developing a SMS application. I am able to send and receive SMS.

I have a tab named “Inbox”. When clicking on it, I show all conversations using URI content://mms-sms/conversations/.

When clicking any conversation, I want to show all SMS conversations between that person and me.

I have fetched all messages of that person from URI content://sms/inbox,
and my messages to that person from URI content://sms/sent.

Now,how can I show these messages in a custom list view so that My messages have prefix “me” and the other person’s messages have prefix “< name/number >” and are arranged according to date and time?

  • 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-10T20:24:41+00:00Added an answer on June 10, 2026 at 8:24 pm

    I’m trying to do something similar. Did you solve it? I think I should do it manually!
    I think use the phone number as login (not all companies store the number on the phone) and then compare the message number with logged number.
    On layout you can have something like this:

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:weightSum="1.0" >
    
        <TextView
            android:id="@+id/txtMessageDate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginBottom="5dip"
            android:layout_marginLeft="10dip"
            android:layout_marginRight="10dip"
            android:layout_marginTop="10dip"
            android:maxWidth="250dip"/>
    
        <TextView
            android:id="@+id/txtMessageRight"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/righttext"
            android:layout_marginLeft="16dp"
            android:maxWidth="250dip" />
    
        <TextView
            android:id="@+id/txtMessageLeft"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_marginLeft="37dp"
            android:layout_toRightOf="@+id/lefttext"
            android:maxWidth="250dip"/>
    
    </RelativeLayout>
    

    Whit logged number you can known if the number if from your number or from the other side number, so in code you can inflate the layout and with an “if” you can write your name or the contact name.
    Something similar to this:

    if(o.getOriginatingAddress().equals(MainActivity.loggedNumber))                
        tvOutMessage.setText("me: " + o.getMessageBody());
    else
        tvInMessage.setText("contact:" + o.getMessageBody());
    

    I don’t known if this is the best solution, but hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a simple SMS Application in android,i am able to send and
I have been developing the application which can manage a device using SMS commands;
I have been developing the application which must catch all input sms. For it
I am currently developing application that does following: Read Inbox (using MAPI) & SMS
I am developing an Android based application in which I have to send SMS
I'm developing one sms application. In that once the SMS comes to inbox it
I'm developing an application via which one can send sms by directing it to
I am developing a simple application which has to send an SMS message from
I am developing an iPhone application that will send sms the logged in user
Im developing the java Email application with Timer, I have a two arraylists named

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.