Android Open Source - network-checker Info Activity






From Project

Back to project page network-checker.

License

The source code is released under:

Apache License

If you think the Android project network-checker 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 de.ub0r.android.networkchecker;
/*from  w  ww  .jav a 2 s .co m*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/**
 * @author flx
 */
public class InfoActivity extends Activity implements View.OnClickListener {

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

        findViewById(R.id.snooze).setOnClickListener(this);
    }

    @Override
    public void onClick(final View view) {
        switch (view.getId()) {
            case R.id.snooze:
                sendBroadcast(
                        new Intent(CheckReceiver.ACTION_SNOOZE, null, this, CheckReceiver.class));
                finish();
                return;
            default:
                throw new IllegalArgumentException("invalid view clicked");
        }
    }
}




Java Source Code List

de.ub0r.android.networkchecker.CheckReceiver.java
de.ub0r.android.networkchecker.InfoActivity.java
de.ub0r.android.networkchecker.MainActivity.java