Back to project page visiting-card-android.
The source code is released under:
GNU General Public License
If you think the Android project visiting-card-android 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.matrix.visitingcard; // w w w .j a v a 2 s. c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentTransaction; import com.flurry.android.FlurryAgent; import com.matrix.visitingcard.constant.Constants; public class SelectVCActivity extends FragmentActivity { @Override public void onStart() { super.onStart(); FlurryAgent.onStartSession(this, "C8ZJZ5PWCFZ9WFQ5QKHM"); } @Override public void onStop() { super.onStop(); FlurryAgent.onEndSession(this); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_select_vc); ListMyVCFragment f = ListMyVCFragment.getInstance(true); FragmentTransaction transaction = getSupportFragmentManager() .beginTransaction(); transaction.replace(R.id.fragment_container, f); transaction.addToBackStack(null); transaction.commit(); } public void onResult(int id) { Intent resultIntent = new Intent(); resultIntent.putExtra(Constants.Intent.VC_ID, id); setResult(Activity.RESULT_OK, resultIntent); finish(); } }