cordova app & diffrent android versions(api)

281 views
Skip to first unread message

Dinesh Guleria

unread,
Feb 20, 2015, 1:28:13 AM2/20/15
to phon...@googlegroups.com
Hi,

Please answer my following questions ;--


1> I have following version of cordova installed. Does this version of cordova supports crosswalk :--
cordova -v 
4.2.0

2> My system is having android 4.4 & 4.3 CLI SDK installed. By default following command cordova platform add android create project for 4.4 Android (API 19)
I want to compile my android app for Android 4.3 (API 18). I have changed following to files manually(as per this link) so that project compile for android 4.3 :--
project.properties & android.AndroidManifest.xml


But if i run the following command in my base project, i get following output :---
cordova platform version android
Installed platforms: android 3.6.4

Why is it giving output 3.6.4 even if i have compiled my project for android 4.3 ?


3> Create cordova project for specific android platform version. Is it right way to do from command line :---
cordova platform add android@4.3    --> here 4.3 is the ANDROID version, right ?

Please suggest.

Regards,
Dinesh

Kerri Shotts

unread,
Feb 20, 2015, 3:24:41 PM2/20/15
to phon...@googlegroups.com
Android OS version is in no way the same as the Cordova Android platform version. The latter is simply the version of the native support libraries that Cordova uses to work on Android. The latter is currently at 3.7.1. This number has no correlation to the Android OS version that your app will run on (other than what it does and doesn't support.)

Re: 1: Check Crosswalk's site.

Re: 2: ? As long as your Android SDK is up-to-date, Cordova shouldn't complain when building for Android. If you want your app to run on multiple API levels, simply adjust your config.xml to specify the minimum SDK version:

<preference name="android-minSdkVersion" value="..." />

Re: 3: this will do you no good as there's no 4.3 version. The latest is 3.7.1. In fact, if you try, you'll get this error:

$ cordova platform add android@4.3
Unable to fetch platform android@4.3: Error: No compatible version found: cordova-android@'>=4.3.0-0 <4.4.0-0'
Valid install targets:
["3.5.0","3.5.1","3.6.0","3.6.1","3.6.3","3.6.4","3.7.0","3.7.1"]

Dinesh Guleria

unread,
Feb 21, 2015, 4:37:41 AM2/21/15
to phon...@googlegroups.com
Thanks Kerri.

One more thing i will like to know is :--
Cordova hybrid app bundles webview browser inside the apk file or apps generated by cordova take the default browser of the device at runtime & show html pages inside the android app ?

Please suggest.

Kerri Shotts

unread,
Feb 21, 2015, 3:02:40 PM2/21/15
to phon...@googlegroups.com
At the moment, Cordova uses only the system-provided webview. I know work is being done to allow Cordova-Android 4.x to support Chromium rather than the webview.

Dinesh Guleria

unread,
Feb 21, 2015, 8:57:16 PM2/21/15
to phon...@googlegroups.com

Ok means hybrid apk of cordova select browser at runtime, right ?

Also it means that Cordova-Android 4.x will use Chromium rather than the webview at run time of app. What if mobile phone device do not have chrome browser installed ?

Message has been deleted

Dinesh Guleria

unread,
Feb 23, 2015, 9:10:34 AM2/23/15
to phon...@googlegroups.com

I want to compile my android app for Android 4.3 (API 18). As my mobile phone is android 4.3.

So crosswalk will not work for Android 4.3 (API 18) device, what do you say ?

On 23 Feb 2015 19:17, "Kevin Grabher" <kevin....@gmail.com> wrote:
If you want to make sure your app uses chromium use something like https://crosswalk-project.org
I believe it packaged chromium with the app. It requires API Version 19 and makes the app larger but makes outcomes much more predictable with the same webkit underneath it no matter on what device it's run on.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/4ejZpsyBBiI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Kevin Grabher

unread,
Feb 23, 2015, 10:27:45 AM2/23/15
to phon...@googlegroups.com
Sorry, need to correct myself, I got stuff mixed up.
Here's the correct explaination (taken from ionicframework.com)

Older versions of Android devices (4.0-4.3) use Android’s default browser, which has significantly less performance and standards compliance than modern Chrome.
Using Crosswalk gives you a specific and more performant version of Chrome to use on all Android devices, in order to reduce fluctuations and fragmentation among devices.

Dinesh Guleria

unread,
Feb 23, 2015, 12:14:55 PM2/23/15
to phon...@googlegroups.com

>> Using Crosswalk gives you a specific and more performant version of Chrome to use on all Android devices, in order to reduce fluctuations and fragmentation among devices.

But not for android-4.3 i.e API-18 . Right ?

Kevin Grabher

unread,
Feb 24, 2015, 10:12:02 AM2/24/15
to phon...@googlegroups.com
Yes, for versions 4-4.3 it makes your app rely on chrome as well (api14+)

Dinesh Guleria

unread,
Feb 24, 2015, 12:54:12 PM2/24/15
to phon...@googlegroups.com

I have one last question that :--
My project is having crosswalk library compiled with target sdk Android 4.4 (API 19).  And my cordova project which is using crosswalk library is compiled with target sdk Android 4.3 (API 18). So will it not cause any compatibility issue in final apk produced ?

Reply all
Reply to author
Forward
0 new messages