App for Android created with PhoneGap didn't work on Android 4.1.2









up vote
0
down vote

favorite












I made an app with PhoneGap Desktop App (created Helloworld project, then edited it), then made an apk-file with build.phonegap.com. I didn't add any platform to the project, it had platform 'browser' when created. The app i got works perfect on Android 4.4.2 and above, until 7.x.x, but doesn't work properly on Android 4.1.2. (I do not have the Android SDK installed, I tested it on the PhoneGap Developer, on the phones of my friends and on my own, and on the KOPLAYER Android emulator for Windows). On phone with Android 4.1.2 the resulting application displays html-page from it with some it's elements, but it looks like styles and scripts from external files do not work, and the Canvas element is not displayed at all.



Screenshots of this application running on:



Android 4.1.2



Android 4.4.4



Android 5.1



I have one suggestion. As I understand it, build.phonegap.com chooses platforms for applications. And probably, the Android platform in this case is not suitable for devices with Android 4.1.2. Will the problem be solved if I manually add Android 4.1.2 platform to the project? (cordova platform add android@x4.1.2).



I don’t have a good idea how PhoneGap Build works. Will the Android platform added to the project be used when creating the application, or will it be replaced with another one, chosen by PhoneGap Build service?



But I'm not sure that this is the reason. The site cordova.apache.org says that Cordova supports Android 4.1.x, if I understood correctly.



This application files on github.com and the resulting apk










share|improve this question



























    up vote
    0
    down vote

    favorite












    I made an app with PhoneGap Desktop App (created Helloworld project, then edited it), then made an apk-file with build.phonegap.com. I didn't add any platform to the project, it had platform 'browser' when created. The app i got works perfect on Android 4.4.2 and above, until 7.x.x, but doesn't work properly on Android 4.1.2. (I do not have the Android SDK installed, I tested it on the PhoneGap Developer, on the phones of my friends and on my own, and on the KOPLAYER Android emulator for Windows). On phone with Android 4.1.2 the resulting application displays html-page from it with some it's elements, but it looks like styles and scripts from external files do not work, and the Canvas element is not displayed at all.



    Screenshots of this application running on:



    Android 4.1.2



    Android 4.4.4



    Android 5.1



    I have one suggestion. As I understand it, build.phonegap.com chooses platforms for applications. And probably, the Android platform in this case is not suitable for devices with Android 4.1.2. Will the problem be solved if I manually add Android 4.1.2 platform to the project? (cordova platform add android@x4.1.2).



    I don’t have a good idea how PhoneGap Build works. Will the Android platform added to the project be used when creating the application, or will it be replaced with another one, chosen by PhoneGap Build service?



    But I'm not sure that this is the reason. The site cordova.apache.org says that Cordova supports Android 4.1.x, if I understood correctly.



    This application files on github.com and the resulting apk










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I made an app with PhoneGap Desktop App (created Helloworld project, then edited it), then made an apk-file with build.phonegap.com. I didn't add any platform to the project, it had platform 'browser' when created. The app i got works perfect on Android 4.4.2 and above, until 7.x.x, but doesn't work properly on Android 4.1.2. (I do not have the Android SDK installed, I tested it on the PhoneGap Developer, on the phones of my friends and on my own, and on the KOPLAYER Android emulator for Windows). On phone with Android 4.1.2 the resulting application displays html-page from it with some it's elements, but it looks like styles and scripts from external files do not work, and the Canvas element is not displayed at all.



      Screenshots of this application running on:



      Android 4.1.2



      Android 4.4.4



      Android 5.1



      I have one suggestion. As I understand it, build.phonegap.com chooses platforms for applications. And probably, the Android platform in this case is not suitable for devices with Android 4.1.2. Will the problem be solved if I manually add Android 4.1.2 platform to the project? (cordova platform add android@x4.1.2).



      I don’t have a good idea how PhoneGap Build works. Will the Android platform added to the project be used when creating the application, or will it be replaced with another one, chosen by PhoneGap Build service?



      But I'm not sure that this is the reason. The site cordova.apache.org says that Cordova supports Android 4.1.x, if I understood correctly.



      This application files on github.com and the resulting apk










      share|improve this question















      I made an app with PhoneGap Desktop App (created Helloworld project, then edited it), then made an apk-file with build.phonegap.com. I didn't add any platform to the project, it had platform 'browser' when created. The app i got works perfect on Android 4.4.2 and above, until 7.x.x, but doesn't work properly on Android 4.1.2. (I do not have the Android SDK installed, I tested it on the PhoneGap Developer, on the phones of my friends and on my own, and on the KOPLAYER Android emulator for Windows). On phone with Android 4.1.2 the resulting application displays html-page from it with some it's elements, but it looks like styles and scripts from external files do not work, and the Canvas element is not displayed at all.



      Screenshots of this application running on:



      Android 4.1.2



      Android 4.4.4



      Android 5.1



      I have one suggestion. As I understand it, build.phonegap.com chooses platforms for applications. And probably, the Android platform in this case is not suitable for devices with Android 4.1.2. Will the problem be solved if I manually add Android 4.1.2 platform to the project? (cordova platform add android@x4.1.2).



      I don’t have a good idea how PhoneGap Build works. Will the Android platform added to the project be used when creating the application, or will it be replaced with another one, chosen by PhoneGap Build service?



      But I'm not sure that this is the reason. The site cordova.apache.org says that Cordova supports Android 4.1.x, if I understood correctly.



      This application files on github.com and the resulting apk







      android cordova apk phonegap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 at 18:45

























      asked Nov 10 at 6:32









      Inga Buhtilova

      43




      43



























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236562%2fapp-for-android-created-with-phonegap-didnt-work-on-android-4-1-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236562%2fapp-for-android-created-with-phonegap-didnt-work-on-android-4-1-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線