This is a migrated thread and some comments may be shown as answers.

Specify minimum supported Android version

6 Answers 622 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 26 Jun 2013, 05:41 PM
I am about ready to publish my app to the google play store.  Due to some quirks of android 2.3 I would like to target only devices running android 4.0 and higher, but I noticed when I upload my app to the google play store it seems to think anything running 1.6 or higher will be fine.  Is there a way I can exclude devices running android before version 4.0 without manually excluding them on the play store?  I think you normally do this for android apps in the application manifest by setting the minimum SDK number, but I don't know how to do this with Icenium.

6 Answers, 1 is accepted

Sort by
0
Iva Koevska
Telerik team
answered on 27 Jun 2013, 07:20 AM
Hi David,

Starting with Icenium 1.6, you can edit the manifest straight from the code editor. To learn how to edit this and other configuration files in Icenium, see Edit Configuration Files

You need to set a minimum SDK value in <uses-sdk> in AndroidManifest.xml. The minimum API level required by Android 4.0 is 14 as per the <uses-sdk> API Reference. In the code editor, in AndroidManifest.xml, edit the <uses-sdk android:minSdkVersion="8" /> line to <uses-sdk android:minSdkVersion="14" />.

Regards,
Iva Koevska
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
David
Top achievements
Rank 1
answered on 27 Jun 2013, 04:05 PM
I noticed a new version of Graphite came out but I didn't think to check for the much anticipated ability to change android manifest and the cordova plist files, the fix works like a charm.  This is a huge benefit to me there were several minor changes I have been wanting to make before I release the app that weren't possible (or very tedious) before.  good job to all of you guys. :)

I tried to mark your post as the answer but I get a server error page when I try it. :(
0
Andrew
Top achievements
Rank 1
answered on 23 Dec 2013, 08:25 PM
Hi,
I am trying to use the latest WebView debugging features in Android 4.4.  Someone already released a Cordova plugin to enable this ( https://github.com/jrstarke/webview-debug ), but unfortunately it requires the 4.4 SDK to compile/run.  I used the advice above to set the  min SDK version to 19 (4.4):
<uses-sdk android:minSdkVersion="19" />

But the build fails with the output below.  I guess the Icenium back-end is not yet capable of supporting 4.4 features?  Is there a workaround (for example, if I locally compile the plugin with the 4.4 SDK)?  Note that I tried jsHybugger as described in this post:  http://www.icenium.com/blog/icenium-team-blog/2013/11/05/remote-debugging-android-devices-with-jshybugger , and the app built and deployed to my device okay (Nexus 4 running 4.4.2), but no service was started on the device's port 8888.

-build-setup:
[getbuildtools] Using latest Build Tools: 18.0.1
     [echo] Resolving Build Target for Angular...
[gettarget] Project Target:   Android 4.3
[gettarget] API level:        18
[gettarget] WARNING: Attribute minSdkVersion in AndroidManifest.xml (19) is higher than the project target API level (18)
...
cea4d1a93254c90ddcbfcff/src/com/jamiestarke/webviewdebug/WebViewDebug.java:32: error: cannot find symbol
    [javac]         if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    [javac]                                                        ^
    [javac]   symbol:   variable KITKAT
    [javac]   location: class VERSION_CODES
    [javac] /tmp/c64b39979cea4d1a93254c90ddcbfcff/src/com/jamiestarke/webviewdebug/WebViewDebug.java:35: error: cannot find symbol
    [javac]             WebView.setWebContentsDebuggingEnabled(true);
    [javac]                    ^
    [javac]   symbol:   method setWebContentsDebuggingEnabled(boolean)
    [javac]   location: class WebView
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 2 errors


Done building project "Angular.proj" -- FAILED.

0
Iva Koevska
Telerik team
answered on 24 Dec 2013, 08:46 AM
Hello Andrew,

Icenium does not yet support Android 4.4 but we have planned to introduce support for Android 4.4 in an upcoming release. This is the reason why you cannot build with the 4.4 SDK, that you have explicitly set, and your Android build fails. However, should you build your app without setting the 4.4 SDK, you will be able to run it on a 4.4 device, as 4.4. is backwards compatible with earlier versions of Android but you will not be able to use any 4.4-specific features. 

That said, at the moment there is no workaround using Icenium. We are, however, working on introducing support for Android 4.4.

You can stick to jsHybugger for debugging until Icenium becomes fully compatible with 4.4. Please, note, that jsHybugger is not an Icenium tool and falls outside the scope of our support system, and you might want to address any jsHybugger inquiries to their team. Alternatively, you can also try another third-party debugging tool - Weinre. How to do it in Icenium is described here

Regards,
Iva Koevska
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Andrew
Top achievements
Rank 1
answered on 24 Dec 2013, 02:41 PM
Hi Iva,

Thanks for the reply.  Although I couldn't get jsHybugger to work for me, It turns out that with Kit Kat devices, you can do remote device debugging via Google's  ADB Plugin for the Chrome desktop browser.  I wrote up a post about it here:
http://gear11.com/2013/12/debugging-cordova-on-android-with-icenium/

0
Iva Koevska
Telerik team
answered on 24 Dec 2013, 02:51 PM
Hi Andrew,

Thanks for sharing your experience with the community. The blog post is great and your approach might prove helpful for a lot of members of the community.

And, surely, thanks for the kind words regarding Icenium. Hope your experience only keeps getting better. And just as a reminder, should you have any feature suggestions, please, feel free to post them on our feedback portal. And vote for new features as well.

Regards,
Iva Koevska
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Google Android
Asked by
David
Top achievements
Rank 1
Answers by
Iva Koevska
Telerik team
David
Top achievements
Rank 1
Andrew
Top achievements
Rank 1
Share this question
or