Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.83 KB

README.md

File metadata and controls

58 lines (34 loc) · 1.83 KB

Android Blockchain Example with Java

This mobile app is an example to learn how Blockchain works as an Android app using Java.

Getting started

You can clone or fork this repo and use it freely. If there are build errors, in Android Studio go to Tools -> Android -> SDK Manager and install any available updates. Then go to Build -> Clean Project and finally Build -> Rebuild Project.

Remember, you will need getting the last API version and updates. This project runs with AndroidX and new Material Design, so, if you want to keep this, leave the dependencies as they are.

build.gradle

dependencies {
    implementation 'com.google.android.material:material:1.12.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
}

Screenshots

The first block (Genesis block) will be inserted whenever you open the app.

Genesis_block

A hash check of three blocks.

Hash_check

You can encrypt the message to insert it in the Blockchain.

Encrypt_message_option

You can set the 'Proof-of-work' to test the app on your device.

Proof_of_work

Get more info about this app and the Blockchain.

More_info

Switch to dark theme when you need it or in Battery saver.

Dark_theme

Contact

For anything about the project, you can email me at [email protected]. You can visit my website.