RhoEvent fails with Android SDK 16 (4.0.3)

719 views
Skip to first unread message

sgheBret

unread,
Mar 14, 2012, 8:35:14 PM3/14/12
to rhomobile
I was having problems in my app adding events to the local device
calendar with RhoEvent. So I grabbed the latest system-api-samples. It
runs on iOS, but fails on both a Honeycomb and a IceCream Sandwich
device.

This is the error I see on Honeycomb:

I/APP (17962): I 03/14/2012 18:21:44:797 00004663
APP| Rho::Calendar.fetch(params) : {"start_date"=>1900-01-01 00:00:01
UTC, "end_date"=>2100-12-31 23:59:58 UTC, "find_type"=>"starting",
"include_repeating"=>false}
I/APP (17962): I 03/14/2012 18:21:44:803 00004663
EventStore| fetch(start, end), start: 1900-01-01 00:00:01 MST, end:
2100-12-31 23:59:58 MST, includeRepeating: false
I/ActivityManager( 161): Start proc com.android.providers.calendar
for content provider
com.android.providers.calendar/.CalendarProvider2: pid=18901 uid=10041
gids={3003, 1015}
I/ActivityThread(18901): Pub com.android.calendar:
com.android.providers.calendar.CalendarProvider2
E/DatabaseUtils(18901): Writing exception to parcel
E/DatabaseUtils(18901): java.lang.IllegalArgumentException: Invalid
column visibility
E/DatabaseUtils(18901): at
android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQueryBuilder.java:
588)
E/DatabaseUtils(18901): at
android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilder.java:
403)
E/DatabaseUtils(18901): at
android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:
347)
E/DatabaseUtils(18901): at
com.android.providers.calendar.CalendarProvider2.query(CalendarProvider2.java:
995)
E/DatabaseUtils(18901): at
com.android.providers.calendar.CalendarProvider2.query(CalendarProvider2.java:
975)
E/DatabaseUtils(18901): at android.content.ContentProvider
$Transport.query(ContentProvider.java:178)
E/DatabaseUtils(18901): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
112)
E/DatabaseUtils(18901): at android.os.Binder.execTransact(Binder.java:
338)
E/DatabaseUtils(18901): at dalvik.system.NativeStart.run(Native
Method)
I/APP (17962): E 03/14/2012 18:21:44:873 00004663
EventStore| java.lang.IllegalArgumentException: Invalid column
visibility
I/APP (17962): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
165)
I/APP (17962): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
135)
I/APP (17962): at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
358)
I/APP (17962): at
android.content.ContentResolver.query(ContentResolver.java:311)
I/APP (17962): at
com.rhomobile.rhodes.event.EventStore.fetch(EventStore.java:201)
I/APP (17962): at dalvik.system.NativeStart.run(Native Method)
I/APP (17962): I 03/14/2012 18:21:44:874 00004663
APP| App error: Can't fetch events:
I/APP (17962): lib/rho/rhoevent_c.rb:55:in `fetch'
I/APP (17962): lib/rho/rhoevent_c.rb:55:in `find'
I/APP (17962): apps/app/Calendar/controller.rb:12:in
`fetch_events'
I/APP (17962): apps/app/Calendar/controller.rb:33:in `index'
I/APP (17962): lib/rho/rhocontroller.rb:91:in `serve'
I/APP (17962): lib/rho/rhoapplication.rb:226:in `serve'
I/APP (17962): lib/rho/rho.rb:829:in `serve'
I/APP (17962): I 03/14/2012 18:21:44:874 00004663
APP| show error: #<RuntimeError: Can't fetch events: >

For my app when I try to add an Event I get the following error:

I/APP (19515): I 03/14/2012 18:34:01:244 00004c54
EventStore| save(event)
I/APP (19515): I 03/14/2012 18:34:01:253 00004c54
EventStore| Event: id: , title: Setting up a Mobile Connection
Development Environment (HOT) (1307), begin: 2012-03-27 09:00:00 MDT,
end: 2012-03-27 10:00:00 MDT, freq: null, interval: 0, recurrence end:
null, recurrence count: 0, rrule: null
I/APP (19515): I 03/14/2012 18:34:01:261 00004c54
EventStore| Insert new event...
E/DatabaseUtils(19558): Writing exception to parcel
E/DatabaseUtils(19558): java.lang.IllegalArgumentException: Event
values must include an eventTimezone
E/DatabaseUtils(19558): at
com.android.providers.calendar.CalendarProvider2.validateEventData(CalendarProvider2.java:
2452)
E/DatabaseUtils(19558): at
com.android.providers.calendar.CalendarProvider2.insertInTransaction(CalendarProvider2.java:
2059)
E/DatabaseUtils(19558): at
com.android.providers.calendar.SQLiteContentProvider.insert(SQLiteContentProvider.java:
96)
E/DatabaseUtils(19558): at android.content.ContentProvider
$Transport.insert(ContentProvider.java:189)
E/DatabaseUtils(19558): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
152)
E/DatabaseUtils(19558): at android.os.Binder.execTransact(Binder.java:
338)
E/DatabaseUtils(19558): at dalvik.system.NativeStart.run(Native
Method)
I/APP (19515): E 03/14/2012 18:34:01:265 00004c54
EventStore| java.lang.IllegalArgumentException: Event values must
include an eventTimezone
I/APP (19515): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
165)
I/APP (19515): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
135)
I/APP (19515): at
android.content.ContentProviderProxy.insert(ContentProviderNative.java:
415)
I/APP (19515): at
android.content.ContentResolver.insert(ContentResolver.java:730)
I/APP (19515): at
com.rhomobile.rhodes.event.EventStore.save(EventStore.java:347)
I/APP (19515): at dalvik.system.NativeStart.run(Native Method)

Do I need to use a previous Android SDK?

BMWTouring

unread,
May 5, 2012, 8:05:31 AM5/5/12
to rhom...@googlegroups.com
I countered the same problem with my Archos development. Is there some workaround or solution?

BMWTouring

unread,
May 5, 2012, 8:06:08 AM5/5/12
to rhom...@googlegroups.com
I encountered the same problem. Is there a workaround?

awexfwex

unread,
Aug 28, 2012, 1:54:19 AM8/28/12
to rhom...@googlegroups.com
Ok, so I've started on a solution, as I couldn't seem to track anything down on this issue. With the release of Android Ice Cream Sandwich, a public API was finally released for Calendars/Events, as opposed to the undocumented one that lots of people were using, rhomobile included. 

Some changes were made when the public API was released, but I've only found a couple, and I've now got at least some calendar functionality working on a Samsung Galaxy SII running 4.0.3. Haven't come across any errors yet, but I haven't tested it.

Both changes I made to \ruby\lib\ruby\gems\1.9.1\gems\rhodes-x.x.x\platform\android\Rhodes\src\com\rhomobile\rhodes\event\EventStore.java

1st change: The private/public/confidential column name has changed. The old column name was "visibility", the new one is "accessLevel"
Code:
private static final boolean USING_PUBLIC_CALENDAR_API = Build.VERSION.SDK_INT >= 14; // Build.VERSION_CODES.ICE_CREAM_SANDWICH;

...

private static final String EVENTS_PRIVACY = (USING_PUBLIC_CALENDAR_API ? "accessLevel" : "visibility");

2nd change: The public API requires a Timezone when editing/inserting events
Code:
public static String save(Event event) {
 
...
 
// TimeZone is required for version 4.0+
 
if (USING_PUBLIC_CALENDAR_API) {
   java
.util.TimeZone timeZone = java.util.TimeZone.getDefault();
   values
.put(EVENTS_TIMEZONE, timeZone.getID());
 
}
 
...
}

Note that you can update the class a lot more to use the public API, so it'll stay compatible after SDK updates, but I didn't bother, yet. Adding full support for TimeZone, EndTimeZone, and updating the duration calculations would follow, but this is just a starting point.

To rebuild the rhodes gem (caveat: I figured this out through trial and error. I'm not certain this is right/necessary)
1. Open a console window to: \rhostudioinstall\ruby\lib\ruby\gems\x.x.x\gems\rhodes-x.x.x
2. rake gem
3. gem install rhodes-x.x.x.gem

Note this will not update the rhosimulator, so calendars still won't work in that.

Hope this helps someone.

On Monday, August 27, 2012 9:20:13 AM UTC+10, awexfwex wrote:
Old topic, but was there any progress on this, before I go stomping around the framework?

Egghead

unread,
Aug 28, 2012, 3:12:53 AM8/28/12
to rhom...@googlegroups.com
I have Samsung Galaxy SII running 4.0.3 (ICS). On running the system api samples and clicking on Calendar, I get :

E500 error page. Happen when non::Rhom::RecordNotFound exception raised

Can't fetch events:

I'm not sure whether your fix is applicable in my case, but I'll try it out and let you know.

Thanks

Egghead

unread,
Aug 28, 2012, 5:28:16 AM8/28/12
to rhom...@googlegroups.com
I'm not sure where I should keep your Timezone code (I'm not a Java expert). Here's my present EventStore.java snippet :


    public static String save(Event event) {
        String return_id = null;
        try {
            checkCapabilities();
           
            Logger.D(TAG, "save(event)");
           
            ContentValues values = new ContentValues();
            values.put(EVENTS_TITLE, event.title);
           
            if (null != event.startDate) {
                values.put(EVENTS_START_DATE, event.startDate.getTime());
            }
           
            if (null != event.endDate) {
                values.put(EVENTS_END_DATE, event.endDate.getTime());
            }
           
            if (event.location != null) {
                values.put(EVENTS_LOCATION, event.location);
            }

            if (event.notes !=  null) {
                values.put(EVENTS_NOTES, event.notes);
            }

            if (event.privacy != null) {
                int privacy = 0;
                if (event.privacy.equalsIgnoreCase("confidential"))
                    privacy = 1;
                else if (event.privacy.equalsIgnoreCase("private"))
                    privacy = 2;
                else if (event.privacy.equalsIgnoreCase("public"))
                    privacy = 3;
                values.put(EVENTS_PRIVACY, privacy);
            }
           
            if (null != event.frequency && 0 < event.frequency.length()) {
                values.put(EVENTS_RRULE, event.getRrule());
                values.put(EVENTS_DURATION, event.getDuration());
            }

            Logger.D(TAG, "Event: id: " + event.id +
                    ", title: " + event.title +
                    ", begin: " + dateToString(new Date(values.getAsLong(EVENTS_START_DATE).longValue())) +
                    ", end: " + dateToString(new Date(values.getAsLong(EVENTS_END_DATE).longValue())) +
                    ", freq: " + event.frequency +
                    ", interval: " + Integer.toString(event.interval) +
                    ", recurrence end: " + event.recurrenceEnd +
                    ", recurrence count: " + event.recurrenceTimes +
                    ", rrule: " + values.get(EVENTS_RRULE));

            long calendarId = getDefaultCalendarId();
            values.put("calendar_id", calendarId);
           
            ContentResolver r = getContentResolver();
                   
            if (event.id == null || event.id.equalsIgnoreCase("")) {
                Logger.D(TAG, "Insert new event...");
                Uri euri = r.insert(EVENTS_URI, values);
                r.notifyChange(EVENTS_URI, null);
                event.id = Long.toString(ContentUris.parseId(euri));
                Logger.D(TAG, "Event id of event is " + event.id);
                return_id = event.id;
            }
            else {
                return_id = event.id;
                Logger.D(TAG, "Update event...");
                Uri uri = ContentUris.withAppendedId(EVENTS_URI, Long.parseLong(event.id));
                r.update(uri, values, null, null);
                r.notifyChange(EVENTS_URI, null);
                Logger.D(TAG, "Event updated");
            }
        }
        catch (Exception e) {
            Logger.E(TAG, e);
            return null;
        }
        return return_id;
    }

I should also mention that I'm still at Rhodes 3.3.2
Hope you'll help me out. I'd really like to have a go.
Thanks.

Egghead

unread,
Aug 28, 2012, 10:17:00 PM8/28/12
to rhom...@googlegroups.com
¡Bump¡

Anyone?

Egghead

unread,
Aug 28, 2012, 10:17:01 PM8/28/12
to rhom...@googlegroups.com
¡Bump¡

Anyone?

riderj

unread,
Aug 29, 2012, 8:58:48 AM8/29/12
to rhom...@googlegroups.com
Based on the snippet you provided, I would put the timezone code for the save() method after 
 values.put(EVENTS_TITLE, event.title);

Alexey Tikhvinsky

unread,
Aug 29, 2012, 1:06:51 PM8/29/12
to rhom...@googlegroups.com
Currently we working for full Android 4.x compartibility. It will be available in Rhodes 3.5

-alexey 

On Wed, Aug 29, 2012 at 4:58 PM, riderj <ride...@gmail.com> wrote:
Based on the snippet you provided, I would put the timezone code for the save() method after 
 values.put(EVENTS_TITLE, event.title);

--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/0ElKV1HHovgJ.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.



--
-alexey

Egghead

unread,
Aug 29, 2012, 1:15:59 PM8/29/12
to rhom...@googlegroups.com
Ahh! I was wondering whether this was patched in Rhodes 3.4.2

Slightly off topic, but why is there a hardcoded IP Address in Jake.rb? I'm still at 3.3.2, but I suspect it's still there on the latest release

Alexey Tikhvinsky

unread,
Aug 29, 2012, 3:19:21 PM8/29/12
to rhom...@googlegroups.com
Jake.rb is just build and test helper script

On Wed, Aug 29, 2012 at 9:15 PM, Egghead <mark.no...@gmail.com> wrote:
Ahh! I was wondering whether this was patched in Rhodes 3.4.2

Slightly off topic, but why is there a hardcoded IP Address in Jake.rb? I'm still at 3.3.2, but I suspect it's still there on the latest release
--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/eafBU5EhBN0J.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.




--
-alexey

Mark Nongkhlaw

unread,
Aug 29, 2012, 9:44:41 PM8/29/12
to rhom...@googlegroups.com

Maybe, but that hardcoded IP address in there causes a very bad looking socket connection error when no internet connection is there on the Dev box. Isn't it due for a fix too?

Egghead

unread,
Aug 30, 2012, 3:06:26 AM8/30/12
to rhom...@googlegroups.com
@riderj,

Sorry, but I think I did it wrongly. The build generated the below errors. I'm attaching my edited EventStore. java file.
Hope you'll be able to help me out with both the required changes.
Thanks.

CMD: "C:/Program Files/Java/jdk1.7.0_03/bin/javac.exe" -g -d F:/RhoStudio/samples/rhodes-system-api-samples/bin/tmp/Rhodes -source 1.6 -target 1.6 -nowarn -encoding latin1 -classpath "C:/Program Files/Android/android-sdk/platforms/android-15/android.jar;C:/Program Files/Android/android-sdk/add-ons/addon-google_apis-google_inc_-15/libs/maps.jar;F:/RhoStudio/samples/rhodes-system-api-samples/bin/tmp/Rhodes" @C:/DOCUME~1/user/LOCALS~1/Temp/RhodesSRC_build20120830-7528-14jih82-0
platform\android\Rhodes\src\com\rhomobile\rhodes\event\EventStore.java:306: error: cannot find symbol
                    values.put(EVENTS_TIMEZONE, timeZone.getID());
                               ^
  symbol:   variable EVENTS_TIMEZONE
  location: class EventStore
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Error compiling java code
Error in build application
EventStore.java

riderj

unread,
Aug 30, 2012, 9:06:52 AM8/30/12
to rhom...@googlegroups.com
@Egghead,

It looks like @awexfwex forgot to include EVENTS_TIMEZONE in the constants changes.  If you add the following constant to the EventStore class it will fix this error.

private static final String EVENTS_TIMEZONE = "eventTimezone";

Egghead

unread,
Aug 30, 2012, 12:38:55 PM8/30/12
to rhom...@googlegroups.com
Thanks, will try it out tomorrow.

Egghead

unread,
Aug 31, 2012, 2:34:56 AM8/31/12
to rhom...@googlegroups.com
@riderj,

Incorporated that line, it built successfully, but when run on device, it still throws the same error, viz.,

E500 error page. Happen when non::Rhom::RecordNotFound exception raised

Can't fetch events:

I haven't been able to copy the log from device, although I can see some errors in the log. Strange as it may seem, I connected the device to PC and tried to search for *.log, but it couldn't find anything.

Here's my build.yml setting :

  minSDK: 11
  emulator: emulator4.0.3.avd

I ran the same in my Rhosimulator. The app runs, the New Event form loads, when Date/Time picker pops up, and Start/End DateTime chosen, there's no option to save the DateTime. On closing the popup and trying to save the form, the same error shown in red above appears.

Here's my Rhobuild console output :

I 08/31/2012 11:35:36:437 0000180c            RhodesApp| New start params: -approot='F:/RhoStudio/samples/rhodes-system-api-samples' -rhodespath='f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2'
I 08/31/2012 11:35:36:578 0000180c      Rhodes.cpp: 343| Rhodes started
I 08/31/2012 11:35:36:578 000019dc         AppCallbacks| Starting main routine...
I 08/31/2012 11:35:36:578 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:35:36:578 0000180c            RhodesApp| Trying to get free listening port.
I 08/31/2012 11:35:36:593 0000180c            RhodesApp| Trying to bind of 0 port...
I 08/31/2012 11:35:36:593 0000180c            RhodesApp| Got port to bind on: 3304
I 08/31/2012 11:35:36:593 0000180c            RhodesApp| Free listening port: 3304
I 08/31/2012 11:35:38:609 0000180c            RhodesApp| callAppActiveCallback
I 08/31/2012 11:35:38:609 0000180c         AppCallbacks| addCommand: APP-ACTIVATED
I 08/31/2012 11:35:38:656 000019dc         AppCallbacks| Received command APP-ACTIVATED which is greater than expected (LOCAL-SERVER-STARTED) - postpone it
I 08/31/2012 11:35:38:656 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:35:38:703 0000180c         AppCallbacks| addCommand: UI-CREATED
I 08/31/2012 11:35:38:703 00001a80            RhodesApp| Starting RhodesApp main routine...
I 08/31/2012 11:35:38:734 000019dc         AppCallbacks| Received command UI-CREATED which is greater than expected (LOCAL-SERVER-STARTED) - postpone it
I 08/31/2012 11:35:38:734 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:35:38:750 0000180c           MainWindow| navigate: 'about:blank'
I 08/31/2012 11:35:38:750 0000180c           MainWindow| WebView: loading...
I 08/31/2012 11:35:38:750 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 11:35:38:750 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| ClientRegister start
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| Try to register: 1
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| SyncThread is not ready
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| Waiting for 60 sec to try again to register client
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| Try to register: 2
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| SyncThread is not ready
I 08/31/2012 11:35:38:750 00001a50       ClientRegister| Waiting for 60 sec to try again to register client
I 08/31/2012 11:35:40:562 00001a80              RhoRuby| Init_RhoBlobs: F:/RhoStudio/samples/rhodes-system-api-samples/rhosimulator/db/db-files
I 08/31/2012 11:35:40:734 00001a80              RhoRuby| require_compiled: digest
I 08/31/2012 11:35:40:984 00001a80              RhoRuby| require_compiled: rhoframework
I 08/31/2012 11:35:41:046 00001a80              RhoRuby| require_compiled: rational
I 08/31/2012 11:35:41:140 00001a80              RhoRuby| require_compiled: rhom/rhom_db_adapter
I 08/31/2012 11:35:41:171 00001a80              RhoRuby| require_compiled: rhodes
I 08/31/2012 11:35:41:187 00001a80              RhoRuby| require_compiled: rhom/rhom_object
I 08/31/2012 11:35:41:203 00001a80              RhoRuby| require_compiled: rhofsconnector
I 08/31/2012 11:35:41:281 00001a80              RhoRuby| require_compiled: rho/rhofsconnector
I 08/31/2012 11:35:41:328 00001a80              RhoRuby| require_compiled: rhom/rhom_object_factory
I 08/31/2012 11:35:41:484 00001a80              RhoRuby| require_compiled: rhom/rhom
I 08/31/2012 11:35:41:531 00001a80              RhoRuby| require_compiled: rhom/rhom_model
I 08/31/2012 11:35:41:562 00001a80              RhoRuby| require_compiled: rhom
I 08/31/2012 11:35:41:625 00001a80              RhoRuby| require_compiled: rho/rhoapplication
I 08/31/2012 11:35:41:703 00001a80              RhoRuby| require_compiled: rholang/localization_simplified
I 08/31/2012 11:35:41:734 00001a80              RhoRuby| require_compiled: rho/rhomsg
I 08/31/2012 11:35:41:796 00001a80              RhoRuby| require_compiled: rho/rhotabbar
I 08/31/2012 11:35:41:843 00001a80              RhoRuby| require_compiled: rho/rhotoolbar
I 08/31/2012 11:35:41:875 00001a80                  APP| Current locale: ; Country code: 
I 08/31/2012 11:35:41:875 00001a80                  APP| Locilized file: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/lang_
I 08/31/2012 11:35:41:875 00001a80              RhoRuby| require_compiled: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/lang_en
I 08/31/2012 11:35:41:906 00001a80                  APP| Locilized file: F:/RhoStudio/samples/rhodes-system-api-samples/app/lang/lang_
I 08/31/2012 11:35:41:906 00001a80              RhoRuby| require_compiled: F:/RhoStudio/samples/rhodes-system-api-samples/app/lang/lang_en
I 08/31/2012 11:35:41:921 00001a80                  APP| Locilized file: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/rhoerror_
I 08/31/2012 11:35:41:937 00001a80              RhoRuby| require_compiled: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/rhoerror_en
I 08/31/2012 11:35:41:984 00001a80                  APP| Locilized file: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/rhomsg_
I 08/31/2012 11:35:41:984 00001a80              RhoRuby| require_compiled: f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rholang/rhomsg_en
I 08/31/2012 11:35:42:000 00001a80              RhoRuby| require_compiled: indifferent_access
I 08/31/2012 11:35:42:031 00001a80              RhoRuby| require_compiled: rho/rhosupport
I 08/31/2012 11:35:42:062 00001a80              RhoRuby| require_compiled: rho/rhocontroller
I 08/31/2012 11:35:42:093 00001a80              RhoRuby| require_compiled: rho/render
I 08/31/2012 11:35:42:125 00001a80              RhoRuby| require_compiled: rho/rho
I 08/31/2012 11:35:42:218 00001a80              RhoRuby| require_compiled: rho/rhoerror
I 08/31/2012 11:35:42:234 00001a80              RhoRuby| require_compiled: rhom/rhom_source
I 08/31/2012 11:35:42:265 00001a80              RhoRuby| require_compiled: rhodes_translator
I 08/31/2012 11:35:42:265 00001a80              RhoRuby| require_compiled: rhodes_translator/translator
I 08/31/2012 11:35:42:265 00001a80              RhoRuby| require_compiled: rhodes_translator/binding
I 08/31/2012 11:35:42:281 00001a80              RhoRuby| require_compiled: rhodes_translator/validation
I 08/31/2012 11:35:42:281 00001a80              RhoRuby| require_compiled: rho/rhoviewhelpers
I 08/31/2012 11:35:42:312 00001a80              RhoRuby| require_compiled: rho
I 08/31/2012 11:35:42:312 00001a80              RhoRuby| require_compiled: debugger
I 08/31/2012 11:35:42:406 00001a80              RhoRuby| require_compiled: uri
I 08/31/2012 11:35:42:500 00001a80              RhoRuby| require_compiled: uri/common
I 08/31/2012 11:35:42:593 00001a80              RhoRuby| require_compiled: uri/generic
I 08/31/2012 11:35:42:656 00001a80              RhoRuby| require_compiled: uri/ftp
I 08/31/2012 11:35:42:703 00001a80              RhoRuby| require_compiled: uri/http
I 08/31/2012 11:35:42:734 00001a80              RhoRuby| require_compiled: uri/https
I 08/31/2012 11:35:42:750 00001a80              RhoRuby| require_compiled: uri/ldap
I 08/31/2012 11:35:42:750 00001a80              RhoRuby| require_compiled: uri/ldaps
I 08/31/2012 11:35:42:765 00001a80              RhoRuby| require_compiled: uri/mailto
I 08/31/2012 11:35:42:796 00001a80              RhoRuby| require_compiled: timeout
I 08/31/2012 11:35:43:812 00001a80                  APP| [Debugger] Unable to open connection to debugger: #<Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)>
I 08/31/2012 11:35:43:812 00001a80                  APP| RHO loaded
I 08/31/2012 11:35:43:812 00001a80                  APP| Calling RHO.initialize
I 08/31/2012 11:35:43:812 00001a80              RhoRuby| require_compiled: rhoappmanifest
I 08/31/2012 11:35:43:843 00001a80              RhoRuby| require_compiled: find
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: UIFormDemo/u_i_form_demo
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: SignatureUtil/signature_util
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: Metadata/metadata
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: Image/image
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: Blob/blob
I 08/31/2012 11:35:45:562 00001a80                  APP| model file: BarcodeRecognizer/barcode_recognizer
I 08/31/2012 11:35:45:562 00001a80                   DB| Open DB: F:/RhoStudio/samples/rhodes-system-api-samples/rhosimulator/db/syncdbuser.sqlite
I 08/31/2012 11:35:45:937 00001a80          GeoLocation| Creating singleton instance.
I 08/31/2012 11:35:45:937 00001a80            RhodesApp| Starting sync engine...
I 08/31/2012 11:35:45:968 00001a80                 Sync| sync_poll_interval: 0
I 08/31/2012 11:35:45:968 00001a80                 Sync| syncserver: http://rhodes-samples-server.heroku.com/application
I 08/31/2012 11:35:45:968 00001a80                 Sync| bulksync_state: 0
I 08/31/2012 11:35:45:984 00001a80            RhodesApp| RhoRubyInitApp...
I 08/31/2012 11:35:45:984 00001a80                  APP| init_app
I 08/31/2012 11:35:45:984 00001b68                 Sync| Starting main routine...
I 08/31/2012 11:35:45:984 00001a80              RhoRuby| require_compiled: application
I 08/31/2012 11:35:46:015 00001a80                 Sync| Set notification. Source ID: -1;Url :http://127.0.0.1:3304/app/Settings/sync_notify; Params: 
I 08/31/2012 11:35:46:015 00001a80           HttpServer| Start HTTP server
I 08/31/2012 11:35:46:031 00001a80           HttpServer| Listen for connections on port 3304
I 08/31/2012 11:35:46:031 00001a80         AppCallbacks| addCommand: LOCAL-SERVER-STARTED
I 08/31/2012 11:35:46:031 000019dc         AppCallbacks| process command: LOCAL-SERVER-STARTED
I 08/31/2012 11:35:46:031 000019dc  SystemImpl.cpp: 705| rho_sys_report_app_started() has no implementation on Win Mobile.
I 08/31/2012 11:35:46:031 000019dc         AppCallbacks| process command: UI-CREATED
I 08/31/2012 11:35:46:031 000019dc                  Net| Method: GET;Url: http://127.0.0.1:3304/system/uicreated
I 08/31/2012 11:35:46:171 00001b68                 Sync| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:35:49:125 00001a80           HttpServer| Process URI: '/system/uicreated'
I 08/31/2012 11:35:49:125 00001a80                  APP| on_ui_created.navigate to start url: '/app'
I 08/31/2012 11:35:49:125 0000180c           MainWindow| navigate: 'http://127.0.0.1:3304/app'
I 08/31/2012 11:35:49:125 000019dc         AppCallbacks| process command: APP-ACTIVATED
I 08/31/2012 11:35:49:125 000019dc                  Net| Method: GET;Url: http://127.0.0.1:3304/system/activateapp
I 08/31/2012 11:35:49:125 0000180c           MainWindow| WebView: loading...
I 08/31/2012 11:35:49:125 00001a80           HttpServer| Process URI: '/system/activateapp'
I 08/31/2012 11:35:49:125 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:35:49:484 00001a80           HttpServer| Process URI: '/app'
I 08/31/2012 11:35:49:484 00001a80           HttpServer| Process URI: '/app/index.erb'
I 08/31/2012 11:35:49:484 00001a80                  APP| RHO serve_index: /app/index.erb
I 08/31/2012 11:35:49:484 00001a80 RHO Rho::RhoController| inst_render_index
I 08/31/2012 11:35:49:484 00001a80              RhoRuby| require_compiled: erb
I 08/31/2012 11:35:49:531 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/index.erb
I 08/31/2012 11:35:49:640 00001a80 RHO Rho::RhoController| index layout
I 08/31/2012 11:35:49:640 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/layout.erb
I 08/31/2012 11:35:49:671 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'back'
I 08/31/2012 11:35:49:687 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'forward'
I 08/31/2012 11:35:49:703 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'separator'
I 08/31/2012 11:35:49:703 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'home'
I 08/31/2012 11:35:49:703 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'refresh'
I 08/31/2012 11:35:49:703 0000180c           MainWindow| addToolbarButton: Label: '';Action: 'options'
I 08/31/2012 11:35:49:968 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 11:35:50:484 00001a80           HttpServer| Process URI: '/public/css/android.css'
I 08/31/2012 11:35:50:609 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 11:36:38:750 00001a50       ClientRegister| Try to register: 3
I 08/31/2012 11:36:38:750 00001a50       ClientRegister| Session is empty, do register later
I 08/31/2012 11:36:38:750 00001a50       ClientRegister| Waiting for 4294967295 sec to try again to register client
I 08/31/2012 11:36:52:515 0000180c            RhodesApp| callAppActiveCallback
I 08/31/2012 11:36:52:515 0000180c         AppCallbacks| addCommand: APP-DEACTIVATED
I 08/31/2012 11:36:52:515 0000180c                  Net| Method: GET;Url: http://127.0.0.1:3304/system/deactivateapp
I 08/31/2012 11:36:52:515 000019dc         AppCallbacks| process command: APP-DEACTIVATED
I 08/31/2012 11:36:52:515 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 11:36:52:515 00001a80           HttpServer| Process URI: '/system/deactivateapp'
I 08/31/2012 12:00:55:859 0000180c            RhodesApp| callAppActiveCallback
I 08/31/2012 12:00:56:156 0000180c         AppCallbacks| addCommand: APP-ACTIVATED
I 08/31/2012 12:00:56:187 000019dc         AppCallbacks| process command: APP-ACTIVATED
I 08/31/2012 12:00:56:250 000019dc                  Net| Method: GET;Url: http://127.0.0.1:3304/system/activateapp
I 08/31/2012 12:00:56:953 00001a80           HttpServer| Process URI: '/system/activateapp'
I 08/31/2012 12:00:58:093 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 12:01:02:734 0000180c           MainWindow| WebView: loading...
I 08/31/2012 12:01:02:968 00001a80           HttpServer| Process URI: '/app/Calendar'
I 08/31/2012 12:01:03:062 00001a80                  APP| RHO serve: /app/Calendar
I 08/31/2012 12:01:03:156 00001a80              RhoRuby| require_compiled: Calendar/controller
I 08/31/2012 12:01:03:421 00001a80              RhoRuby| require_compiled: rho/rhoevent
I 08/31/2012 12:01:03:484 00001a80              RhoRuby| require_compiled: bsearch
I 08/31/2012 12:01:03:531 00001a80              RhoRuby| require_compiled: time
I 08/31/2012 12:01:03:609 00001a80              RhoRuby| require_compiled: date/format
I 08/31/2012 12:01:03:718 00001a80              RhoRuby| require_compiled: rho/rhoevent_c
I 08/31/2012 12:01:03:796 00001a80                  APP| Event find params: {:start_date=>1900-01-01 00:00:01 UTC, :end_date=>2100-12-31 23:59:58 UTC, :find_type=>"starting", :include_repeating=>false}
I 08/31/2012 12:01:03:796 00001a80                  APP| start_date => 1900-01-01 00:00:01 UTC
I 08/31/2012 12:01:03:796 00001a80                  APP| end_date => 2100-12-31 23:59:58 UTC
I 08/31/2012 12:01:03:796 00001a80                  APP| find_type => starting
I 08/31/2012 12:01:03:796 00001a80                  APP| include_repeating => false
I 08/31/2012 12:01:03:796 00001a80                  APP| Rho::Calendar.fetch(params) : {"start_date"=>1900-01-01 00:00:01 UTC, "end_date"=>2100-12-31 23:59:58 UTC, "find_type"=>"starting", "include_repeating"=>false}
I 08/31/2012 12:01:03:796 00001a80                  APP| events : []
I 08/31/2012 12:01:03:796 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/index.erb
I 08/31/2012 12:01:03:812 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb
I 08/31/2012 12:01:03:828 00001a80 RHO CalendarController| Layout file: F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb. Content size: 637
I 08/31/2012 12:01:04:265 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 12:01:04:531 00001a80           HttpServer| Process URI: '/public/jquery/jquery-1.6.4.min.js'
I 08/31/2012 12:01:05:921 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 12:01:08:968 0000180c           MainWindow| WebView: loading...
I 08/31/2012 12:01:08:968 00001a80           HttpServer| Process URI: '/app/Calendar/new'
I 08/31/2012 12:01:08:968 00001a80                  APP| RHO serve: /app/Calendar/new
I 08/31/2012 12:01:08:968 00001a80                  APP| create event
I 08/31/2012 12:01:08:968 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/edit.erb
I 08/31/2012 12:01:09:046 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb
I 08/31/2012 12:01:09:046 00001a80 RHO CalendarController| Layout file: F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb. Content size: 3197
I 08/31/2012 12:01:09:046 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 12:01:09:046 00001a80           HttpServer| Process URI: '/public/jquery/jquery-1.6.4.min.js'
I 08/31/2012 12:01:09:343 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 12:01:18:234 00001a80           HttpServer| Process URI: '/app/Calendar/date_popup'
I 08/31/2012 12:01:18:234 00001a80                  APP| RHO serve: /app/Calendar/date_popup
I 08/31/2012 12:01:18:234 00001a80                  APP| Params: {"title"=>"Choose Start Date", "field_key"=>"start_date"}
I 08/31/2012 12:01:18:234 00001a80 DateTimePicker.cpp: 270| choose_datetime_with_rangecallback = /app/Calendar/date_callback title = Choose Start Date
I 08/31/2012 12:01:28:031 0000180c                  Net| Method: POST;Url: http://127.0.0.1:3304/app/Calendar/date_callback
I 08/31/2012 12:01:28:031 00001a80           HttpServer| Process URI: '/app/Calendar/date_callback'
I 08/31/2012 12:01:28:031 00001a80                  APP| RHO serve: /app/Calendar/date_callback
I 08/31/2012 12:01:28:031 00001a80                  APP| Params: {"status"=>"cancel", "message"=>"User canceled operation.", "opaque"=>"\x04\b\"\x0Fstart_date", "rho_callback"=>"1"}
I 08/31/2012 12:01:29:921 00001a80           HttpServer| Process URI: '/app/Calendar/date_popup'
I 08/31/2012 12:01:29:921 00001a80                  APP| RHO serve: /app/Calendar/date_popup
I 08/31/2012 12:01:29:921 00001a80                  APP| Params: {"title"=>"Choose Start Date", "field_key"=>"start_date"}
I 08/31/2012 12:01:29:921 00001a80 DateTimePicker.cpp: 270| choose_datetime_with_rangecallback = /app/Calendar/date_callback title = Choose Start Date
I 08/31/2012 12:01:36:265 0000180c                  Net| Method: POST;Url: http://127.0.0.1:3304/app/Calendar/date_callback
I 08/31/2012 12:01:36:265 00001a80           HttpServer| Process URI: '/app/Calendar/date_callback'
I 08/31/2012 12:01:36:265 00001a80                  APP| RHO serve: /app/Calendar/date_callback
I 08/31/2012 12:01:36:265 00001a80                  APP| Params: {"status"=>"cancel", "message"=>"User canceled operation.", "opaque"=>"\x04\b\"\x0Fstart_date", "rho_callback"=>"1"}
I 08/31/2012 12:01:37:359 00001a80           HttpServer| Process URI: '/app/Calendar/date_popup'
I 08/31/2012 12:01:37:359 00001a80                  APP| RHO serve: /app/Calendar/date_popup
I 08/31/2012 12:01:37:359 00001a80                  APP| Params: {"title"=>"Choose End Date", "field_key"=>"end_date"}
I 08/31/2012 12:01:37:359 00001a80 DateTimePicker.cpp: 270| choose_datetime_with_rangecallback = /app/Calendar/date_callback title = Choose End Date
I 08/31/2012 12:01:41:406 0000180c                  Net| Method: POST;Url: http://127.0.0.1:3304/app/Calendar/date_callback
I 08/31/2012 12:01:41:406 00001a80           HttpServer| Process URI: '/app/Calendar/date_callback'
I 08/31/2012 12:01:41:406 00001a80                  APP| RHO serve: /app/Calendar/date_callback
I 08/31/2012 12:01:41:406 00001a80                  APP| Params: {"status"=>"cancel", "message"=>"User canceled operation.", "opaque"=>"\x04\b\"\rend_date", "rho_callback"=>"1"}
I 08/31/2012 12:01:57:984 0000180c           MainWindow| WebView: loading...
I 08/31/2012 12:01:58:000 00001a80           HttpServer| Process URI: '/app/Calendar/save'
I 08/31/2012 12:01:58:000 00001a80                  APP| RHO serve: /app/Calendar/save
I 08/31/2012 12:01:58:015 00001a80                  APP| Params: {"event"=>{"id"=>"", "title"=>"Test", "start_date"=>"", "end_date"=>"", "location"=>"Test", "notes"=>"Test", "privacy"=>"", "reminder"=>"Test"}, "frequency"=>"daily", "interval"=>"", "recurrence_end"=>"", "recurrence_times"=>""}
I 08/31/2012 12:01:58:015 00001a80                  APP| event: {"id"=>"", "title"=>"Test", "start_date"=>"", "end_date"=>nil, "location"=>"Test", "notes"=>"Test", "privacy"=>"", "reminder"=>"Test"}
I 08/31/2012 12:01:58:015 00001a80                  APP| App error: can't convert nil into String
 F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/controller.rb:71:in `+'
F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/controller.rb:71:in `save'
f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rho/rhocontroller.rb:91:in `serve'
f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rho/rhoapplication.rb:226:in `serve'
f:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.2/lib/framework/rho/rho.rb:829:in `serve'
I 08/31/2012 12:01:58:015 00001a80                  APP| show error: #<TypeError: can't convert nil into String>
I 08/31/2012 12:01:58:015 00001a80 RHO Rho::RhoController| inst_render_index
I 08/31/2012 12:01:58:015 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/E500.erb
I 08/31/2012 12:01:58:015 00001a80 RHO Rho::RhoController| index layout
I 08/31/2012 12:01:58:015 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/layout.erb
I 08/31/2012 12:01:58:062 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 12:01:58:062 00001a80           HttpServer| Process URI: '/public/css/android.css'
I 08/31/2012 12:01:58:203 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 12:02:05:921 0000180c           MainWindow| back
I 08/31/2012 12:02:05:921 0000180c           MainWindow| WebView: loading...
I 08/31/2012 12:02:05:921 00001a80           HttpServer| Process URI: '/app/Calendar/new'
I 08/31/2012 12:02:05:921 00001a80                  APP| RHO serve: /app/Calendar/new
I 08/31/2012 12:02:05:921 00001a80                  APP| create event
I 08/31/2012 12:02:05:937 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/edit.erb
I 08/31/2012 12:02:05:937 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb
I 08/31/2012 12:02:05:937 00001a80 RHO CalendarController| Layout file: F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb. Content size: 3197
I 08/31/2012 12:02:05:937 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 12:02:06:015 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 12:02:23:546 0000180c           MainWindow| WebView: loading...
I 08/31/2012 12:02:23:546 00001a80           HttpServer| Process URI: '/app/Calendar'
I 08/31/2012 12:02:23:546 00001a80                  APP| RHO serve: /app/Calendar
I 08/31/2012 12:02:23:546 00001a80                  APP| Event find params: {:start_date=>1900-01-01 00:00:01 UTC, :end_date=>2100-12-31 23:59:58 UTC, :find_type=>"starting", :include_repeating=>false}
I 08/31/2012 12:02:23:546 00001a80                  APP| start_date => 1900-01-01 00:00:01 UTC
I 08/31/2012 12:02:23:546 00001a80                  APP| end_date => 2100-12-31 23:59:58 UTC
I 08/31/2012 12:02:23:546 00001a80                  APP| find_type => starting
I 08/31/2012 12:02:23:546 00001a80                  APP| include_repeating => false
I 08/31/2012 12:02:23:546 00001a80                  APP| Rho::Calendar.fetch(params) : {"start_date"=>1900-01-01 00:00:01 UTC, "end_date"=>2100-12-31 23:59:58 UTC, "find_type"=>"starting", "include_repeating"=>false}
I 08/31/2012 12:02:23:546 00001a80                  APP| events : []
I 08/31/2012 12:02:23:546 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/index.erb
I 08/31/2012 12:02:23:546 00001a80                  APP| eval_compiled_file : F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb
I 08/31/2012 12:02:23:546 00001a80 RHO CalendarController| Layout file: F:/RhoStudio/samples/rhodes-system-api-samples/app/Calendar/layout.erb. Content size: 637
I 08/31/2012 12:02:23:546 0000180c           MainWindow| WebView: URL changed
I 08/31/2012 12:02:23:609 0000180c           MainWindow| WebView: loaded 
I 08/31/2012 12:02:26:171 0000180c            RhodesApp| callAppActiveCallback
I 08/31/2012 12:02:26:171 0000180c         AppCallbacks| addCommand: APP-DEACTIVATED
I 08/31/2012 12:02:26:171 0000180c                  Net| Method: GET;Url: http://127.0.0.1:3304/system/deactivateapp
I 08/31/2012 12:02:26:171 000019dc         AppCallbacks| process command: APP-DEACTIVATED
I 08/31/2012 12:02:26:171 000019dc         AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 08/31/2012 12:02:26:171 00001a80           HttpServer| Process URI: '/system/deactivateapp'
I 08/31/2012 12:02:26:218 00001a50       ClientRegister| ClientRegister thread shutdown
I 08/31/2012 12:02:26:218 0000180c                  Net| Method: GET;Url: http://127.0.0.1:3304/system/uidestroyed
I 08/31/2012 12:02:26:218 00001a80           HttpServer| Process URI: '/system/uidestroyed'
I 08/31/2012 12:02:26:234 000019dc         AppCallbacks| Thread shutdown
I 08/31/2012 12:02:26:234 0000180c           HttpServer| Stopping server...
I 08/31/2012 12:02:26:234 00001a80            RhodesApp| RhodesApp thread shutdown
I 08/31/2012 12:02:26:234 00001a80          GeoLocation| Destroying singleton instance.
I 08/31/2012 12:02:26:265 00001b68                 Sync| Thread shutdown
I 08/31/2012 12:02:26:296 00001a80                  APP| at_exit

riderj

unread,
Aug 31, 2012, 10:51:21 AM8/31/12
to rhom...@googlegroups.com
The fix listed above will only work for an Android device or emulator, not for RhoSimulator.  I would use the DDMS (android-sdk/tools/ddms.bat) tool to see the Android log to see if there is another error occurring.  I got the sample to work on an ICS emulator except for saving an event because there were no calendars on the emulator to save to.

Egghead

unread,
Aug 31, 2012, 1:43:48 PM8/31/12
to rhom...@googlegroups.com
DDMS, eh? Is that to be used against the simulator or the device itself? I really hate the simulator, it takes too long to load.

Funny, but I remember my very first post in this group was a query on how to locate the SQLite database on the device, and I haven't found the answer to that one yet :(

Will DDMS help me in that also ?

Alexey Tikhvinsky

unread,
Sep 5, 2012, 7:51:53 AM9/5/12
to rhom...@googlegroups.com
Hi guys,

We are planned to implement Android 4.x support (Public Calendar API as part of it) in next release. Sorry for long time to wait, our team has much work with Motorola now.

-alexey

--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rhomobile/-/Q8NqoENFq6wJ.

To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.




--
-alexey

awexfwex

unread,
Sep 5, 2012, 10:34:57 PM9/5/12
to rhom...@googlegroups.com
Yes, sorry, I forgot to include that line. I would've posted my entire EventStore and Event classes, but I'd already heavily modified them to include reminders. I didn't want to post that code, because it's far from ideal (only allows 1 reminder per event, for instance). 

@Egghead: Some things that might be effecting your testing:
- You can't do much without your log. Use adb logcat
- Your device might not have a calendar provider set.
- You might try making sure that all your event variables are set. It looks like you haven't set either a start or finish date for your event in the log below:
APP| event: {"id"=>"", "title"=>"Test", "start_date"=>"", "end_date"=>nil, "location"=>"Test", "notes"=>"Test", "privacy"=>"", "reminder"=>"Test"}
I 08/31/2012 12:01:58:015 00001a80                  APP| App error: can't convert nil into String

Egghead

unread,
Sep 6, 2012, 12:06:42 PM9/6/12
to rhom...@googlegroups.com
@awexfwex, I already mentioned I cannot save the new event form in Rhosimulator, and that log was pertaining to it. Now I'm searching for the log file on my physical device, strange, why and where is it hiding? I connect my device to PC and used the PC to search for *.log on device, but nothing found. Any tips on how to search files in an Android phone?

Tried running the same app in my win mobile, strange, only October pops up, other months cannot be selected, and therefore an event entered in the phones native app (which came bundled with the phone), in say, September, cannot be picked up by the API sample app, and I tried to do the same for October, but the API Sample app crashes when the relevant day in October is chosen.

Reply all
Reply to author
Forward
0 new messages