Android Open Source - Show-A-Duck showduck






From Project

Back to project page Show-A-Duck.

License

The source code is released under:

GNU General Public License

If you think the Android project Show-A-Duck 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.situationalinertia.showaduck;
/*from ww w. j a v a2 s.  c o m*/
/**
 * Created by jgilman0 on 7/2/2014.
 */

import android.app.Activity;
        import android.content.Intent;
        import android.net.Uri;
        import android.os.Bundle;
        import android.widget.Button;
        import android.view.View;
        import android.view.View.OnClickListener;

public class showduck extends Activity {

    Button button;

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

        addListenerOnButton();

    }

    public void addListenerOnButton() {

        button = (Button) findViewById(R.id.duckbutton);

        button.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {

                Intent browserIntent =
                        new Intent(Intent.ACTION_VIEW, Uri.parse("http://commons.wikimedia.org/wiki/File:Bucephala-albeola-010.jpg"));
                startActivity(browserIntent);

            }

        });

    }

}




Java Source Code List

com.situationalinertia.showaduck.showduck.java
situationalinertia.com.showaduck.ApplicationTest.java
situationalinertia.com.showaduck.util.SystemUiHiderBase.java
situationalinertia.com.showaduck.util.SystemUiHiderHoneycomb.java
situationalinertia.com.showaduck.util.SystemUiHider.java