cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-6511) When display name is 16-bit based language, Android platform can't create Activty class when adding support
Date Tue, 07 Oct 2014 22:18:38 GMT

    [ https://issues.apache.org/jira/browse/CB-6511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162668#comment-14162668
] 

Joe Bowser edited comment on CB-6511 at 10/7/14 10:18 PM:
----------------------------------------------------------

Mostly to do with templating.  If you had an app generator that creates apps with a namespace
io.cordova.helloworld, and the only distinguishing thing was the activity name, you can run
into errors installing the app, and getting it to work right with things like Camera.  This
can make already bad templating worse and weird intent filter bugs appear.  Of course, I'd
have to test it more, but that's what happens when you start making classes identical.


was (Author: bowserj):
Mostly to do with templating.  If you had an app generator that creates apps with a namespace
io.cordova.helloworld, and the only distinguishing thing was the activity name, you can run
into errors installing the app, and getting it to work right with things like Camera.  This
can make already bad templating worse and weird intent filter bugs appear.  Of course, I'd
have to test it more, but that's what happens when you start making classes identical.

> When display name is 16-bit based language, Android platform can't create Activty class
when adding support
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CB-6511
>                 URL: https://issues.apache.org/jira/browse/CB-6511
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.3.0, 3.4.0
>            Reporter: Victor Adrian Sosa Herrera
>
> Adding android support when the Display name of the Cordova application has a value based
on 16-bit language (like Japanese) makes that the Activity class (based on that value) isn't
created correctly. Instead, the class is generated as a file named ".java" and the Java class
declaration is "public class  extends CordovaActivity".
> To reproduce the error:
> 1. Change the text file encoding of container to UTF-8
> 2. Create a cordova project and enter a project name with ASCII characters and display
name with G11N characters (like Japanese)
> 3. Once the project is created, add android support.
> 4. Go to <project>/platforms/android/src/<your package> and verify you have
a file named ".java". If you are in Linux, it is a hidden file



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message