Specify minimum supported Android version

7 posts, 0 answers
  1. David
    David avatar
    60 posts
    Member since:
    Nov 2012

    Posted 26 Jun 2013 Link to this post

    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.
  2. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 27 Jun 2013 Link to this post

    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.
  3. David
    David avatar
    60 posts
    Member since:
    Nov 2012

    Posted 27 Jun 2013 Link to this post

    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. :(
  4. Andrew
    Andrew avatar
    11 posts
    Member since:
    Dec 2013

    Posted 23 Dec 2013 Link to this post

    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.

  5. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Dec 2013 Link to this post

    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.
  6. Andrew
    Andrew avatar
    11 posts
    Member since:
    Dec 2013

    Posted 24 Dec 2013 Link to this post

    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/

  7. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Dec 2013 Link to this post

    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.
Back to Top