On Tue, Sep 21, 2010 at 8:31 PM, Matt M <[email protected]> wrote: > 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 will not work for anyone using another SMS client, whether it's one that was replaced by the OEM or one installed as a third-party application. > Any ideas on how I can get this kind of information from an Android OS > activity (an sms message)? I sincerely hope it is impossible, as that would be a substantial privacy breach. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

