Tuesday, September 21, 2010

[android-developers] Getting Thread ID/Phone# of an Open SMS Message?

Hello,

I am using RunningTaskInfo.topActivity.getClassName() to determine the
class name of the activity being viewed by the user. If the top
activity is an sms message (the user is texting) then I want to
determine either the thread id of the open message or the contact name/
number, either will work! I am able to determine if a message is open
by comparing the class name..

RunningTaskInfo.topActivity.getClassName().equals("com.android.mms.ui.ComposeMessageActivity")

..which returns true/false. When it is true I need to get the above
information from this "compose message".

Any ideas on how I can get this kind of information from an Android OS
activity (an sms message)?

Thank you!

Matt.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment