I have a custom View in a parent activity that calls...
getContext().startActivity(intent);
...in it's onClickListener. In this new Activity, there is a button callback where I need to call a method in the parent activity's custom View. The same custom View that started the Activity. I tried doing it like so:
((CustomView) ((LinearLayout) view.getRootView().findViewById(R.id.linear_layout_amp_row))
.getChildAt(col)).function();
I have tried to set the parent activity as a global variable in the new Activity, but the parent is null. I tried setting it in onCreate and onAttachToWindow. I've also tried getParent and using view. I did not see a way to pass the View through the bundle.
How do you go about getting a view from a parent activity?