Viewing SMS Message Details with Messaging/SMS Intent

by beachboy » Wed, 29 Apr 2009 15:04:24 GMT


Sponsored Links
 I have a message that my app has retrieved from the SMS content
provider and I would like to invoke the Messaging/SMS App to View the
message. When I use the code below it appears that the UI panel that
is displayed is combination of the UI panel of view and compose
message from the Messaging/SMS App. The body of the message is stored
in the compose edit box next to the send button. When you click on a
message from the Messaging/SMS app the message and its details are
displayed above the compose edit box indicating that we are not
composing a new message. Can anyone tell what I am doing wrong in the
code below?

  Uri uri = Uri.parse("sms: ");
           Intent intent = new Intent(Intent.ACTION_VIEW,uri);
           intent.putExtra("compose_mode", false);
           intent.putExtra("message_id", id);
           intent.putExtra("address", "1234567890");
           intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
           mContext.startActivity(intent);


Thanks,

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. singletask activity for games

I am completely confused with this. I am writing a game and there
should only be on instance of this game.

So far I have:
Splash screen activity
Menu activity
Game activity

The Game activity is the default activity and it will fire off an
intent with result to start the splash screen activity on the
onCreate.

The splash screen activity loads all the bitmaps required for the
game, once it is finished it will return the result to the game
activity which then knows all the bitmaps are finished.

The Game activity then will fire off an intent to show the Menu
acitivty.

Now since I only ever want one instance of my game. Should I make the
Splash screen, Menu and Game activity all singleTask?

If my Game activity is singleTask and I start a Menu activity that is
singleTask, is the Menu on a seperate task to the Game activity? How
can i make them all in one task?

I guess in my case whenever the Game activity gets an oncreate I can
safely assume I have to start from scratch i.e display splash screen
etc as I cannot assume the bitmaps are in memory.



--~--~---------~--~----~------------~-------~--~----~

2. How to log test results in a file? - logcat error

Try piping the output to a file: "adb logcat > <fileName>"

But I'm curious why you need to do this rather than just using Eclipse
with the Android plugins to run your tests and obtain the test
results.

Brett.










--~--~---------~--~----~------------~-------~--~----~

3. Sending calendar events via MMS

4. AudioRecord cannot capture audio on beagle board?

5. Access to opencore audio decoders from application layer.

6. Why does DDMS sometimes only show one line of logs?

7. Question to write a LiveFolders for ContentProvider with a permission