Android Open Source - SendLog Hello Android Activity






From Project

Back to project page SendLog.

License

The source code is released under:

Apache License

If you think the Android project SendLog 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.l6n.sendlog.userapp;
//from  w  w w  .ja v a  2 s.  c  o m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class HelloAndroidActivity extends Activity {

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

        Log.d("USERAPP", "onCreate");

        final View intent = findViewById(R.id.intent);
        intent.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(final View pView) {
                Log.d("USERAPP", "onClick intent");
                final Intent intent = getPackageManager().getLaunchIntentForPackage("org.l6n.sendlog");
                intent.setType("5|com.google.android.gm.ComposeActivityGmail|android@l6n.org");
                startActivity(intent);
            }
        });

        final View embedded = findViewById(R.id.embedded);
        embedded.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(final View pView) {
                Log.d("USERAPP", "onClick embedded");
                final Intent intent = new Intent(HelloAndroidActivity.this, SendLogActivity.class);
                startActivity(intent);
            }
        });
    }

}




Java Source Code List

org.l6n.sendlog.CreateShortcutActivity.java
org.l6n.sendlog.SendLog.java
org.l6n.sendlog.library.ISendLog.java
org.l6n.sendlog.library.LogcatThread.java
org.l6n.sendlog.library.SendLogActivityBase.java
org.l6n.sendlog.userapp.HelloAndroidActivity.java
org.l6n.sendlog.userapp.SendLogActivity.java