2017-07-15 70 views
0

我想知道此AndroidManifest.xml中的任何问题或其他问题。因为我只是一个初学者(我发现一些相关的帖子是关于AndroidManifest.xml的问题,我仍然无法找到问题,我尝试了很多次在我的手机上安装apk文件,仍然无法正常工作)我不擅长英语,比较遗憾的是为什么安装后无法打开应用程序并在手机上找到我的应用程序

enter image description here

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.sung.beamexample_self" 
android:versionCode="1" 
android:versionName="1.0">> 
<uses-permission android:name="android.permission.NFC" /> 
<uses-feature android:name="android.hardware.nfc" /> 
<uses-sdk android:minSdkVersion="14" /> 

<application 

    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:roundIcon="@mipmap/ic_launcher_round" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity android:name=".MainActivity" 
     android:label="NFC Data Display"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 

      <action android:name="android.nfc.action.NDEF_DISCOVERED" /> 
      <category android:name="android.intent.category.DEFAULT"/> 
      <data android:mimeType="text/plain" /> 

     </intent-filter> 
    </activity> 
    </application> 

</manifest> 
  1. 列表项

回答

0

试试这个独立的意图过滤器类似下面的意图过滤器

<intent-filter> 
    <action android:name="android.nfc.action.NDEF_DISCOVERED" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <data android:mimeType="text/plain"/> 
</intent-filter> 
<intent-filter> 
    <action android:name="android.intent.action.MAIN" /> 
    <category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter> 
+0

Thx,bro,可以工作。非常感谢 –

+0

问题的解决,thx –

相关问题