Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android compatible #4

Open
leocaseiro opened this issue May 27, 2016 · 1 comment
Open

Android compatible #4

leocaseiro opened this issue May 27, 2016 · 1 comment

Comments

@leocaseiro
Copy link

leocaseiro commented May 27, 2016

Hi, this is an amazing plugin. I had my app perfect running on iOS and now I'm struggling to make work on Android.

I found the issue #1, so I believe I'm not the only one...

Perhaps make compatible with Android would be great

Here is a reference that might be easy to implement https://github.com/iainconnor/SectionedListview

Otherwise, the Android version could ignore the observable-sectioned-array and show a simple ListView or a Repeater without the sticky header.

Temporary I'm going to re-build with Repeater for Android.

@leocaseiro
Copy link
Author

These are my logs, in case someone get the same error:

JS: Binding: Binding error while setting property items of SectionedListView<scrollView>@file:///app/Source/Tabs/Listings/List/ListingsList.xml:3:5;: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
JS:     com.tns.gen.android.widget.BaseAdapter_frnal_ts_helpers_l47_c38__ListViewAdapter.getCount(BaseAdapter_frnal_ts_helpers_l47_c38__ListViewAdapter.java:11)
JS:     android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:821)
JS:     android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6179)
JS:     android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
JS:     android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:712)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:693)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:683)
JS:     com.tns.gen.java.lang.Runnable_ftns_modules_timer_timer_l15_c20__.run(Runnable_ftns_modules_timer_timer_l15_c20__.java:10)
JS:     android.os.Handler.handleCallback(Handler.java:739)
JS:     android.os.Handler.dispatchMessage(Handler.java:95)
JS:     android.os.Looper.loop(Looper.java:148)
JS:     android.app.ActivityThread.main(ActivityThread.java:5417)
JS:     java.lang.reflect.Method.invoke(Native Method)
JS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
JS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
JS: Binding: Binding error while setting property items of SectionedListView<scrollView>@file:///app/Source/Tabs/Listings/List/ListingsList.xml:3:5;: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
JS:     com.tns.gen.android.widget.BaseAdapter_frnal_ts_helpers_l47_c38__ListViewAdapter.getCount(BaseAdapter_frnal_ts_helpers_l47_c38__ListViewAdapter.java:11)
JS:     android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:821)
JS:     android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6179)
JS:     android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
JS:     android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:712)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:693)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:683)
JS:     com.tns.gen.java.lang.Runnable_ftns_modules_timer_timer_l15_c20__.run(Runnable_ftns_modules_timer_timer_l15_c20__.java:10)
JS:     android.os.Handler.handleCallback(Handler.java:739)
JS:     android.os.Handler.dispatchMessage(Handler.java:95)
JS:     android.os.Looper.loop(Looper.java:148)
JS:     android.app.ActivityThread.main(ActivityThread.java:5417)
JS:     java.lang.reflect.Method.invoke(Native Method)
JS:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
JS:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant