Hi, Which device / platform are you developing on?
On windows 7 32-bit using Eclipse w/ JDK 1.6.0_32 developing for Android HTC Incredible OS v2.2 (level 8).
Hi Darryn -
Thanks for the clues.
The remote object (logging text file) does not exist. I can't seem to get this to be created regardless of my settings in the rhoconfig file.
# Rhodes log properties
# log level
# 0-trace, 1-info(app level), 3-warnings, 4-errors
# for production set to 3
MinSeverity = 1
# enable copy log messages to standard output, useful for debugging
LogToOutput = 1
# '*' means all categories, otherwise list them : Cat1, Cat2
LogCategories = *
# what categories to exclude
# max log file size in Bytes, set 0 to unlimited size; when limit is reached, log wraps to beginning of file
Output from the rake pull of the log from the device...
c:\Users\Musiplicity WinDev\Documents\Dutchbulb\Dutchbulb>rake device:android:getlog
$app_config['extensions'] : ["json", "another-extension"]
$app_config['capabilities'] : ["gps"]
$vendor = rhomobile >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$app_package_name = com.rhomobile.dutchbulb >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
NDK sysroot: C:/Android/android-ndk-r8/platforms/android-9/arch-arm
CMD: C:/Android/android-sdks/platform-tools/adb.exe -d pull /data/data/com.rhomobile.dutchbulb/rhodata/RhoLog.txt "c:/Users/Musiplicity WinDev/Documents/Dutchbulb/Dutchbulb"
remote object '/data/data/com.rhomobile.dutchbulb/rhodata/RhoLog.txt' does not exist
RhoLog.txt stored to c:/Users/Musiplicity WinDev/Documents/Dutchbulb/Dutchbulb
Any other clues?
hmmm... I've never used the product on Android so I'm not the expert... but I thought the log should also be output to logcat, do you see anything at logcat?.
To see all the device messages, run
adb -d logcatand start the application on your device.
I see a ton of output but NOT my asterisk lines:
puts "************* STORELOCATIONS **************" app_info "*** STORE LOCATIONS ***"
...and yes, this section of code is being hit.
1 of 1 people found this helpful
Can you try app_error in place of app_info?
OK, that is bizarre. I am doing this in the code...
puts "************* STORELOCATIONS **************" app_info "*** STORE LOCATIONS ***" app_error "*** SL error ***"
And now I am getting ALL THREE lines of logging output!!!
I/APP (18659): I 06/08/2012 16:59:23:959 00004911 APP| ************* STORELOCATIONS ************** I/APP (18659): I 06/08/2012 16:59:23:959 00004911 APP StoresController| *** STORE LOCATIONS *** I/APP (18659): E 06/08/2012 16:59:23:960 00004911 APP StoresController| *** SL error ***
Baffling, but at least I'm getting somewhere. I wonder if I can take out the app_error now and still see my app_info output.
Could adding in app_error have triggered something in the build process? Turning on a config flag possibly? I've been trying to get those other 2 lines to show up for the past 27 builds!
Either way I can at least get output now, thanks!
Sounds like this may be a bug. Thanks for troubleshooting and providing the details. I will alert the team on the issue.
I am not getting output with just app_info()
However I am new to Eclipse, Ruby, and Rhostudio so it is possible this was coming out in the log before but I simply wasn't finding it. Though a routine ^f search in the console window was not locating the output, which is fairly rudimentary IDE/debug process stuff.
Thanks again for your help, Rob.
I'm really liking what I see with Rho* over any other cross-platform mobile frameworks. It is MUCH faster than anything else we've used even though the underlying principles and concepts are the same.
Phonegap + JQM, for example, is VERY laggy on the Android UI. Rhomobile, same technique is MUCH more responsive. The bytecode engine seems to be very well done. If this passes the litmus test with the GPS Droid/IOS apps we will be launching some very prominent services based on the platform by end-of-summer.
Looks promising. I'm hoping to be giving the entire Rho team props in my annual "state of mobile development" presentation this October.
Can you send sample application to reproduce the issue?
Let me know what you need. Just the contents of the project directory for Eclipse? Anything from the Rhostudio install directory?
Also, the issue is resolved at this point. I added app_error, ran, got ALL my debug ouput, removed app_error and still get my app_info output.
It is possible, though unlikely, I just missed the output before. I'd hate to have people chasing down a non-issue.
Zip application folder without bin and rhosimulator folder