You can use the config.xml file at the root of your cordova project to
specify the desired orientation without having to mess with the android
files directly with a tag like such:

<preference name="Orientation" value="landscape" />

Please check
http://cordova.apache.org/docs/en/3.5.0/config_ref_index.md.html#The%20config.xml%20File
for the reference on this preference.

2014-09-08 8:37 GMT-03:00 sandeep bonkra <sandeepbon...@gmail.com>:

> HI,
>
> I am using Apache Cordova to develop a mobile app.
> While I am developing this, I come across one issue.
> While restricting the orientation, I need to update Activity java Class
> file in Android platform.
>
> I do not want to edit anything in the platform as I am building using
> cordova only and do not want to mix up my code base in www and
> /platform/android.
>
> Is there any way out??
>
> Thanks in advance for help.
>
> Regards,
> Sandeep
>



-- 

*Frederico Galvão*

Diretor de Tecnologia

PontoGet Inovação Web


( +55(62) 8131-5720

* www.pontoget.com.br <http://www.pontoget.com/>

Reply via email to