albersmc / android-augment-reality-framework

Automatically exported from code.google.com/p/android-augment-reality-framework
GNU General Public License v3.0
0 stars 0 forks source link

Canvas getMatrix method dprecated #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Justin,

the method getMatrix(matrix) of Canvas is deprecated by Android API Level 16. 
Any alternative?

Original issue reported on code.google.com by GeSh...@gmail.com on 7 Jan 2014 at 6:08

GoogleCodeExporter commented 9 years ago
Well, it is deprecated but you should still be able to use it at level 16. I 
believe....

BUT.. I think the real alternative is to use View's getMatrix method from what 
I've been reading.

In AugmentedReality.java:
change augmentedView field from protected to public

In PaintableObject.java:
change all lines of:
canvas.getMatrix(matrix);
to:
matrix.set(AugmentedReality.augmentedView.getMatrix());

Note, I haven't tested this and I can't test it because I don't have the 
hardware.

If this works, please let me know.

Original comment by phishman3579@gmail.com on 7 Jan 2014 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by phishman3579@gmail.com on 7 Jan 2014 at 3:58

GoogleCodeExporter commented 9 years ago
It works

Original comment by GeSh...@gmail.com on 11 Jan 2014 at 5:31

GoogleCodeExporter commented 9 years ago
It worked, but somehow, the handleClick method of Marker, always returns false 
when touching the marker. Any ideas?

Original comment by eric.pan...@gmail.com on 3 Apr 2014 at 4:39

GoogleCodeExporter commented 9 years ago
eric.panorel Hmm.. Not really sure.

Original comment by phishman3579@gmail.com on 5 Apr 2014 at 9:26