怎么没发现你的onNewIntent在哪去了呢?
你可以参考这样:
@Override
public void onResume() {
super.onResume();
// Check to see that the Activity started due to an Android Beam
if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {
processIntent(getIntent());
}
} @Override
public void onNewIntent(Intent intent) {
// onResume gets called after this to handle the intent
setIntent(intent);
}
你可以参考这样:
@Override
public void onResume() {
super.onResume();
// Check to see that the Activity started due to an Android Beam
if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {
processIntent(getIntent());
}
} @Override
public void onNewIntent(Intent intent) {
// onResume gets called after this to handle the intent
setIntent(intent);
}
解决方案 »
- No content provider found for permission revoke: file://XXX.apk是什么意思?
- 使用自定义的SimpleAdapter,内容由数据库读取生成的listiew如何更新
- android应用--txt阅读器
- Android模拟器怎么重置?
- 求助,图片不能全屏的问题
- Adapter 问题 我真的不是很明白!!!
- android 事件监听问题
- 安卓程序,访问网络时路径正确,但是却得不到资源
- 怎么把这个表白程序变成apk
- 紧急求救!抓取手机APP数据的问题
- eclipse有类似visual studio的“书签”功能吗?
- Google API和SDK之间有什么关系?
郁闷