我正在尝试将Aurasma集成到我的应用程序中。所有应用程序运行良好,但在Aurasma部分,当我在Button上启动它时,单击It会在splash屏幕上抛出一条消息,因为“发生了错误”,在Log Cat上,它显示了“资源完整性检查失败”--我想知道为什么会发生这种情况,我在一个单独的应用程序上集成aurasma而没有任何单击事件,它直接启动,但是在我的应用程序方面,它不工作,为什么?我肯定这几点:
但它的错误信息却不一样。
启动Aurasma的代码如下:
aurasmaIntent = AurasmaIntentFactory.getAurasmaLaunchIntent(HomeActivity.this,
getString(R.string.app_name), getString(R.string.app_version));
} catch (AurasmaLaunchException e) {
Log.e("AKTest", "Error getting intent", e);
showDialog(DIALOG_ERROR);
return;
}
if (DELAY_START) {
AurasmaSetupCallback callback = new AurasmaSetupCallback() {
@Override
public void onLoaded() {
dismissDialog(DIALOG_PROGRESS);
startActivity(aurasmaIntent);
}
@Override
public void onLoadWarning(final int code) {
Log.w("AKTest", "Preload warning: " + code);
}
@Override
public void onLoadFail(final int code) {
Log.e("AKTest", "Preload error: " + code);
dismissDialog(DIALOG_PROGRESS);
showDialog(DIALOG_ERROR);
}
};
showDialog(DIALOG_PROGRESS);
AurasmaIntentFactory.startAurasmaPreload(getApplicationContext(), aurasmaIntent,
callback);
} else {
startActivity(aurasmaIntent);
}
}发布于 2013-01-30 16:47:58
如果您从Aurasma库(布局或字符串)更改了一些资源,您将得到这个错误--“发生了错误”。库检查Aurasma上的资源。不要更改或删除任何文件。
另一件可能导致错误的事情是:
aurasmaIntent = AurasmaIntentFactory.getAurasmaLaunchIntent(HomeActivity.this,
getString(R.string.app_name), getString(R.string.app_version));这里的第二个参数是userAgentName。这是您从studio.aurasma.com获得的应用程序的名称。在“让您自己的应用程序”中,您可以看到应用程序名称-这个名称与您的应用程序连接,但可能是不同的。
发布于 2012-09-25 02:17:20
在清单中检查您的minSdkVersion
android:minSdkVersion="8“
https://stackoverflow.com/questions/12242792
复制相似问题