Android添加某些权限后无法调试
我向我的应用程序添加了一些 NFC 权限,现在它不再进入调试模式。它只是说“安装在设备上......完成!”
[2011-10-08 20:58:37 - myApp] Automatic Target Mode: using device '3433254FAA1500EC'
[2011-10-08 20:58:37 - myApp] Uploading myApp.apk onto device '3433254FAA1500EC'
[2011-10-08 20:58:37 - myApp] Installing myApp.apk...
[2011-10-08 20:58:39 - myApp] Success!
[2011-10-08 20:58:39 - myApp] /myApp/bin/myApp.apk installed on device
[2011-10-08 20:58:39 - myApp] Done!
每当我将其添加到清单中时,就会发生这种情况:
这是它周围的 xml,
<activity android:name="Home"
android:screenOrientation="portrait"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/filter_nfc"
/>
</activity>
我希望能够使用它进行调试我的断点,为什么会被阻止?
I added some NFC permissions to my app and now it no longer enters into debug mode. It just says "installed on device... done!"
[2011-10-08 20:58:37 - myApp] Automatic Target Mode: using device '3433254FAA1500EC'
[2011-10-08 20:58:37 - myApp] Uploading myApp.apk onto device '3433254FAA1500EC'
[2011-10-08 20:58:37 - myApp] Installing myApp.apk...
[2011-10-08 20:58:39 - myApp] Success!
[2011-10-08 20:58:39 - myApp] /myApp/bin/myApp.apk installed on device
[2011-10-08 20:58:39 - myApp] Done!
it happens whenever I have added this to the manifest:
<action android:name="android.nfc.action.TECH_DISCOVERED" />
this the xml around it
<activity android:name="Home"
android:screenOrientation="portrait"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.nfc.action.TECH_DISCOVERED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/filter_nfc"
/>
</activity>
I want to be able to debug with my breakpoints, why is this being prevented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试将 TECH_DISCOVERED 放入其自己的 中,使用 MAIN 和 LAUNCHER 将其从列表中取出,
我就是这样做的,并且能够调试我的 NFC 应用程序。
You can try putting the TECH_DISCOVERED in its own , take it out of the list with MAIN and LAUNCHER
I did it that way and am able to debug my NFC app.