[android-developers] Re: Quick Contacts popup
Jeff - is there any way to add our app to the QuickContact app list, so we show up when the user taps the badge ? I'm guessing this will come down to an intent filter, but I can't work out what it ought to be. Thanks, Richard On Oct 30, 6:02 pm, Jeff Sharkey wrote: > The easiest way is using the new QuickContactBadge widget. You can > add it to your layout, and there are helper methods to bind it using > phone, email, or a normal Uri. > > http://d.android.com/reference/android/widget/QuickContactBadge.html > > This control will automatically give you the frame around the photo, > and launch the track when clicked. If you're looking to launch the > Quick Contacts popup manually yourself, you can use the API directly: > > http://d.android.com/reference/android/provider/ContactsContract.Quic... > > Just call QuickContact.showQuickContact() and pass in a target Rect > area in screen coordinates. The Quick Contact window adjusts and > points towards that target area. > > j > > On Thu, Oct 29, 2009 at 5:13 AM, Fedor Vlasov wrote: > > > I can see a new Quick Contacts popup in Android 2.0. How can I use it > > in my application? Can't find any samples. > > > Thanks! > > -- > Jeff Sharkey > jshar...@android.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Quick Contacts popup
Can't get it working. I placed it to xml: http://schemas.android.com/apk/res/ android" android:src="@drawable/logo" android:id="@+id/my_icon"/> And the code: QuickContactBadge tx3 = (QuickContactBadge)findViewById(R.id.my_icon); tx3.assignContactFromEmail("myem...@gmail.com", false); When I click over the icon no Badge is displayed. Contacts application is started instead with contact details displayed. On Oct 30, 11:02 pm, Jeff Sharkey wrote: > The easiest way is using the new QuickContactBadge widget. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Quick Contacts popup
The easiest way is using the new QuickContactBadge widget. You can add it to your layout, and there are helper methods to bind it using phone, email, or a normal Uri. http://d.android.com/reference/android/widget/QuickContactBadge.html This control will automatically give you the frame around the photo, and launch the track when clicked. If you're looking to launch the Quick Contacts popup manually yourself, you can use the API directly: http://d.android.com/reference/android/provider/ContactsContract.QuickContact.html Just call QuickContact.showQuickContact() and pass in a target Rect area in screen coordinates. The Quick Contact window adjusts and points towards that target area. j On Thu, Oct 29, 2009 at 5:13 AM, Fedor Vlasov wrote: > > I can see a new Quick Contacts popup in Android 2.0. How can I use it > in my application? Can't find any samples. > > Thanks! > > > > -- Jeff Sharkey jshar...@android.com --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---