Android Open Source - Galaxy-Torch Bitcoin Donate Activity






From Project

Back to project page Galaxy-Torch.

License

The source code is released under:

Copyright (c) 2012 Santoso Wijaya Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...

If you think the Android project Galaxy-Torch 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.swijaya.galaxytorch;
/* w  w w .  j  a  v a  2  s .  c  om*/
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
import com.swijaya.galaxytorch.util.ClipboardManagerWrapper;

public class BitcoinDonateActivity extends Activity implements View.OnClickListener {

    private static final String TAG = BitcoinDonateActivity.class.getSimpleName();

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.btcdonate);
    }

    @Override
    public void onClick(View v) {
        Log.i(TAG, "Copying Bitcoin donate address to clipboard");
        ClipboardManagerWrapper.copyToClipboard(this,
                getResources().getString(R.string.bitcoin_donate_address));
        Toast toast = Toast.makeText(getApplicationContext(),
                R.string.toast_address_copied, Toast.LENGTH_SHORT);
        toast.show();
    }
}




Java Source Code List

com.swijaya.galaxytorch.BitcoinDonateActivity.java
com.swijaya.galaxytorch.CameraDevice.java
com.swijaya.galaxytorch.DefaultTorch.java
com.swijaya.galaxytorch.GalaxyTorchActivity.java
com.swijaya.galaxytorch.GalaxyTorchService.java
com.swijaya.galaxytorch.GalaxyTorchSettings.java
com.swijaya.galaxytorch.GalaxyTorchWidgetProvider.java
com.swijaya.galaxytorch.util.ClipboardManagerWrapper.java