Back to project page bumper.
The source code is released under:
MIT License
If you think the Android project bumper 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.varwise.bumper; /*from w w w . ja va 2s . com*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class ObstructQuestionScreen extends Activity { public static String baseKey = "ObstructQuestionScreen"; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.obstruct); ScreenDB.setFinishedDate(baseKey, getApplicationContext()); } public void onYes(View v) { ScreenDB.setFinishedDate(baseKey, getApplicationContext()); Intent callEmergency = new Intent(getApplicationContext(), MoveVehiclesScreen.class); startActivity(callEmergency); finish(); } public void onNo(View v) { ScreenDB.setFinishedDate(baseKey, getApplicationContext()); finish(); } }