Back to project page Briscola.
The source code is released under:
GNU General Public License
If you think the Android project Briscola listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gmail.craptik.briscola; //from w ww. j a va 2 s .co m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class CallCardSuitSelectActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_call_card_suit_select); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(resultCode == RESULT_OK) { finish(); } } public void onSwordsClicked(View view) { NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.SWORDS); Intent intent = new Intent(this, CallCardSwordsSelectActivity.class); startActivityForResult(intent, 0); } public void onFeathersClicked(View view) { NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.FEATHERS); Intent intent = new Intent(this, CallCardFeathersSelectActivity.class); startActivityForResult(intent, 0); } public void onSunsClicked(View view) { NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.SUNS); Intent intent = new Intent(this, CallCardSunsSelectActivity.class); startActivityForResult(intent, 0); } public void onCupsClicked(View view) { NewGameActivity.getGameData().getCalledCard().setSuit(ECardSuit.CUPS); Intent intent = new Intent(this, CallCardCupsSelectActivity.class); startActivityForResult(intent, 0); } }