chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

Two android icons

Open ghost opened this issue 9 years ago • 5 comments

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!

ghost avatar Sep 16 '17 06:09 ghost

send me screenshot

jay2342 avatar Sep 17 '17 07:09 jay2342

delete this lines in manifest (second one)

prajitkk avatar Sep 17 '17 11:09 prajitkk

parjitkk help me i have a diff problem

jay2342 avatar Sep 17 '17 19:09 jay2342

<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>

Allansk2 avatar Sep 18 '17 22:09 Allansk2

This should be retested in v4.0. and reopened if necessary.

bensmiley avatar Oct 19 '17 16:10 bensmiley