开发者

How to launch the graph as initial activity using achartengine

开发者 https://www.devze.com 2023-04-12 11:56 出处:网络
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

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);     
    }

}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号