2012-07-12 70 views
0

我是新來的android開發,我很困惑的活動(甚至不知道如果他們被稱爲活動大聲笑) 我將如何去開始從另一個活動?致電活動

public void work(View v) { 
    //does quite a bit of stuff in here 
    //then goes back to csend() to check if this needs to be repeated 
} 

public void csend(View view) { 
    if (i < x){ 
     //does a little bit of stuff here 
    work(); //i need to make this run the other code 
    } 
} 

另外,(視圖視圖)是什麼意思,有人可以給我一個鏈接到一個教程,解釋不同的部分android代碼?

感謝 編輯:謝謝你的快速反應,我會去上的一切念起來

+1

谷歌比如? – Blackbelt 2012-07-12 14:40:11

+0

[d.android.com](http://developer.android.com/index.html)是最終目的地。 – 2012-07-12 14:41:46

+2

閱讀官方文檔http://developer.android.com/training/basics/firstapp/starting-activity.html – 2012-07-12 14:41:55

回答

0

你也可以使用,

startActivity(new Intent(YourClassName.this, SecondActivity.class));