How to launch the graph as initial activity using achartengine
In my app i want to display the graph when app launches. For this i used the tab activity. is it possible to implement this without tab activity? if yes, then how to implement this. please can anybody help me.
code:
public class ALinegraph extends TabActivity {
TabHost tab_host;
TabSpec tab1;
开发者_运维技巧 /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
tab_host = getTabHost();
tab1 = tab_host.newTabSpec("1wk");
tab1.setIndicator("1wk");
Linegraphpage ACTC = new Linegraphpage();
Intent intent = ACTC.execute(ALinegraph.this);
tab1.setContent(intent);
tab_host.addTab(tab1);
}
}
精彩评论