Back to project page polygons.
The source code is released under:
GNU General Public License
If you think the Android project polygons 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.github.polygons; //ww w .jav a 2 s. c om import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import com.github.polygons.logic.Keeper; import com.nobcatz.android.polygons.R; public class LostActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_lost); Keeper.getInstance().reset(); } @Override public void onBackPressed() {/*Do nothing*/} public void exit(View v){ Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivity(intent); this.finish(); } public void retry(View v){ Intent intent = new Intent(this, LevelActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); startActivity(intent); } }