Why the APK is not stored in my phone after i run the application?
<p>I have two android projects. one of the projects  i run the app in the android studio through usb on my smartphone, and one project it saves the APK on the smartphone, while in the second project it does not saves the APK on the smartphone. 
what can i do to solve this, because im using google cloud messaging and when the APK is not install in the smartphone it cant get notifications.</p>

<hr>

<p><strong>for example 
<a href="http://i.stack.imgur.com/yxT4j.jpg" rel="nofollow">in this picture</a>
you can see the application "GCMTest" stored in the smartphone</strong>
<strong>but in the other project it does not store the APK</strong></p>

<h2>how can i solve this?</h2>

<p><strong>The Manifest of the project that does not install the APK in smartphone</strong></p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.world.bolandian.watchme"
    android:installLocation="preferExternal"&gt;

     &lt;!-- To access Google+ APIs: --&gt;
     &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
     &lt;!--
     To retrieve OAuth 2.0 tokens or invalidate tokens to disconnect a user. This disconnect
     option is required to comply with the Google+ Sign-In developer policies
     --&gt;
    &lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
    &lt;!-- To retrieve the account name (email) as part of sign-in: --&gt;
    &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
    &lt;!-- To auto-complete the email text field in the login form with the user's emails --&gt;
     &lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
&lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;

&lt;!-- [START gcm_permission] --&gt;
&lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;

&lt;permission
    android:name="com.world.bolandian.watchme.permission.C2D_MESSAGE"
    android:protectionLevel="signature" /&gt;

&lt;uses-permission android:name="com.world.bolandian.watchme.permission.C2D_MESSAGE" /&gt;

&lt;!-- [END gcm_permission] --&gt;
&lt;application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"&gt;
    &lt;activity
        android:name=".MainActivity"
        android:label="@string/app_name"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.world.bolandian.watchme.MainActivity" /&gt;

            &lt;category android:name="android.intent.category.default" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;!--
    &lt;activity
        android:name="."
        android:label="@string/title_activity_register" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.world.bolandian.watchme.Register" /&gt;

            &lt;category android:name="android.intent.category.default" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
    --&gt;
    &lt;activity
        android:name=".Login"
        android:label="@string/title_activity_login"
        android:windowSoftInputMode="adjustResize|stateHidden"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.world.bolandian.watchme.Login" /&gt;

            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;

    &lt;meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" /&gt;


    &lt;receiver
        android:name="com.google.android.gms.gcm.GcmReceiver"
        android:exported="true"
        android:permission="com.google.android.c2dm.permission.SEND" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
            &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION"&gt;&lt;/action&gt;
            &lt;category android:name="com.world.bolandian.watchme" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;


    &lt;service
        android:name=".MyGcmListenerService"
        android:exported="false"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
        &lt;/intent-filter&gt;
    &lt;/service&gt;
    &lt;service
        android:name=".MyInstanceIDListenerService"
        android:exported="false"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.google.android.gms.iid.InstanceID" /&gt;
        &lt;/intent-filter&gt;
    &lt;/service&gt;
    &lt;service
        android:name=".RegistrationIntentService"
        android:exported="false"&gt;&lt;/service&gt;

    &lt;meta-data
        android:name="com.google.android.gms.wallet.api.enabled"
        android:value="true"/&gt;
&lt;/application&gt;
</code></pre>

<p></p>

<p><strong>Manifest of the second project that install the APK in the smartphone</strong></p>

<pre><code>      &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="com.world.bolandian.gcmtest"&gt;

&lt;!-- To access Google+ APIs: --&gt;
&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.USE_CREDENTIALS" /&gt;
&lt;!-- To retrieve the account name (email) as part of sign-in: --&gt;
&lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
&lt;!-- To auto-complete the email text field in the login form with the user's emails --&gt;
&lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
&lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;

&lt;!-- [START gcm_permission] --&gt;
&lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;

&lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/&gt;
&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;

&lt;permission android:name="com.world.bolandian.gcmtest.permission.C2D_MESSAGE"
    android:protectionLevel="signature" /&gt;
&lt;uses-permission android:name="com.world.bolandian.gcmtest.permission.C2D_MESSAGE" /&gt;



&lt;application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"&gt;
    &lt;activity android:name=".MainActivity"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;

            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;

        &lt;receiver
            android:name="com.google.android.gms.gcm.GcmReceiver"
            android:exported="true"
            android:permission="com.google.android.c2dm.permission.SEND" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
                &lt;category android:name="com.world.bolandian.gcmtest" /&gt;
            &lt;/intent-filter&gt;
        &lt;/receiver&gt;

        &lt;service
            android:name=".MyGcmListenerService"
            android:exported="false" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
            &lt;/intent-filter&gt;
        &lt;/service&gt;

        &lt;service
            android:name=".MyInstanceIDListenerService"
            android:exported="false"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.google.android.gms.iid.InstanceID" /&gt;
            &lt;/intent-filter&gt;
        &lt;/service&gt;
    &lt;service
        android:name=".RegistrationIntentService"
        android:exported="false"&gt;&lt;/service&gt;


&lt;/application&gt;

&lt;/manifest&gt;
</code></pre>