Android Open Source - org.numixproject.iconsubmit Main Activity






From Project

Back to project page org.numixproject.iconsubmit.

License

The source code is released under:

GNU General Public License

If you think the Android project org.numixproject.iconsubmit 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 org.numixproject.iconsubmit;
//  www . j av a  2  s.  c  om
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

  public ProgressDialog progBar;

  public final static boolean DEBUG = false;
  public final static String TAG = "AppGetter";

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Button start_button = (Button) findViewById(R.id.button2);
    start_button.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View view) {
        start_request();

      }
    });

  }

  public void start_request()
  {
    String pkg = getPackageName();
    Intent intent = new Intent(Intent.ACTION_MAIN);
    intent.setComponent(new ComponentName(pkg,pkg+".RequestActivity"));
    startActivity(intent);

    if(DEBUG)Log.v(TAG,"Intent intent: "+intent);
  }

}




Java Source Code List

org.numixproject.iconsubmit.MainActivity.java
org.numixproject.iconsubmit.RequestActivity.java
org.numixproject.iconsubmit.helpers.AppInfo.java
org.numixproject.iconsubmit.helpers.SquareGridLayout.java