blackcj / AndroidCustomKeyboard

Android custom keyboard with predictive text.

Home Page:http://www.blackcj.com/blog/2016/03/30/building-a-custom-android-keyboard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while Launching activity

khongthequenbluestar opened this issue · comments

Could not identify launch activity: Default Activity not found
Error while Launching activity

Please help me

You are not supposed to launch it, because it's not a normal app. It's a keyboard app, which you are supposed to enable from the settings and use it whenever an EditText (or similar view) is focused.

If you wish to run it anyway, either create a new normal activity, or edit the manifest and make the existing one to have the needed intent-filter, as such:

...
        <activity
            android:name=".ImePreferences"
            android:label="@string/settings_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
...

Thanks