Android Question Java error

fishwolf

Well-Known Member
Licensed User
Longtime User
I'm compiling my app with B4A 8.80, but i written app with 5.80

i have a activity that use AHPageContainer, AHViewPager and AHViewPagerTabs

now i have this java error

Have you suggestion?

B4X:
index_activity_create (java line: 566)
java.lang.IllegalStateException: The pager's adapter has to implement ViewPagerTabProvider.
    at de.amberhome.viewpager.internal.ViewPagerTabs.setViewPager(ViewPagerTabs.java:157)
    at de.amberhome.viewpager.AHViewPagerTabs.Initialize(AHViewPagerTabs.java:30)
    at it.software.castiel.infoagility.index._activity_create(index.java:566)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at it.software.castiel.infoagility.index.afterFirstLayout(index.java:104)
    at it.software.castiel.infoagility.index.access$000(index.java:17)
    at it.software.castiel.infoagility.index$WaitForLayout.run(index.java:82)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:208)
    at android.app.ActivityThread.main(ActivityThread.java:6267)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
java.lang.IllegalStateException: The pager's adapter has to implement ViewPagerTabProvider.
** Activity (index) Resume **
 

fishwolf

Well-Known Member
Licensed User
Longtime User
Why aren't you using TabStripViewPager?
Because the app was written before, about in 2014.

If i have to replace library, can is use a library XUI with the same features? Sliding page with button

Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…