android - Can't open APK file on mobile device after installing from PC -


i've made android application using eclipse. has no errors, go, wanted test on own phone first. copied apk file samsung galaxy s6 using usb cable. unplugged it, made sure file version not higher or later android version on phone.

used apk installer app, , it's installed. it's @ files, , can update how many times want. after updating, or installing gives 2 buttons in button. "ready" , "open". "ready" 1 clickable, , leaves page. can't open apk-file. i've followed every tutorial can't open it.

this manifest code:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.rodekruis"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="21" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:supportsrtl="true"         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=".bezoekactivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="com.example.rodekruis.bezoekactivity" />                  <category android:name="android.intent.category.default" />             </intent-filter>         </activity>         <activity             android:name=".afspraakactivity"             android:label="@string/title_activity_afspraak" >         </activity>         <activity             android:name=".contactactivity"             android:label="@string/title_activity_contact" >         </activity>         <activity             android:name=".meningactivity"             android:label="@string/title_activity_mening" >         </activity>         <activity             android:name=".routeactivity"             android:label="@string/title_activity_route" >         </activity>         <activity             android:name=".specialistenactivity"             android:label="@string/title_activity_specialisten" >         </activity>         <activity             android:name=".bwcactivity"             android:label="@string/title_activity_bwc" >         </activity>         <activity             android:name=".agendaactivity"             android:label="@string/title_activity_agenda" >         </activity>         <activity             android:name=".infoactivity"             android:label="@string/title_activity_informatie" >         </activity>         <activity             android:name=".vriendactivity"             android:label="@string/title_activity_vriend" >         </activity>         <activity             android:name=".foldersactivity"             android:label="@string/title_activity_folders" >         </activity>         <activity             android:name=".nieuwsactivity"             android:label="@string/title_activity_nieuws">         </activity>     </application>  </manifest> 

does knows why is, or how can solve it? if need add more things, feel free ask. i'm struggling , want work on phone. in advance!

activate usb debugging. easier.

also:

 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.rodekruis"     android:versioncode="1"     android:versionname="1.0" >      <uses-sdk         android:minsdkversion="8"         android:targetsdkversion="21" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:supportsrtl="true"         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=".bezoekactivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.category.default" />                  <category android:name="com.example.rodekruis.bezoekactivity" />             </intent-filter>         </activity>         <activity             android:name=".afspraakactivity"             android:label="@string/title_activity_afspraak" >          </activity>         <activity             android:name=".contactactivity"             android:label="@string/title_activity_contact" >         </activity>         <activity             android:name=".meningactivity"             android:label="@string/title_activity_mening" >         </activity>         <activity             android:name=".routeactivity"             android:label="@string/title_activity_route" >         </activity>         <activity             android:name=".specialistenactivity"             android:label="@string/title_activity_specialisten" >         </activity>         <activity             android:name=".bwcactivity"             android:label="@string/title_activity_bwc" >         </activity>         <activity             android:name=".agendaactivity"             android:label="@string/title_activity_agenda" >         </activity>         <activity             android:name=".infoactivity"             android:label="@string/title_activity_informatie" >         </activity>         <activity             android:name=".vriendactivity"             android:label="@string/title_activity_vriend" >         </activity>         <activity             android:name=".foldersactivity"             android:label="@string/title_activity_folders" >         </activity>         <activity             android:name=".nieuwsactivity"             android:label="@string/title_activity_nieuws">         </activity>     </application>  </manifest> 

you have have launcher defined. rest have defined defined first activity default , package name. main activity(the first launch) has defined main , launcher

edit:

ok, screwed up. updated it. action cannot package name:

<action android:name="android.intent.category.default" />  <category android:name="com.example.rodekruis.bezoekactivity" /> 

you did other way around why didnt work. have default , name activities. mainactivity written correctly


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -