Search code examples
androidibm-mobilefirstandroid-manifest

How to add a space in action of an intent filter of a activity In Android Manifest File


I am using the following code to open an activity on click of a Notification from the notification bar.

<activity android:name=".controllers.activities.myactivity">
        <intent-filter>
            <action android:name="com.mypackage.MYAppName.NOTIFICATION" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

My question is how to put a space in the App name. When i am trying to put the space directly its giving me an error saying space is not accepted.

EX:- <action android:name="com.mypackage.MY App Name.NOTIFICATION" />

I am using IBM Mobilefirst sdk for push. So Mobilefirst document says I have to do it this way. I need to get it this issue resolved by

  • Either I have to find a way to put a space in the action (android:name) of Intent filter
  • IBM Mobilefirst should have a different way to do this.

Can some help me handling this issue.


Solution

  • We cant keep a space in action value of intent filter.