Hi everyone! I'm struggling to make my scaleform for Android to work.
I can build and install in device and in emulator from command line and via the deployer app.
Everything allright til here:
When I try to run depApp (just loads one of the sample swf's )in the emulator it simply crashes, maybe some misconfiguration in it:
03-21 16:25:08.020: I/ActivityManager(387): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.scaleform.depApp/.MainActivity} from pid 712 03-21 16:25:08.110: E/gralloc_goldfish(52): gralloc_alloc: Mismatched usage flags: 246 x 410, usage 333 03-21 16:25:08.110: W/GraphicBufferAllocator(52): alloc(246, 410, 1, 00000333, ...) failed -22 (Invalid argument) 03-21 16:25:08.110: E/(52): GraphicBufferAlloc::createGraphicBuffer(w=246, h=410) failed (Invalid argument), handle=0x0 03-21 16:25:08.120: E/BufferQueue(387): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed 03-21 16:25:08.150: W/WindowManager(387): Screenshot failure taking screenshot for (246x410) to layer 21005 03-21 16:25:08.390: I/ActivityManager(387): Start proc com.scaleform.depApp for activity com.scaleform.depApp/.MainActivity: pid=1095 uid=10052 gids={50052, 3003} 03-21 16:25:09.180: D/dalvikvm(1095): Trying to load lib /data/app-lib/com.scaleform.depApp-1/libfmodex.so 0xb3d917e8 03-21 16:25:09.200: D/dalvikvm(1095): Added shared lib /data/app-lib/com.scaleform.depApp-1/libfmodex.so 0xb3d917e8 03-21 16:25:09.200: D/dalvikvm(1095): No JNI_OnLoad found in /data/app-lib/com.scaleform.depApp-1/libfmodex.so 0xb3d917e8, skipping init 03-21 16:25:09.210: D/dalvikvm(1095): Trying to load lib /data/app-lib/com.scaleform.depApp-1/libdepApp.so 0xb3d917e8 03-21 16:25:09.290: D/dalvikvm(1095): Added shared lib /data/app-lib/com.scaleform.depApp-1/libdepApp.so 0xb3d917e8 03-21 16:25:09.610: D/(1095): HostConnection::get() New Host Connection established 0xb71b4cb0, tid 1095 03-21 16:25:09.720: W/EGL_emulation(1095): eglSurfaceAttrib not implemented 03-21 16:25:09.740: D/OpenGLRenderer(1095): Enabling debug mode 0 03-21 16:25:09.850: D/(1095): HostConnection::get() New Host Connection established 0xb71b8a38, tid 1110 03-21 16:25:10.380: I/ActivityManager(387): Displayed com.scaleform.depApp/.MainActivity: +2s44ms 03-21 16:25:10.440: I/fmod(1095): FMOD: AudioDevice::run : Min buffer size: 4456 bytes 03-21 16:25:10.440: I/fmod(1095): FMOD: AudioDevice::run : Actual buffer size: 16384 bytes 03-21 16:25:11.220: D/MobileDataStateTracker(387): default: setPolicyDataEnable(enabled=true) 03-21 16:25:11.640: E/dalvikvm(1095): JNI ERROR (app bug): accessed stale local reference 0xb6b00025 (index 9 in a table of size 0) 03-21 16:25:11.650: W/dalvikvm(1095): JNI WARNING: jclass is an invalid local reference (0xb6b00025) (GetMethodID) 03-21 16:25:11.660: W/dalvikvm(1095): in Ldalvik/system/NativeStart;.run:()V (GetMethodID) 03-21 16:25:11.660: I/dalvikvm(1095): "Thread-87" prio=5 tid=14 RUNNABLE 03-21 16:25:11.660: I/dalvikvm(1095): | group="main" sCount=0 dsCount=0 obj=0xb3da42a0 self=0xb724ed28 03-21 16:25:11.670: I/dalvikvm(1095): | sysTid=1108 nice=0 sched=0/0 cgrp=apps handle=-1223186584 03-21 16:25:11.670: I/dalvikvm(1095): | state=R schedstat=( 250000000 600000000 58 ) utm=24 stm=1 core=0 03-21 16:25:11.670: I/dalvikvm(1095): at dalvik.system.NativeStart.run(Native Method) 03-21 16:25:11.670: E/dalvikvm(1095): VM aborting 03-21 16:25:11.670: A/libc(1095): Fatal signal 6 (SIGABRT) at 0x00000447 (code=-6), thread 1108 (caleform.depApp) 03-21 16:25:12.190: I/DEBUG(50): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 03-21 16:25:12.190: I/DEBUG(50): Build fingerprint: 'generic/sdk/generic:4.4.2/KK/938007:eng/test-keys' 03-21 16:25:12.190: I/DEBUG(50): Revision: '0' 03-21 16:25:12.210: I/DEBUG(50): pid: 1095, tid: 1108, name: caleform.depApp >>> com.scaleform.depApp <<< 03-21 16:25:12.210: I/DEBUG(50): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
BUT
When I run it in my device, a black screen appears reading "Failed to open the licence file. Please see the readme for licensing instructions, Error: 101", which is really weird because I have my sf_consumer_license_android_mobile.txt file with my licence in the bin folder, and I added it's path in the resources part of the app's .def file.
Am I missing something obvious? Why the errors and why diferent behaviours in emulator and device?
I would really appreciate your help, thanks in advance,
Pedro
PS: Scaleform 4.2.24 instalation, Android sdk level 19, ndk r8e on windows 7 64 bit OS
Hi again, is anyone there? Am I asking in the wrong place?
Sorry for bothering you, but can someone help me here?
I have my perpetual licence and I can't make any demo or example to work!
Am I missing something? Is any newer version other than mine? (4.2.24). I read sth about 4.3 but can't find where to download it.
This is my .def file, I've added the path to my licence file as per the readme:
# This file defines an app based on FxShippingPlayer. The files that normally need to be changed # will go in a directory named after this file in LocalApps. Each supported mobile platform will # have its own icons and manifest. The Flash content and other resources are shared. # # Run make for the desired platforms once to setup the app. # # On Android, build the app by running make after making your changes. # On iOS, an Xcode project will be created. Use this project to build and deploy the app; make does not # actually build these apps. # The display name of your app (visible to users) DISPLAY_NAME := Dep App # The package prefix. Often a reverse URL. # If the package prefix is com.scaleform, then the # Android package will be: com.scaleform.<APP_NAME> # Android main activity will be: com.scaleform.<APP_NAME>.MainActivity PACKAGE := com.scaleform # The Flash file to load at startup. This will be copied to flash.swf in this App's development # directory (only during setup for iOS). STARTUP_FLASH := Bin/Data/AS3/Samples/3DSquares.swf # Other files needed by the app (extra swfs, image files, etc.) # If the file list is too long for one line, you can put a backslash, followed immediately by a return (newline) # List every individual file explicitly or include an entire directory by listing it with no trailing slash # (See StarforceTD.def for an example of multiple files with directories) RESOURCES := Bin/sf_consumer_license_android_mobile.txt # List the orientations that the app will use. If only one is specified then the user cannot # rotate the app. If none are specified then the behavior is arbitrary (normally based on sensor). # If more than one is specified some platforms may allow any supported orientation, not just those in the list. #ORIENTATIONS := portrait landscape reversePortrait reverseLandscape ORIENTATIONS := portrait landscape reversePortrait reverseLandscape # EdgeAA (0: off; 1: on) EDGEAA := 1 # # Online Game System (GameKit: Use Game Center; blank: Don't Use Game Center) ONLINE_GAME_SYSTEM := # FMOD Sound support USE_FMOD := 0 # # Android Deployment # Uncomment to automatically install on all connected devices (only when something was just built) AUTODEPLOY := 1 # Uncomment to automatically launch the app after installing AUTORUN := 1
Thank you!
Hi, I got it running today, only on my device, but ONLY if my sf_consumer_license_android_mobile.txt is on the root of the sdcard.
If I remove I get the black screen reading: "Failed to open the license file. Please see the readme for licensing instructions. Error: 101"
Why is that happening if I have the file path included in my RESOURCES part of the .def???
This should be an easy question for you, could you please help me?
Thank you
Go to [scaleform_sdk_folder]/Src/Platform/Platform_Android.h
and look for "GFx_SetEvalKey"
Uncomment and put your license code there.
regards.