Two android icons
Hello,
I am adding chatSDK to an existing application. After following the basic instructions and running the app, I get two app icons instead of 1. Upon opening either one, I briefly see the login screen before the app crashes and closes. I am new to android development. Maybe the problem is in my android manifest file?
This is what I have:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>-->
<activity
android:name="com.braunster.chatsdk.activities.ChatSDKLoginActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/ChatSDKTheme"
android:windowSoftInputMode="stateHidden|adjustPan"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Thanks!
send me screenshot
delete this lines in manifest (second one)
parjitkk help me i have a diff problem
<activity
android:name="com.braunster.chatsdk.activities.ChatSDKLoginActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/ChatSDKTheme"
android:windowSoftInputMode="stateHidden|adjustPan"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
should be
<activity
android:name="com.braunster.chatsdk.activities.ChatSDKLoginActivity"
android:screenOrientation="portrait"
>
</activity>
This should be retested in v4.0. and reopened if necessary.