Having developed many desktop GUI apps (from Xt to Qt, Java Awt/Swt/Swing, etc) I really find it difficult to get used to Android.
Suppose I have the MainView Activity class which explicitly calls DetailedView via intent mechanism as shown next:
Since an Activity class is instantiated via onCreate() how do I customize it? (No constructor, only pass data through intent!)
Is there a way to get a reference for the DetailedView instance in MainActivity?
Is there a way to get a reference for the MainActivity instance in DetailedView?
How can I pass the reference to FrontEnd to the DetailedView class? Intent.putExtras() allows only for certain data types to pass to the intent receiver class.
MainActivity { ... FrontEnd fe; ...
}public void onCreate(Bundle savedInstanceState) { ... Intent myIntent = new Intent(this, DetailedView.class); ... } protected void onListItemClick(ListView l, View v, int position, long id) { ... startActivityForResult(myIntent,..); ... }