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. Better way to protect priced app?

Just did a little search on google with my paid app name, I found
these:

http://www.ipmart-forum.com/archive/index.php/t-337082.html
http://droidappz.co.cc/index.php/board,21.0.html

Someone bought the priced app from market with the "rooted" phone and
copy the apk file, then post on the websites for others to download.

Should Android team give a better way to protect the priced apps?

For example, encrypt the apk with the unique device hardware id for
each download request. And verify the key before execution. So the apk
can only be used on this phone.

There should be much better and complicated ways. but this is the
basic idea.

I have checked the BlackBerry app world, looks like they have
something different:

http://na.blackberry.com/eng/developers/appworld/faq.jsp


Maybe the single key mode is the thing I am talking about?


      

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

2. Instrumentation's sendKeyDowUpSync()

Hi
I am not able to get this to work, due to the fact that I am unable to
"use" the INJECT_EVENTS permission.  In my manifest, I have set use-
permissions for this permission and also set android:sharedUserId to
"android.uid.shared".  How do I get this to work?  Seems like if this
feature (simulating key events) is being made available in
Instrumentation, there must be an easy way to use it...
Rgds
-karthik

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

3. Expert Android Developer Required

4. Paid app support for countries outside US and UK

5. Restoring the active Activity while resuming the application

6. SSL session resumption - How to modify default behavior ?

7. rootfs question...