I have an activity that contains a View.
public class SecondActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second_act);
LinearLayout surface = (LinearLayout) findViewById(R.id.surfaceView1);
surface.addView(new PlacingBoxView(this));
surface.setBackgroundColor(Color.BLACK);
if (ACTIONS_FINISHED){
Log.d("TAG", "i made it!!");
}
}
Within the PlacingBoxView
i do some actions, and once they are finished I set the a boolean called ACTIONS_FINISHED
to true. My goal is once I've set this boolean to true then do some actions in the activity automatically.
I've been trying to use all this possibilities, but they are just to share information. Maybe I should use onActivityResult, but I'm already within the activity...
Any idea? THanks in advance!
EDIT: The view performs an AsyncTask and draws several shapes, but the user doesn't touch the screen at all