Reputation: 7261
Just I have created graph chart using Chart Engine Android I have used data from my database to use value for chart. Now I have one activity which is main to display graph chart with left menu options. So Whenever i am calling chart activity its going to show its own activity sepratly. I want to embed that chart activity with my main activity with left menu options. Is it possible? I am using android 4.0 How to solve this task? Please help me friends.
Upvotes: 2
Views: 3142
Reputation: 819
It sounds like your application would benefit from using Fragments The developer site has some very good information you should read.
Upvotes: 3
Reputation: 165
Try Activity Group. http://developer.android.com/reference/android/app/ActivityGroup.html
Upvotes: -1
Reputation: 10203
You can't embed an Activity into another in Android, as Activities are meant to be independent objects.
Since android 3.0, you can use Fragments, which are Activities sub-elements, which you can combine in many different way. For example having your Activity using one left fragment to display a list of items and a right fragment to display the details of the selected item.
You should take a look at the Fragements documentation to implement this in your application.
Upvotes: 2