Charting Example

TomK

Member
Licensed User
Longtime User
Good day all,

I am attempting to work with the Charting Example, and right out of the gate I receive a resource error that looks thus:

B4X:
LogCat connected to: 028841c1411fd5d7
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main

** Activity (main) Create, isFirst = true **

main_activity_create (java line: 194)

android.content.res.Resources$NotFoundException: Resource ID #0x0
   at android.content.res.Resources.getValue(Resources.java:1014)
   at android.content.res.Resources.loadXmlResourceParser(Resources.java:2039)
   at android.content.res.Resources.getLayout(Resources.java:853)
   at android.view.LayoutInflater.inflate(LayoutInflater.java:389)
   at android.widget.TabHost$LabelIndicatorStrategy.createIndicatorView(TabHost.java:534)
   at android.widget.TabHost.addTab(TabHost.java:226)
   at anywheresoftware.b4a.objects.TabHostWrapper.innerInitialize(TabHostWrapper.java:60)
   at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:38)
   at anywheresoftware.b4a.charts.main._activity_create(main.java:194)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:491)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:99)
   at anywheresoftware.b4a.charts.main.afterFirstLayout(main.java:83)
   at anywheresoftware.b4a.charts.main.access$100(main.java:15)
   at anywheresoftware.b4a.charts.main$WaitForLayout.run(main.java:71)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:126)
   at android.app.ActivityThread.main(ActivityThread.java:3997)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:491)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
   at dalvik.system.NativeStart.main(Native Method)
android.content.res.Resources$NotFoundException: Resource ID #0x0

** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **

Can anyone offer a little insight here or perhaps maybe run into the same problem?

Thanks in advance!!


Tom
 

TomK

Member
Licensed User
Longtime User
Hi Erel,

Yes, I just came back to add that it's Android 3.0, Honeycomb on the XOOM...and that I'm sure this is the offender. Thanks for the quick reply though!



Tom
 
Upvote 0

TomK

Member
Licensed User
Longtime User
Erel,

I should further note that charting itself DOES work (great job by the way)

It seems that only the Tab host is causing issues, not being able to draw charts themselves.

Thanks again!


Tom
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Upvote 0

TomK

Member
Licensed User
Longtime User
Seems like Google had an oooops moment.

Nice searching though agraham, I was looking for something similar too....thanks for that!


Tom
 
Upvote 0

TomK

Member
Licensed User
Longtime User
Please try the updated core.jar. You should place it in the internal libraries folder.

It should fix this issue. It will still fail in the designer. This will be fixed in the next update.

Thanks for this Erel! :sign0060:
 
Upvote 0
Top