User Profile & Activity

Max Riffel Member
Page
of 2
Posted: January 20, 2015 7:38 AM
ty :)
Posted: January 20, 2015 7:37 AM
Ty
Posted: January 16, 2015 7:52 AM
Ty, I will try it. BG
Posted: January 6, 2015 4:23 PM
Thx, works now.
Posted: January 6, 2015 11:48 AM
If this.IncrementalLoadingSize  is set to 20, the list will load only first 20 items? I thought it loads every time new 20 items from the database, when I scroll to the end of the list. But it does not. So I put the LoadingSize to 0. The app loads all items in the list now. If I scroll down to the end now, the app produce the infinite loop I described before. While these loop runs, I cant delete, edit and mark last items. Well, same problem :P
Posted: January 2, 2015 9:28 AM

ty, this was an failure too :P

It works now. But if I scroll down to the end in the Inventory List, the Debbuger will show me the whole time this line. 

01-02 10:12:42.677 W/View    (10523): requestLayout() improperly called by android.widget.LinearLayout{2b71ff5 V.E..... ......ID 0,0-768,38} during second layout pass: posting in next frame

Looks like infinite loop. Calls whole time the OnDataLoaded method. What does it mean? I also cant delete, edit and mark last 3 items on Android (when I scroll to the end). If I try to change the page, for example: 'I navigate to the about page' , the application will crash.

01-02 10:22:59.769 E/mono    (10523): Parameter name: jobject01-02 10:22:59.769 E/mono    (10523):   at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:867 01-02 10:22:59.769 E/mono    (10523):   at Android.Widget.BaseAdapter.NotifyDataSetChanged () [0x00058] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Widget.BaseAdapter.cs:311 
01-02 10:22:59.770 E/mono-rt (10523):   at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/54741201-02 10:22:59.769 E/mono    (10523):   at Intersoft.Crosslight.Android.ObservableListAdapter.<>n__FabricatedMethod7 () [0x00000] in <filename unknown>:0 
01-02 10:22:59.769 E/mono    (10523):   at Intersoft.Crosslight.Android.ObservableListAdapter.<NotifyDataSetChanged>b__6 () [0x00000] in <filename unknown>:0 
01-02 10:22:59.769 E/mono    (10523):   at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36 
01-02 10:22:59.769 E/mono    (10523):   at Java.Lang.IRunnableInvoker.n_Run (IntPtr jnienv, IntPtr native__this) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/5474129a/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Java.Lang.IRunnable.cs:71 
01-02 10:22:59.769 E/mono    (10523):   at (wrapper dynamic-method) object:7b2e84fb-f952-4980-97ed-af389323bbb0 (intptr,intptr)
01-02 10:22:59.770 E/mono-rt (10523): [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: 'jobject' must not be IntPtr.Zero.

Problem with the bindings? Like here:
Stackoverflow IntPtr.Zero

Best regards


Posted: December 23, 2014 1:30 PM
Can other people login with their Facebook account in your sample? In my sample I can login on Android, but no one else. If someone try to login, the app will say the person need a developer Facebook account. My sample app is the current Business Startup App from Crosslight Wizard too.
Posted: December 19, 2014 10:15 AM
I solved the problem. 

BR

Posted: December 19, 2014 8:55 AM

Hi Yudi,

I put the sample on github. You can download it here as a .zip file.

I removed the appSettings.WebServerUrl, because it only works in my network.

https://github.com/kiborkm/CrosslightDB

Best regards

Posted: December 16, 2014 4:20 PM

The error in VS Debugger. When I try to add an new item.

12-16 17:13:56.849 I/MonoDroid(30448): UNHANDLED EXCEPTION:12-16 17:13:56.890 I/MonoDroid(30448): System.NullReferenceException: Object reference not set to an instance of an object
An unhandled exception occured.

12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditableListViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item].OnDataInserted (IEnumerable`1 items) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditableListViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item]._OnDataInserted (IEnumerable`1 items) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventSubscription`1[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].InvokeAction (System.Action`1 action, IEnumerable`1 argument) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventSubscription`1+a[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].<Intersoft.Crosslight.IEventSubscription.GetExecutionStrategy>b__0 (System.Object[] arguments) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.DelegateEventBase.InternalPublish (System.Object[] arguments) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.DelegateEvent`1[System.Collections.Generic.IEnumerable`1[CrosslightDB.DomainModels.Inventory.Item]].Publish (IEnumerable`1 payload) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.EventAggregator.Publish[DataInsertedEvent`1,IEnumerable`1] (IEnumerable`1 payload) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.Crosslight.ViewModels.EditorViewModelBase`1[CrosslightDB.DomainModels.Inventory.Item].OnDataInserted (CrosslightDB.DomainModels.Inventory.Item item) [0x00000] in <filename unknown>:0 
12-16 17:13:56.890 I/MonoDroid(30448):   at Intersoft.AppFramework.ViewModels.DataEditorViewModelBase`2+<ExecuteSave>d__0[CrosslightDB.DomainModels.Inventory.Item,CrosslightDB.DomainModels.Inventory.IItemRepository].MoveNext () [0x00000] in <filename unknown>:0 

 

All times are GMT -5. The time now is 10:04 PM.
Previous Next