我是android开发的初学者,刚刚获得metaio SDK 4.5,我想开发一个应用程序,它可以读取QR码(已经由外部QR生成器用字符串"metaioman"创建),获得字符串并加载metaio man的3D模型。
我一直在修改教程3,使其只有一个按钮和以下代码:@OverrideDrawFrame()上的公共void{super.onDrawFrame();
if (metaioSDK != null)
{
// get all detected poses/targets
TrackingValuesVector poses = metaioSDK.getTrackingValues();
//if we have detected one, attach our metaio man to this coordinate system Id
if (poses.size() != 0)
{
mMetaioMan.setCoordinateSystemID(poses.get(0).getCoordinateSystemID());
}
}
}
所以问题是我应该把poses.get(0).getAdditionalValues()放在哪里,以获得QR的等效字符串?或者这种逻辑有缺陷。
提前感谢
我没有使用metaio,但使用了开源的zxing条形码库。效果很好,试试看。https://code.google.com/p/zxing/
下面是一个Android活动示例,它读取QR码并在TextView
中显示结果。