Results 1 to 5 of 5

Thread: Android Fail to Load Store (Cordova)

    You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Question Android Fail to Load Store (Cordova)

    I've created a simple touch app using (Touch 2.4.2, Sencha Architect 3.2 & Cmd 5.1.3.61) and deploy using Cordova 5.1.1 to iPhone and Android.

    The iPhone app works and is able to load the data into the store and display on the list. But the Android app did not work. I've given all the necessary permission to the Android app but still fail. Using Android Studio to debug shows lots of runtime error while trying to load the store.

    config.xml
    Code:
     <plugin name="cordova-plugin-whitelist" version="1" />    <access origin="*" />
        <allow-navigation href="*" />
        <allow-intent href="http://*/*" />
        <allow-intent href="https://*/*" />
        <allow-intent href="tel:*" />
        <allow-intent href="sms:*" />
        <allow-intent href="mailto:*" />
        <allow-intent href="geo:*" />
        <platform name="android">
            <allow-intent href="market:*" />
        </platform>
        <platform name="ios">
            <allow-intent href="itms:*" />
            <allow-intent href="itms-apps:*" />
        </platform>
    AndroidManifest.xml
    Code:
    <uses-permission android:name="android.permission.INTERNET" />    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
        <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
            <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
                <intent-filter android:label="@string/launcher_name">
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity android:exported="true" android:name="com.plugin.gcm.PushHandlerActivity" />
            <receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
                <intent-filter>
                    <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                    <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                    <category android:name="com.myazid.TMFouzy" />
                </intent-filter>
            </receiver>
            <service android:name="com.plugin.gcm.GCMIntentService" />
        </application>
        <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />
        <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        <uses-permission android:name="android.permission.WAKE_LOCK" />
        <uses-permission android:name="android.permission.VIBRATE" />
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    Is there anything that I missed?

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120

    Default

    Quote Originally Posted by Yazid View Post
    I've created a simple touch app using (Touch 2.4.2, Sencha Architect 3.2 & Cmd 5.1.3.61) and deploy using Cordova 5.1.1 to iPhone and Android.

    The iPhone app works and is able to load the data into the store and display on the list. But the Android app did not work. I've given all the necessary permission to the Android app but still fail. Using Android Studio to debug shows lots of runtime error while trying to load the store.

    Is there anything that I missed?
    Hi--

    What are the errors that occur when trying to load the store?

    Thanks
    Joel

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Default

    Using Android Studio

    Code:
    08-17 23:40:33.071    2419-2419/com.domain.MyApp W/dalvikvm? VFY: unable to find class referenced in signature (Landroid/webkit/PermissionRequest;)08-17 23:40:33.071    2419-2419/com.domain.MyApp I/dalvikvm? Could not find method android.webkit.PermissionRequest.getResources, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onPermissionRequest
    08-17 23:40:33.071    2419-2419/com.domain.MyApp W/dalvikvm? VFY: unable to resolve virtual method 156: Landroid/webkit/PermissionRequest;.getResources ()[Ljava/lang/String;
    08-17 23:40:33.071    2419-2419/com.domain.MyApp D/dalvikvm? VFY: replacing opcode 0x6e at 0x000d
    08-17 23:40:33.071    2419-2419/com.domain.MyApp I/dalvikvm? Could not find method android.webkit.WebChromeClient$FileChooserParams.createIntent, referenced from method org.apache.cordova.engine.SystemWebChromeClient.onShowFileChooser
    08-17 23:40:33.071    2419-2419/com.domain.MyApp W/dalvikvm? VFY: unable to resolve virtual method 161: Landroid/webkit/WebChromeClient$FileChooserParams;.createIntent ()Landroid/content/Intent;
    08-17 23:40:33.071    2419-2419/com.domain.MyApp D/dalvikvm? VFY: replacing opcode 0x6e at 0x0000
    08-17 23:40:33.071    2419-2419/com.domain.MyApp D/SystemWebViewEngine? CordovaWebView is running on device made by: unknown
    08-17 23:40:33.191    2419-2419/com.domain.MyApp W/EGL_emulation? eglSurfaceAttrib not implemented
    08-17 23:40:33.191    2419-2419/com.domain.MyApp D/OpenGLRenderer? Enabling debug mode 0
    08-17 23:40:33.201    2419-2419/com.domain.MyApp W/AwContents? nativeOnDraw failed; clearing to background color.
    08-17 23:40:33.231    2419-2419/com.domain.MyApp W/AwContents? nativeOnDraw failed; clearing to background color.
    08-17 23:40:33.441    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:33.441    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:33.451    2419-2419/com.domain.MyApp I/chromium? [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
    08-17 23:40:33.461    2419-2419/com.domain.MyApp E/chromium? [ERROR:gles2_cmd_decoder_autogen.h(1082)] [GroupMarkerNotSet(crbug.com/242999)!:38AB1DB9]GL ERROR :GL_INVALID_OPERATION : GetIntegerv: <- error from previous GL command
    08-17 23:40:33.461    2419-2419/com.domain.MyApp I/chromium? [INFO:async_pixel_transfer_manager_android.cc(60)] Async pixel transfers not supported
    08-17 23:40:33.471    2419-2419/com.domain.MyApp E/chromium? [ERROR:gles2_cmd_decoder_autogen.h(1082)] [GroupMarkerNotSet(crbug.com/242999)!:28E21CB9]GL ERROR :GL_INVALID_OPERATION : GetIntegerv: <- error from previous GL command
    08-17 23:40:33.541    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:33.541    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:33.551    2419-2419/com.domain.MyApp D/JsMessageQueue? Set native->JS mode to OnlineEventsBridgeMode
    08-17 23:40:33.621    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:33.621    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:33.621    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:33.621    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:33.831    2419-2419/com.domain.MyApp I/chromium? [INFO:CONSOLE(0)] "The key "minimum-ui" is not recognized and ignored.", source: file:///android_asset/www/index.html (0)
    08-17 23:40:33.901    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:33.921    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:34.001    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.001    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.011    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:34.031    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:34.041    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.041    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.051    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:34.061    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:34.071    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.071    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.081    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:34.081    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:34.101    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.101    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.111    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000b44
    08-17 23:40:34.111    2419-2419/com.domain.MyApp E/eglCodecCommon? glUtilsParamSize: unknow param 0x00000bd0
    08-17 23:40:34.121    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)
    08-17 23:40:34.121    2419-2419/com.domain.MyApp E/eglCodecCommon? **** ERROR unknown type 0x0 (glSizeof,72)

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

  5. #5
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120

    Default

    Hi--

    I don't see any errors/warnings related to loading the store in your app, and these errors appear to be related to Cordova...you might try raising this issue on the Cordova support forums.

    Do you have a simple example application that you can share that demonstrates the issue?

    Thanks
    Joel

Similar Threads

  1. Replies: 2
    Last Post: 3 Apr 2014, 10:28 AM
  2. Replies: 2
    Last Post: 28 Mar 2014, 5:03 PM
  3. Load Store with Ajax Proxy - iOS vs. Android
    By matt_m in forum Sencha Touch 1.x: Q&A
    Replies: 2
    Last Post: 15 Mar 2012, 12:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •