.APK file loads black screen other Android devices

edited February 2014 in Android Mode

Hey all,

So I have compiled a small chunk of an interactive ebook I am working on for Android as a consumable Android APK file. Following this tutorial: akeric.com/blog/?p=1352 I created an APK file that launches fine on my Nexus 7 tablet, but when I have other users test (ensured their version, ram requirements, etc match my configuration/xml file), it simply launches a blank, black screen. I am at a loss to what is causing this issue on other devices. I am linking below my APK file if anyone wants to give it a go. You need to be running honeycomb 3.0+ minimum.

tested and working fine on my Nexus 7 - 4.3 kit kat.

https://docs.google.com/file/d/0B1ooC6oZQeHIcVNncmkxeWstNW8/preview?pli=1

Tagged:

Answers

  • Does the app actually crash (with an error message) or does it just display a blank screen (no content)? There's a pretty big difference...

    Do you have access to a computer with a USB capable and ADB to connect LogCat and listen for error messages on the new test device? This is the only way to detect errors / crashes...

    What device do you test on? Specifically, what is the screen classification and the Android version?

  • edited February 2014

    Hey Calsign,

    I am connecting directly to the computer via USB. I am running an Android Nexus 7 (new model). Everyone who has had the issue was running a galaxy s3, nexus 7 (early model), and a google Nexus 5. Their are no warning messages from anyone.. just a completely black screen on startup with the signed APK.

    Specifically, what is the screen classification and the Android version?

    I set my manifest to API lvl 11, (3.0), and everyone is operating well above that. Here is a copy of my manifest:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package=""><uses-sdk android:minSdkVersion="11" android:targetSdkVersion="19"/><application android.largeHeap="true" android:debuggable="false" android:icon="@drawable/icon" android:label=""><activity android:name=""><intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></intent-filter></activity></application><uses-permission android:name="android.permission.VIBRATE"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/></manifest>

    I connected my tablet to usb, have adb installed, and tested with logcat. This is the logcat print out from loading on the debuggable APK to launching (launching fine on my tablet as mentioned)

    D/AndroidRuntime(15310): 
    D/AndroidRuntime(15310): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
    D/AndroidRuntime(15310): CheckJNI is OFF
    D/dalvikvm(15310): Trying to load lib libjavacore.so 0x0
    D/dalvikvm(15310): Added shared lib libjavacore.so 0x0
    D/dalvikvm(15310): Trying to load lib libnativehelper.so 0x0
    D/dalvikvm(15310): Added shared lib libnativehelper.so 0x0
    D/dalvikvm(15310): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
    D/dalvikvm(15310): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
    D/AndroidRuntime(15310): Calling main entry com.android.commands.am.Am
    D/AndroidRuntime(15310): Shutting down VM
    I/ActivityManager(  591): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 15310
    D/dalvikvm(15310): GC_CONCURRENT freed 95K, 15% free 585K/684K, paused 0ms+1ms, total 3ms
    D/AndroidRuntime(15338): 
    D/AndroidRuntime(15338): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
    D/AndroidRuntime(15338): CheckJNI is OFF
    D/dalvikvm(15338): Trying to load lib libjavacore.so 0x0
    D/dalvikvm(15338): Added shared lib libjavacore.so 0x0
    D/dalvikvm(15338): Trying to load lib libnativehelper.so 0x0
    D/dalvikvm(15338): Added shared lib libnativehelper.so 0x0
    D/dalvikvm(15338): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
    D/dalvikvm(15338): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
    D/AndroidRuntime(15338): Calling main entry com.android.commands.pm.Pm
    W/ActivityManager(  591): No content provider found for permission revoke: file:///data/local/tmp/Main_EBook2-debug.apk
    W/ActivityManager(  591): No content provider found for permission revoke: file:///data/local/tmp/Main_EBook2-debug.apk
    I/PackageManager(  591): Copying native libraries to /data/app-lib/vmdl-1118396137
    D/dalvikvm(  591): GC_FOR_ALLOC freed 1545K, 13% free 18713K/21412K, paused 49ms, total 49ms
    D/dalvikvm(  591): GC_FOR_ALLOC freed 1172K, 13% free 18714K/21412K, paused 48ms, total 48ms
    D/dalvikvm(  591): GC_FOR_ALLOC freed 1164K, 13% free 18721K/21412K, paused 47ms, total 47ms
    I/ActivityManager(  591): Force stopping processing.test.main_ebook2 appid=10070 user=-1: uninstall pkg
    I/ActivityManager(  591): Killing 15184:processing.test.main_ebook2/u0a70 (adj 7): stop processing.test.main_ebook2
    I/ActivityManager(  591):   Force finishing activity ActivityRecord{41edf6b8 u0 processing.test.main_ebook2/.Main_EBook2 t81}
    I/WindowState(  591): WIN DEATH: Window{41ee4810 u0 processing.test.main_ebook2/processing.test.main_ebook2.Main_EBook2}
    W/WindowManager(  591): Force-removing child win Window{41ee6270 u0 SurfaceView} from container Window{41ee4810 u0 processing.test.main_ebook2/processing.test.main_ebook2.Main_EBook2}
    W/WindowManager(  591): Failed looking up window
    W/WindowManager(  591): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@42534a18 does not exist
    W/WindowManager(  591):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7923)
    W/WindowManager(  591):     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7914)
    W/WindowManager(  591):     at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1047)
    W/WindowManager(  591):     at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
    W/WindowManager(  591):     at dalvik.system.NativeStart.run(Native Method)
    I/WindowState(  591): WIN DEATH: null
    I/PackageManager(  591): Running dexopt on: processing.test.main_ebook2
    I/PackageManager(  591): Package processing.test.main_ebook2 codePath changed from /data/app/processing.test.main_ebook2-1.apk to /data/app/processing.test.main_ebook2-2.apk; Retaining data and using new
    D/dalvikvm(15350): DexOpt: 'Landroid/annotation/SuppressLint;' has an earlier definition; blocking out
    D/dalvikvm(15350): DexOpt: 'Landroid/annotation/TargetApi;' has an earlier definition; blocking out
    D/dalvikvm(15350): DexOpt: not verifying/optimizing 'Landroid/annotation/SuppressLint;': multiple definitions
    D/dalvikvm(15350): DexOpt: not verifying/optimizing 'Landroid/annotation/TargetApi;': multiple definitions
    D/dalvikvm(15350): DexOpt: load 55ms, verify+opt 265ms, 1203100 bytes
    W/PackageManager(  591): Code path for pkg : processing.test.main_ebook2 changing from /data/app/processing.test.main_ebook2-1.apk to /data/app/processing.test.main_ebook2-2.apk
    W/PackageManager(  591): Resource path for pkg : processing.test.main_ebook2 changing from /data/app/processing.test.main_ebook2-1.apk to /data/app/processing.test.main_ebook2-2.apk
    I/ActivityManager(  591): Force stopping processing.test.main_ebook2 appid=10070 user=-1: update pkg
    I/ActivityManager(  591): Force stopping processing.test.main_ebook2 appid=10070 user=0: pkg removed
    I/InputReader(  591): Reconfiguring input devices.  changes=0x00000010
    I/InputReader(  591): Reconfiguring input devices.  changes=0x00000010
    W/ContextImpl(11376): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1479 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2419 
    D/PackageBroadcastService(  998): Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=processing.test.main_ebook2
    D/dalvikvm(  848): GC_CONCURRENT freed 208K, 3% free 9485K/9724K, paused 1ms+1ms, total 22ms
    I/InputReader(  591): Reconfiguring input devices.  changes=0x00000010
    V/GelStubAppWatcher( 1574): onReceive: android.intent.action.PACKAGE_REMOVED
    D/BackupManagerService(  591): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:processing.test.main_ebook2 flg=0x4000010 (has extras) }
    D/BackupManagerService(  591): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:processing.test.main_ebook2 flg=0x4000010 (has extras) }
    V/BackupManagerService(  591): removePackageParticipantsLocked: uid=10070 #1
    D/PackageBroadcastService(  998): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=processing.test.main_ebook2
    V/BackupManagerService(  591): addPackageParticipantsLocked: #1
    V/GelStubAppWatcher( 1574): onReceive: android.intent.action.PACKAGE_ADDED
    I/Icing.InternalIcingCorporaProvider( 1574): Updating corpora: A: processing.test.main_ebook2, C: MAYBE
    I/ActivityManager(  591): Delay finish: com.android.musicfx/.Compatibility$Receiver
    D/dalvikvm(11390): GC_CONCURRENT freed 257K, 5% free 9708K/10124K, paused 1ms+2ms, total 22ms
    D/PackageBroadcastService(  998): Received broadcast action=android.intent.action.PACKAGE_REPLACED and uri=processing.test.main_ebook2
    I/ActivityManager(  591): Resuming delayed broadcast
    D/dalvikvm(  591): GC_EXPLICIT freed 1992K, 12% free 18937K/21412K, paused 3ms+10ms, total 111ms
    D/AndroidRuntime(15338): Shutting down VM
    D/dalvikvm(15338): GC_CONCURRENT freed 95K, 16% free 560K/660K, paused 0ms+0ms, total 2ms
    V/GelStubAppWatcher( 1574): onReceive: android.intent.action.PACKAGE_REPLACED
    D/dalvikvm(  998): GC_CONCURRENT freed 422K, 5% free 9676K/10152K, paused 1ms+1ms, total 15ms
    D/AndroidRuntime(15382): 
    D/AndroidRuntime(15382): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
    D/AndroidRuntime(15382): CheckJNI is OFF
    D/dalvikvm(15382): Trying to load lib libjavacore.so 0x0
    D/dalvikvm(15382): Added shared lib libjavacore.so 0x0
    D/dalvikvm(15382): Trying to load lib libnativehelper.so 0x0
    D/dalvikvm(15382): Added shared lib libnativehelper.so 0x0
    D/dalvikvm(15382): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
    D/dalvikvm(15382): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
    D/AndroidRuntime(15382): Calling main entry com.android.commands.am.Am
    I/ActivityManager(  591): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=processing.test.main_ebook2/.Main_EBook2 (has extras)} from pid 15382
    D/AndroidRuntime(15382): Shutting down VM
    D/dalvikvm(15393): Late-enabling CheckJNI
    I/ActivityManager(  591): Start proc processing.test.main_ebook2 for activity processing.test.main_ebook2/.Main_EBook2: pid=15393 uid=10070 gids={50070, 1028, 1015}
    D/dalvikvm(15382): GC_CONCURRENT freed 97K, 15% free 586K/688K, paused 2ms+0ms, total 4ms
    D/dalvikvm(15393): GC_CONCURRENT freed 101K, 2% free 9278K/9412K, paused 5ms+2ms, total 70ms
    I/processing.test.main_ebook2(15393): PROCESSING onStart
    I/Adreno-EGL(15393): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
    D/OpenGLRenderer(15393): Enabling debug mode 0
    I/ActivityManager(  591): Displayed processing.test.main_ebook2/.Main_EBook2: +291ms
    D/dalvikvm( 1574): GC_CONCURRENT freed 389K, 6% free 10239K/10864K, paused 2ms+2ms, total 22ms
    W/System.err(15393): Smooth is not supported by this hardware (or driver)
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    E/MediaPlayer(15393): Should have subtitle controller already set
    D/dalvikvm(15393): GC_CONCURRENT freed 50K, 1% free 9723K/9808K, paused 1ms+1ms, total 11ms
    D/dalvikvm(15393): WAIT_FOR_CONCURRENT_GC blocked 8ms
    D/dalvikvm(15393): GC_CONCURRENT freed 11K, 1% free 10170K/10256K, paused 2ms+1ms, total 12ms
    
Sign In or Register to comment.