Problem invoking View Intent for Messaging App

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


Sponsored Links
 I am trying to view a message using the Messaging application on the
emulator. I created a message using Telnet and can see the message in
the Messaging App. I tried to invoke the view intent using the
following code. When this code runs the Messaging App starts but
displays the UI panel with the data as if I was a composing a message
rather than viewing the message.

  Uri uri = Uri.parse("sms:1234567890");
  Intent intent = new Intent(Intent.ACTION_VIEW,uri);
  intent.putExtra("sms_body", "testsmsmessage");
  intent.putExtra("compose_mode", false);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  Context.startActivity(intent);

What am i doing wrong?


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



Other Threads

1. vertical scrollbar comes cross other items in the layout

Hi,

In my flipper panel, there are many row view in it to display the text
data.
Between the rows, I have a gradient shape as separator.

My problem is the vertical scrollbar at the right hand side of the
panel comes cross with the gradient separator.

I tried both vertical scrollbar types of

   SCROLLBARS_OUTSIDE_INSET,
  SCROLLBARS_OUTSIDE_OVERLAY

for the flipper panel, but the vertical scrollbar always come cross
the separator.

I even tried to add an extra empty text field to the right of the
gradient separator, and set the right padding, but it did not help.

Does anybody know how to solve this issue ?

Thanks a lot.

dave

-- 

2. How to check if vertical scroll bar is shown ?

Hi all,

I want to check if the vertical scrollbar is shown or not. I read the
document and could not figure it out.

Is there anyway to do it ?

Thank you very much.

Dave

-- 

3. AAPT Fatal Crash - library project enum attributes

4. Thanks google, I'm officially giving up my phobia of needles

5. Oracle sues Google over Java patents

6. Calender Entry Listener

7. page up and page down of TextView inside of ScrollView