0

I am creating a SMS application in Android, As i am very new to android can any one tell me which control to use to display the messages (ListView or TableView or any other).

The requirement is that the used control must be able to refresh itself when a new message comes.

joao2fast4u
  • 6,868
  • 5
  • 28
  • 42

1 Answers1

0

I would use ListView, most SMS apps use ListView take a look at open source app here

Lubos Mudrak
  • 651
  • 1
  • 8
  • 26
  • is it possible to refresh the list view when a new message comes without distracting the user? – Praveen Kumar Shetty Apr 07 '14 at 12:19
  • You should take a look here http://stackoverflow.com/a/14097569/2135888 this should show you how to implement your listview to display sms messages using content providers and http://stackoverflow.com/questions/7089313/android-listen-for-incoming-sms-messages here you can listen for a new sms if you need this, but I would not bother with this. I belive I have never been in sms app while I received another. – Lubos Mudrak Apr 07 '14 at 12:25
  • My application is not just a simple SMS application, I am using Steganography technique to embed the message into an image and i use a server to exchange messages. I just need to learn to update List view(If I use as you suggested) when a new message is found in server. Thanks a lot for your help and time. I will go through the posts which you suggested. – Praveen Kumar Shetty Apr 07 '14 at 12:38