Back to project page AndroidModelView.
The source code is released under:
MIT License
If you think the Android project AndroidModelView 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.kharcustom.testframework; /* ww w . j av a2s . co m*/ import com.khar.isframework.Model; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class GenericForm extends Activity { public final static String MODEL="com.kharcustom.testframework.GenericForm.model"; Model model; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(getIntent().getParcelableExtra(MODEL)!=null){ model = getIntent().getParcelableExtra(MODEL); } setContentView(R.layout.activity_generic_form); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.generic_form, menu); return true; } }