[jira] [Commented] (CB-10837) platform specific orientation preference is not supported

2016-03-11 Thread dcz.switcher (JIRA)

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

dcz.switcher commented on CB-10837:
---

until this bug was resolved, I use a hook
here is the code if it can help someone

note : I use cheerio lib to parse the Manifest file, so you have to install it :
npm install cheerio
note 2 : if you never used hooks : 
1 - put this script in a subfolder call after_prepare/ in hooks/ (with the name 
you want, for example : hooks/after_prepare/android_orientation.js)
2 - give to the hooks folder execute rights : chmod -R a+x hooks/

{code:javascript}
#!/usr/bin/env node
var fs = require('fs'),
cheerio = require('cheerio');

var manifestPath = 'platforms/android/AndroidManifest.xml';

var manifest = fs.readFileSync(manifestPath, 'utf8')
var $ = cheerio.load(manifest, {xmlMode : true});

$('activity').each(function (i, el) { 
   if (el.attribs['android:name'] && el.attribs['android:name'] === 
"MainActivity"){
$(this).attr('android:screenOrientation', 'nosensor');   
   return;
  }
});

fs.writeFileSync(manifestPath, $.html(), 'utf8');
{code}

> platform specific orientation preference is not supported
> -
>
> Key: CB-10837
> URL: https://issues.apache.org/jira/browse/CB-10837
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 5.4.1
>Reporter: dcz.switcher
>  Labels: build
>
> Hi,
> I want to set Manifest.xml activity with android:screenOrientation="nosensor"
> http://developer.android.com/guide/topics/manifest/activity-element.html#screen
> In cordova doc : 
> Additionally, you can specify any platform-specific orientation value if you 
> place the  element within a  element:
> So, I do it in config.xml
> 
> 
> 
> but on build : 
> Unsupported global orientation: nosensor. Defaulting to value: default



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

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



[jira] [Commented] (CB-10837) platform specific orientation preference is not supported

2016-03-10 Thread dcz.switcher (JIRA)

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

dcz.switcher commented on CB-10837:
---

note : I try orientation and Orientation

> platform specific orientation preference is not supported
> -
>
> Key: CB-10837
> URL: https://issues.apache.org/jira/browse/CB-10837
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 5.4.1
>Reporter: dcz.switcher
>  Labels: build
>
> Hi,
> I want to set Manifest.xml activity with android:screenOrientation="nosensor"
> http://developer.android.com/guide/topics/manifest/activity-element.html#screen
> In cordova doc : 
> Additionally, you can specify any platform-specific orientation value if you 
> place the  element within a  element:
> So, I do it in config.xml
> 
> 
> 
> but on build : 
> Unsupported global orientation: nosensor. Defaulting to value: default



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

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



[jira] [Created] (CB-10837) platform specific orientation preference is not supported

2016-03-10 Thread dcz.switcher (JIRA)
dcz.switcher created CB-10837:
-

 Summary: platform specific orientation preference is not supported
 Key: CB-10837
 URL: https://issues.apache.org/jira/browse/CB-10837
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 5.4.1
Reporter: dcz.switcher


Hi,

I want to set Manifest.xml activity with android:screenOrientation="nosensor"

http://developer.android.com/guide/topics/manifest/activity-element.html#screen

In cordova doc : 
Additionally, you can specify any platform-specific orientation value if you 
place the  element within a  element:

So, I do it in config.xml





but on build : 
Unsupported global orientation: nosensor. Defaulting to value: default





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

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



[jira] [Commented] (CB-9466) input date is very slow on android 5 lollipop

2015-08-07 Thread dcz.switcher (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14661533#comment-14661533
 ] 

dcz.switcher commented on CB-9466:
--

Yes !

You're right, with min and max attributs, the speed is back.

I close this issue

Thanks for your help

 input date is very slow on android 5 lollipop
 -

 Key: CB-9466
 URL: https://issues.apache.org/jira/browse/CB-9466
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: android lollipop up to date on Motorola G, Samsung 
 Galaxy S4 et S5, Nexus 6
Reporter: dcz.switcher
  Labels: date, input

 On lollipop, the invocation of the date picker is very slow (4 seconds to 
 appear) and the date selection too (3 seconds to change)
 to reproduce :
 - update cordova
 - create new project
 - add platform android
 in the default index.html, add input tag type date
 run project on device
 tap on the input field ...
 expected : the date picker appears
 observed : 4 seconds to appears
 then, change date
 expected : date change immediately
 observed : 3 seconds to see the changement



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

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



[jira] [Closed] (CB-9466) input date is very slow on android 5 lollipop

2015-08-07 Thread dcz.switcher (JIRA)

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

dcz.switcher closed CB-9466.

Resolution: Invalid

As jcearmobile said, it's not a cordova issue but a chromium one

 input date is very slow on android 5 lollipop
 -

 Key: CB-9466
 URL: https://issues.apache.org/jira/browse/CB-9466
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: android lollipop up to date on Motorola G, Samsung 
 Galaxy S4 et S5, Nexus 6
Reporter: dcz.switcher
  Labels: date, input

 On lollipop, the invocation of the date picker is very slow (4 seconds to 
 appear) and the date selection too (3 seconds to change)
 to reproduce :
 - update cordova
 - create new project
 - add platform android
 in the default index.html, add input tag type date
 run project on device
 tap on the input field ...
 expected : the date picker appears
 observed : 4 seconds to appears
 then, change date
 expected : date change immediately
 observed : 3 seconds to see the changement



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

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



[jira] [Created] (CB-9466) input date is very slow on android 5 lollipop

2015-08-06 Thread dcz.switcher (JIRA)
dcz.switcher created CB-9466:


 Summary: input date is very slow on android 5 lollipop
 Key: CB-9466
 URL: https://issues.apache.org/jira/browse/CB-9466
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: android lollipop up to date on Motorola G, Samsung Galaxy 
S4 et S5, Nexus 6
Reporter: dcz.switcher


On lollipop, the invocation of the date picker is very slow (4 seconds to 
appear) and the date selection too (3 seconds to change)

to reproduce :

- update cordova
- create new project
- add platform android

in the default index.html, add input tag type date

run project on device

tap on the input field ...
expected : the date picker appears
observed : 4 seconds to appears

then, change date
expected : date change immediately
observed : 3 seconds to see the changement



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

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