Tonton MyTV dilengkapi intisari rancangan pada smart TV bermula RM4.99 sebulan. Selanjutnya →

Oktober 2013

Logcat

29 September 2013, 11:52 am

Ahad, 29 September 2013, 11:52 am0 To use logcat to debug Android app Install Android SDK Add c:Androidandroid-sdkplatform-toolsadb.exe to PATH Command: get list of connected devices, will return device serial number adb devices filter logcat by tag (e.g by “TiAPI” tag) adb -s <DEVICE_SERIAL_NUM> "TiAPI" September 2013ShareTweetSaveSendCopy

Load nib file in Titanium module iOS

29 September 2013, 11:37 am

Ahad, 29 September 2013, 11:37 am0 When creating Titanium module for iOS platform, sometimes we need to include xib (NeXT Interface Builder) file. But if we include the file just like that, then we will face this error Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/username/Library/Application Support/iPhone […]

Enable x86 libs in production build Titanium app

29 September 2013, 10:36 am

Ahad, 29 September 2013, 10:36 am0 In Titanium studio when we build an apk for production, it doesn’t include x86 libs which cause this exception occur on users device, and the app force close immediately after launch: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null; There’s a line of code in Titanium build script build.py […]

Titanium iOS "build" is an unrecognized command

18 September 2013, 12:38 pm

Rabu, 18 September 2013, 12:38 pm0 Was trying to build an iOS app using sdk 3.1.2 but got this error. [ERROR] "build" is an unrecognized command When running titanium build command on the project folder, I realize that only Titanium CLI was updated to version 3.1.2 while its SDK still in 3.1.1 Updating the SDK […]

Indirect code execution flow

12 September 2013, 12:32 pm

Khamis, 12 September 2013, 12:32 pm0 Intro: we have an Android app, with typical main and detail window structure. Let’s see this situation: when user tap a button on main window and then open a detail window, later when user closes the detail window, it needs to update the main window UI. Here, we have […]