BravoActivity.java
964 Bytes
package tonio.noa;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by tonio on 23/11/17.
*/
public class BravoActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final Intent intent = getIntent();
setContentView(R.layout.bravo_display);
View view = findViewById(R.id.bravo_view);
view.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view,MotionEvent event) {
setResult(RESULT_OK,intent);
finish();
return true;
}
});
}
}