A simple android implementation of Ethereum wallet and smart contracts interaction.
First, add the following dependencies to your project:
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core-android</artifactId>
<version>2.2.1</version>
</dependency>
compile ('org.web3j:core-android:2.2.1')
This will run a private network. You may also run it with --testnet
flag.
$ geth --dev --rpc --rpcapi "eth,net,web3,personal" --rpcaddr="localhost" --rpcport="8545" --rpccorsdomain="*"