1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    India
    Posts
    70
    Vote Rating
    1
    arvindwill is on a distinguished road

      0  

    Default Unanswered: Android Build of Template App from CMD not working

    Unanswered: Android Build of Template App from CMD not working


    Created a Sench Touch app with the Sencha CMD and tested in browser and found the template app running fine without even typing single character. Then changed packager.json for Android and built the native app. Native app .apk was generated successfully without any pain.
    But once the app was installed in the Mobile(Sony Android 4.0.4) and Asus Transformer it was not working. The app gets installed and icon available in home screen. When the icon is tapped, app opens which shows loading screen(three circle) but after that nothing happens. Waited for hours but there was no change in app it keeps showing the loading screen.

    Tested in various emulator. it seems problem in 4.0.3. As in android 4.1 and android 2.2 emulator it is working fine.

    Same app generated for api version 8 is working fine in 4.1 and 2.2 but not working in 4.0.
    So later changed the api version 15(for 4.0) and even then in 4.0 it is not working.

    Though without doing any coding it works in desktop browser and mobile/ tablet browser . But why the generated app is not working.

    Please let me know if any further details are required.
    Last edited by arvindwill; 3 Dec 2012 at 5:21 AM. Reason: emulator test case

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Location
    India
    Posts
    70
    Vote Rating
    1
    arvindwill is on a distinguished road

      0  

    Default


    This is the error log generated from Android 4.0 emulator. (bare template app created by CMD)
    It raise both in Debug mode and Release mode build. but in android 4.1 and 2.2 it is working fine.

    Code:
    12-03 19:39:16.608: W/NetworkManagementSocketTagger(79): setKernelCountSet(10040, 1) failed with errno -2
    12-03 19:39:17.088: I/Process(79): Sending signal. PID: 578 SIG: 3
    12-03 19:39:17.088: I/dalvikvm(578): threadid=3: reacting to signal 3
    12-03 19:39:17.328: I/dalvikvm(578): Wrote stack traces to '/data/anr/traces.txt'
    12-03 19:39:17.598: I/Process(79): Sending signal. PID: 578 SIG: 3
    12-03 19:39:17.598: I/dalvikvm(578): threadid=3: reacting to signal 3
    12-03 19:39:17.648: I/dalvikvm(578): Wrote stack traces to '/data/anr/traces.txt'
    12-03 19:39:17.678: D/dalvikvm(578): GC_CONCURRENT freed 150K, 3% free 9363K/9607K, paused 6ms+5ms
    12-03 19:39:18.018: W/webcore(578): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:1683)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.WebViewCore$EventHub.access$7900(WebViewCore.java:926)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.WebViewCore.removeMessages(WebViewCore.java:1795)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.WebView.sendOurVisibleRect(WebView.java:2917)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:593)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.ZoomManager.access$1700(ZoomManager.java:49)
    12-03 19:39:18.018: W/webcore(578):     at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:984)
    12-03 19:39:18.018: W/webcore(578):     at android.os.Handler.handleCallback(Handler.java:605)
    12-03 19:39:18.018: W/webcore(578):     at android.os.Handler.dispatchMessage(Handler.java:92)
    12-03 19:39:18.018: W/webcore(578):     at android.os.Looper.loop(Looper.java:137)
    12-03 19:39:18.018: W/webcore(578):     at android.app.ActivityThread.main(ActivityThread.java:4424)
    12-03 19:39:18.018: W/webcore(578):     at java.lang.reflect.Method.invokeNative(Native Method)
    12-03 19:39:18.018: W/webcore(578):     at java.lang.reflect.Method.invoke(Method.java:511)
    12-03 19:39:18.018: W/webcore(578):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    12-03 19:39:18.018: W/webcore(578):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    12-03 19:39:18.018: W/webcore(578):     at dalvik.system.NativeStart.main(Native Method)
    12-03 19:39:18.068: D/gralloc_goldfish(578): Emulator without GPU emulation detected.
    12-03 19:39:18.108: I/Process(79): Sending signal. PID: 578 SIG: 3
    12-03 19:39:18.108: I/dalvikvm(578): threadid=3: reacting to signal 3
    12-03 19:39:18.198: I/dalvikvm(578): Wrote stack traces to '/data/anr/traces.txt'
    12-03 19:39:18.268: I/ActivityManager(79): Displayed com.stutzen.lab.tester/.STActivity: +1s978ms
    12-03 19:39:19.168: W/InputManagerService(79): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@415ad020 (uid=10013 pid=182)
    12-03 19:39:19.988: W/NetworkManagementSocketTagger(79): setKernelCountSet(10013, 0) failed with errno -2
    12-03 19:39:21.858: D/chromium(578): Unknown chromium error: -6
    12-03 19:39:21.858: D/chromium(578): Unknown chromium error: -6
    12-03 19:39:21.958: E/libEGL(578): call to OpenGL ES API with no current context (logged once per thread)
    12-03 19:39:21.968: D/ShaderProgram(578): couldn't load the vertex shader!
    12-03 19:39:21.968: E/libEGL(578): call to OpenGL ES API with no current context (logged once per thread)
    12-03 19:39:21.978: D/ShaderProgram(578): couldn't load the vertex shader!
    12-03 19:39:21.978: E/libEGL(578): call to OpenGL ES API with no current context (logged once per thread)
    12-03 19:39:21.978: D/ShaderProgram(578): couldn't load the vertex shader!
    12-03 19:39:21.978: E/libEGL(578): call to OpenGL ES API with no current context (logged once per thread)
    12-03 19:39:21.978: D/ShaderProgram(578): couldn't load the vertex shader!
    12-03 19:39:21.988: E/libEGL(578): call to OpenGL ES API with no current context (logged once per thread)
    12-03 19:39:21.988: D/ShaderProgram(578): couldn't load the vertex shader! 
    12-03 19:39:22.258: E/Web Console(578): Uncaught Error: [Ext.Loader] Failed loading 'touch/src/event/Dispatcher.js', please verify that the file exists at file:///android_asset/touch/sencha-touch.js:8321
    12-03 19:39:22.308: E/Web Console(578): Uncaught Error: [Ext.Loader] Failed loading 'touch/src/event/publisher/Dom.js', please verify that the file exists at file:///android_asset/touch/sencha-touch.js:8321