Reputation: 249
when running my app it always goes to the edit configuration. i found a solution in here but couldn't find the source tab in open module settings. Is there any other way to solve this? I'm using the latest version of android studio. Thank you for the help.
this is my AndroidManifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mobapp.yurin.hkt">
<application android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
</activity>
</application>
Upvotes: 0
Views: 507
Reputation: 406
You didn't set the default launcher for the application. Try this:
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Upvotes: 2