Back to project page curupirasrage.
The source code is released under:
MIT License
If you think the Android project curupirasrage 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.curupirasrage; // www. j a v a 2 s . c om import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.Button; import android.widget.TextView; public class FimActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fim); Intent i = getIntent(); int pontos = i.getIntExtra("pontuacao", 0); String strPontuacao = String.valueOf(pontos); TextView txtPontos = (TextView) findViewById(R.id.textPontuacao); txtPontos.setText(strPontuacao); Button btReturnMenu = (Button) findViewById(R.id.returnMenu); btReturnMenu.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(FimActivity.this, MainActivity.class); startActivity(intent); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.fim, menu); return true; } }