Hello,
I saw in a previous post on this group that cropimage activity used
in the camera app was not available for using in developper's apps.
One of the best way to use it was to import directly the code from
android's apps source code. That's what I did.
I'm facing two problems with com.android.camera.CropImage :
1) there is references to a "mContext" object (line 183, 220)
CropImage cropImage = (CropImage)mContext; (183)
((CropImage)mContext).mWaitingToPick = false; (220)
Eclipse shows en error on mContext : it is not declared in the
class, nor in the superclass com.android.camera.ImageViewTouchBase
2) idem for variables mLeft, mRight, mTop, mBottom lines 267+ they
are not declared in the class, nor in the superclass :
private void ensureVisible(HighlightView hv) {
Rect r = hv.mDrawRect;
int panDeltaX1 = Math.max(0, mLeft - r.left);
int panDeltaX2 = Math.min(0, mRight - r.right);
int panDeltaY1 = Math.max(0, mTop - r.top);
int panDeltaY2 = Math.min(0, mBottom - r.bottom);
int panDeltaX = panDeltaX1 != 0 ? panDeltaX1 : panDeltaX2;
int panDeltaY = panDeltaY1 != 0 ? panDeltaY1 : panDeltaY2;
if (panDeltaX != 0 || panDeltaY != 0)
panBy(panDeltaX, panDeltaY);
}
I can't figure where theses objects are/ should be declared...
Thanks by advance for your help !
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---