You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2017/07/11 17:41:00 UTC

[jira] [Assigned] (CB-10917) android-activityName doesn't set value correctly

     [ https://issues.apache.org/jira/browse/CB-10917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj reassigned CB-10917:
------------------------------

    Assignee: Filip Maj

> android-activityName doesn't set value correctly
> ------------------------------------------------
>
>                 Key: CB-10917
>                 URL: https://issues.apache.org/jira/browse/CB-10917
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 5.1.1
>            Reporter: Jacob Weber
>            Assignee: Filip Maj
>            Priority: Minor
>              Labels: triaged
>
> {{android-activityName}} in config.xml is undocumented, but it's necessary for making older apps work with the latest version of Cordova; once you've published an app, you can't change the activity name.
> But if you set {{android-activityName="Foo"}}, it will set {{<activity android:name="Foo">}} in the manifest. According to the [Android docs|http://developer.android.com/guide/topics/manifest/activity-element.html#nm], the value should start with a period, e.g. {{<activity android:name=".Foo">}}.
> I have already published an app with the period, so I have to manually add it to the manifest before publishing.
> Since this could break compatibility with existing apps if you start inserting the period now, maybe a workaround would be: if {{android-activityName}} starts with a period, use it in the manifest, but remove it when creating the Java file.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org