2017-01-12 3 views
0

には表示されません。私は、Androidのプログラミングへの完全な初心者だと私は次のソースコードを持っていたアプリにあった:私はこのアプリをbuiilt、および生成されたAPKを移動するときAndroidアプリランチャー

<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_height="match_parent" 
    android:layout_width="match_parent" 
    android:background="#FFFFFF" 
    android:orientation="vertical" 
    > 
    <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="Guest" 
     android:textColor="#FFF" 
     android:background="#FF697A" 
     android:textSize="70sp"/> 
    <TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="Shivam Jha" 
     android:background="#FF414D" 
     android:textColor="#FFFFFF" 
     android:textSize="40sp"/> 

<TextView 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="Prabhakar" 
     android:textColor="#FFFFFF" 
     android:background="#FF414D" 
     android:textSize="40sp"/> 
    <ImageView 
     android:layout_width="match_parent" 
     android:layout_height="280dp" 
     android:src="@mipmap/patio"/> 

<TextView 
    android:layout_height="wrap_content" 
    android:layout_width="match_parent" 
    android:text="Google Office Front (USA)" 
    android:background="#999999"/> 
</LinearLayout> 

ファイルを私のSamsung Galaxy j2 android v5.1.1 lolipopにアップロードしてインストールすると、が正常にインストールされますが、開かれたオプションがなく、アプリケーションドロワーに表示されません。 Pleasseは同じことを手伝ってくれます。 注:アンドロイド版の問題はありません!

、ここでは、あなたがこのようなインテントフィルタであなたのAndroidManifest.xmlでの活動を定義する必要があり、私のマニフェストファイル

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.shivamjha.anonymous"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 

    </application> 

</manifest> 
+0

ポストあなたのManifest.xmlファイル。 –

+0

アクティビティがありますか – Anjali

+1

Manifest.xmlにアクティビティを定義する必要があります – Piyush

答えて

0

です。

<activity 
     android:name=".activities.MainActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 

    </activity> 
0

アップデートマニフェスト

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.activities"> 

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 

    <activity 
    android:name=".activities.MainActivity"> 
    <intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 

     <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 
</activity> 

</application> 

+0

コードブロックを説明してください –

関連する問題