java - Default activity not found -


a read of same questions no 1 of them me, asking myself. here android manifest file:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.abcdev.starksproject" >  <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="com.google.android.providers.gsf.permission.read_gservices" /> <uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" />  <application     android:allowbackup="true"     android:icon="@mipmap/ic_launcher"     android:label="@string/app_name"     android:largeheap="true"     android:theme="@style/apptheme" >      <activity android:name=".loginactivity" >         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity android:name=".mainactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".settingsactivity"         android:parentactivityname=".mainactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".restaurantdetailactivity"         android:parentactivityname=".mainactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".feeddetailactivity"         android:parentactivityname=".mainactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".orderactivity"         android:parentactivityname=".mainactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".orderdetailactivity"         android:parentactivityname=".orderactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".cartactivity"         android:parentactivityname=".orderactivity" >         <intent-filter>             <category android:name="android.intent.category.default" />         </intent-filter>     </activity>      <activity android:name=".commentactivity"         android:parentactivityname=".mainactivity">         <intent-filter>             <category android:name="android.intent.category.default"/>         </intent-filter>     </activity>      <meta-data         android:name="com.google.android.gms.version"         android:value="@integer/google_play_services_version" />     <meta-data         android:name="com.google.android.maps.v2.api_key"         android:value="@string/google_maps_key" />      <service         android:name=".sevice.myservice"         android:enabled="true"         android:exported="true" >     </service> </application> 

i defined launcher activity , package name correct. studio can see activities , when run app choosing activity myself works great, have no ideas can be. hope 1 knows whats wrong.

try this.

<activity android:name=".loginactivity" >     <intent-filter>        <action android:name="android.intent.action.main" />        <category android:name="android.intent.category.launcher" />        </intent-filter>  </activity> 

same goes for

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

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -