Android Open Source - injectextra Main Activity






From Project

Back to project page injectextra.

License

The source code is released under:

Apache License

If you think the Android project injectextra listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.injectextra;
//  w  w w .  j a v a 2s .c om
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = new Intent(this, SecondActivity.class);
    intent.putExtra(SecondActivity.APP_NAME, "injected !");
    startActivity(intent);
  }
}




Java Source Code List

com.example.injectextra.MainActivity.java
com.example.injectextra.SecondActivity.java
com.github.stephanenicolas.injectextra.InjectExtraException.java
com.github.stephanenicolas.injectextra.InjectExtraProcessor.java
com.github.stephanenicolas.injectextra.InjectExtra.java