Back to project page Sketcher.
The source code is released under:
Apache License
If you think the Android project Sketcher listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.sketcher; // w w w . j ava 2 s .c o m import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.view.View; import android.widget.Button; public class AboutDialog extends Dialog { private static final String MARKET_URL = "market://details?id=org.sketcher.pro"; public AboutDialog(Context context) { super(context); setTitle(R.string.about_title); setContentView(R.layout.about); Button buyButton = (Button) findViewById(R.id.about_buy); buyButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent("android.intent.action.VIEW", Uri .parse(MARKET_URL)); getContext().startActivity(intent); } }); Button closeButton = (Button) findViewById(R.id.button_close); closeButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dismiss(); } }); } }