Reputation: 973
I want to develop an Android application to detect some target and show play icon over it. When user click the play icon, augmented reality played on another activity.
I use ARToolkit as a SDK. The Interaction example is the best match my requirements. But the problem is i cant make the play icon clickable and in that example, the whole view is clickable.
In brief, how can i get marker coordinates on Android view?
Upvotes: 2
Views: 957
Reputation: 3996
The play button you want to place is a 3D object inside a GLSurfaceView, there is no "View" associated to that object, so you can't just use an OnClickListener.
ARToolkit gives you the marker coordinates on 3DSpace, but that I don't think that coordinates are what you are asking for.
As I see it, you have 2 main options:
Option 1 is the simplest, option 2 is what you describe.
Upvotes: 3