Back to project page My-Wallet-Android.
The source code is released under:
GNU General Public License
If you think the Android project My-Wallet-Android 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 piuk; /* ww w . j a v a 2 s . c o m*/ import java.math.BigInteger; import com.google.bitcoin.core.Address; import com.google.bitcoin.core.AddressFormatException; import com.google.bitcoin.core.NetworkParameters; import com.google.bitcoin.core.Transaction; import com.google.bitcoin.core.TransactionOutput; public class MyTransactionOutput extends TransactionOutput { private static final long serialVersionUID = 1L; String address; NetworkParameters params; MyTransactionOutput(NetworkParameters params, Transaction parent, BigInteger value, Address to) { super(params, parent, value, to); this.params = params; this.address = to.toString(); } public Address getToAddress() { try { return new Address(params, address); } catch (AddressFormatException e) { e.printStackTrace(); } return null; } }