I’m using the afreechart library to display some charts in my app. The problem is the class extends DemoView class, and getIntent() is from Activity class. I have to pass some extras in the chart app to make chart treatement. What can i do? Any proposals please?
Thank you very much.
I’m using the afreechart library to display some charts in my app. The problem
Share
Inside your
Viewyou can castgetContext()to theActivitywhich contains yourViewand thus you can access anything from thatActivity.