Back to project page NestedFragment.
The source code is released under:
GNU General Public License
If you think the Android project NestedFragment 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.sams.nestedfragment; // w w w .j av a 2 s . c om import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class SecondActivity extends Activity { private Button mSubmitButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); mSubmitButton = (Button) findViewById(R.id.btn_submit); mSubmitButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent result = new Intent(); result.putExtra("secondReturnValue", getString(R.string.second_activity_return_value)); setResult(Activity.RESULT_OK, result); finish(); } }); } }