Could you plz send me the sample code.

On Sat, Dec 8, 2012 at 1:19 AM, bob <[email protected]> wrote:

> Call
>
>
> canvas.setMatrix(new Matrix());
>
>
> prior to drawing your line
>
>
>
> On Friday, December 7, 2012 12:15:30 PM UTC-6, Talha Qamar wrote:
>>
>> Hi i am actually using orientation sensor to make a simple compass
>> .......but then i draw a line using canvas.drawline on that image....when i
>> rotate mobile it changes the values of orientation sensor and rotate the
>> image that works fine....but line on that canvas also moves with that
>> rotation.......
>> i want that line to point to that same direction where it was pointing
>> first.After changes in orientation sensor line points to same direction..I
>> have attached the code.Point the line to any direction u set first than
>> after rotation line point to that direction .....Plz help me i m newbie in
>> android.Thanks in advance.
>> Regards,
>> TQ.
>>
>>  --
> 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

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

Reply via email to