Thursday, May 27, 2010

Re: [android-developers] Contact shortcuts in Android 2.2: Missing anchor rectangle

The rect is part of the Intent itself, it's not an extra. And it's not
new in Froyo, it was added for 2.1.

On Thu, May 27, 2010 at 5:28 AM, Bo <wang.b.frank@gmail.com> wrote:
> Hi all,
>
> I came across a problem with contact shortcuts created in my own home
> replacement. In Froyo, they are supposed to invoke that quick contact
> bar, however, an unhandled exception emerged, saying
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912): Caused by:
> java.lang.IllegalArgumentException: Missing anchor rectangle
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912):     at
> com.android.contacts.ui.QuickContactWindow.show(QuickContactWindow.java:
> 371)
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912):     at
> com.android.contacts.ui.QuickContactActivity.onNewIntent(QuickContactActivity.java:
> 80)
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912):     at
> com.android.contacts.ui.QuickContactActivity.onCreate(QuickContactActivity.java:
> 48)
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 05-27 14:05:13.675: ERROR/AndroidRuntime(7912):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2627)
>
> I tried to put a rect extra in like
> intent.putExtra("target_rect", targetRect); //
> QuickContact.EXTRA_TARGET_RECT not available
> but the problem persists
>
> Does anyone have a solution to this?
>
> Thank you and best regards,
>
> Bo
>
> --
> 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
>

--
Romain Guy
Android framework engineer
romainguy@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--
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