Could not identify launch Activity: Default Activity not found
For main activity in your manifest you have to add this with category LAUNCHER
(First Activity on launch app):
<activity
android:name=".MainActivity"
android:label="YourAppName"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
For other activity you have to change category to DEFAULT
:
<activity
android:name=".OtherActivity"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="package.OtherActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Check this Activity and this Start Another Activity
So your code is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mrrobot.mycoolweather" >
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".activity.ChooseAreaActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Default Activity Not Found on Android Studio upgrade
If you see that error occur after upgrading versions of IntelliJ IDEA or Android Studio, or after generating a new APK file, you may need to refresh the IDE's cache.
Menu File → Invalidate Caches and restart...
Related Topics
How to Enable Location Access Programmatically in Android
React-Native: Images Not Showing in Android Device; But Shows in Emulator
React Native: Determine Number of Lines of Text Component
Android - How to Make a Button Click Play a Sound File Every Time It Been Pressed
Android Studio: Emulator Is Running But Not Showing Up in Run App "Choose a Running Device"
How to Completely Disable Selinux in Android L in the Init.Rc File
How to Delete Shared Preferences Data from App in Android
Recyclerview Cannot Be Scrolled
Android: How to Propagate Click Event to Linearlayout Childs and Change Their Drawable
Retrofit2 - How to Upload Image Using Retrofit in Multipart
Download Manager Progress Not Visible in the Notification Area
How Disable Redirect in Webview
Removing Backgroundcolor of a View in Android
Android: Rotate Image in Imageview by an Angle
Android Gradle Error When Sync Style Attribute Not Found
Android Volley Basicnetwork.Performrequest() Unexpected Response Code 404