在Android手机上安装后我的Android应用程序说“app is not install”

时间:2015-11-02 17:16:25

标签: android android-layout android-activity

<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.bytes2" android:versionCode="1" android:versionName="1.0">

  <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" />

  <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:permission="android.permission.ACCESS_FINE_LOCATION" android:theme="@style/AppTheme">
    <activity android:name=".MainActivity" android:label="@string/app_name">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name=".myMainScreen" android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.tutorial.CLEARSCREEN" />
        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".Area_search" android:label="@string/app_name" android:launchMode="standard">
      <intent-filter>
        <action android:name="com.example.area" />

        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".pinsearch" android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.example.pin" />

        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".categorysearch" android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.example.catagory" />

        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".Login" android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.example.login" />

        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".Register_user" android:label="@string/app_name">
      <intent-filter>
        <action android:name="com.example.catagory" />
        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>
    <activity android:name=".Admin_page" android:label="@string/app_name">
      <intent-filter>
        <action android:name="android.intent.action.Admin" />

        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name=".Add_Restaurant"></activity>
    <activity android:name=".Delete_Restaurant"></activity>
    <activity android:name=".Name_search"></activity>
    <activity android:name=".Aboutus"></activity>
    <activity android:name=".Contactus"></activity>

  </application>

</manifest>

 <?xml version="1.0" encoding="utf-8"?>

<string name="app_name">8Bytes</string>
<string name="action_settings">Settings</string>
<string name="Name">Name</string>
<string name="catagory">Category</string>
<string name="area">Area</string>

<string-array name="items">
    <item>Name Search</item>
    <item>Area Search</item>
    <item>Catagory Search</item>

  <!--   <item>Login</item>
    <item>Register</item> -->

    <item>Home</item>
    <item>Contact Us!</item>
    <item>About</item>
</string-array>

<string name="drawer_open">Open navigation drawer</string>
<string name="drawer_close">Close navigation drawer</string>

<color name="Grey">#757575</color>

<string-array name="Area_array">
    <item>Cooke Town</item>
    <item>OMBR</item>
    <item>Banaswadi</item>
</string-array>
<string-array name="Category_array">
    <item>North Indian</item>
    <item>South Indian</item>
    <item>Chinies</item>
    <item>Thai</item>
    <item>Italian</item>
</string-array>

<!--
 <string-array name="Name_array">
     <item >McDonald</item>
     <item >PizzaHut</item>
     <item >Dominos</item>
    <item>Tamarind</item>
    <item>Saffron</item>
    <item>Delicias</item>
 </string-array>
-->

<string name="title_activity_add__reastarunt">Add_Reastarunt</string>
<string name="hello_world">Hello world!</string>

我已经为我的学期开发了很多痛苦,最后使它在模拟器上运行但是当我尝试在模拟器上重新打开应用程序(现在安装在模拟器上)时它会显示错误的Toast消息“应用程序未安装”,当我安装Android手机上的应用程序时,安装了消息应用程序已安装,但当我尝试从应用程序列表中打开它时,它显示相同的Toast消息“app isn”安装“有人可以帮我这个吗? :( 22.47 2015年2月11日

我也在使用String.xml

2 个答案:

答案 0 :(得分:0)

我终于得到了答案......

实际上影响我的应用程序的原因有很多 在AndroidMainfest.Xml文件中

&#13;
&#13;
<application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:permission="android.permission.ACCESS_FINE_LOCATION"
        android:theme="@style/AppTheme" >    
&#13;
&#13;
&#13;

    the problem was with this line 
 android:permission="android.permission.ACCESS_FINE_LOCATION"

我删除了它并且它有效...

答案 1 :(得分:0)

只需在清单文件中添加以下行:

tcpdump -n -i eth0 > foo