Skip to content

Tutorial project for Android development using mimik Client Library

License

Notifications You must be signed in to change notification settings

mimikgit/random-number-generator-android

Repository files navigation

Random Number Generator for Android Devices

The purpose of this project is to demonstrate how to program an Android application that generates a random number using a mim OE microservice that runs under the mim OE Runtime.

What are the mim OE Runtime and mim OE microservices
The mim OE Runtime and mim OE microservices are technologies developed by mimik. mimik technology enables any computing device to act as a server, enabling all computing devices to communicate directly at the application layer according to the principles of edge computing.

To clone the code to your local machine, execute the following command:

git clone https://github.com/mimikgit/random-number-generator-android.git

Using the project with the mim OE microservice tutorial

This project is intended to be the demonstration code that accompanies the online tutorial Creating a Simple Android Application that Uses a mim OE microservice. You can find the tutorial here.

This project is structured as a scenario that shows you how to fix a bug in the code by using a mim OE microservice to solve the problem. The bug is that the code is supposed to generate a random number each time a button on the screen of the Android device is pressed. But, it doesn't. The same number keeps appearing. However, this project does have code that provides a fix.

buggy code

This project is divided into three branches. The main branch has the buggy code. The branch, completed_code has the code that fixes the bug. The superdrive_enabled branch showcases the ability to communicate with other devices deploying the same microservices.

buggy code

You might want to take a look at the buggy project to in the main branch to see how the project is structured.

Then, if you want to see the bug free code in the branch completed_code in GitHub on your browser, go here.

If you want see the fixed code locally, checkout the branch completed_code using the following command:

git checkout completed_code

For a version that uses the mimik mSuperdrive microservice to query other devices actively running the same application for numbers, checkout the branch superdrive_enabled using the following command:

git checkout superdrive_enabled

When running the superdrive_enabled version, ensure that any devices on the network actively running mimik Random Number Generator are running the superdrive_enabled version.

Getting the code up and running

BE ADVISED: In order to run this code you need to have an active project registered with mimik.com.

You can create and register a project in the mimik Developer Console website here. There is no charge for creating a mimik project. It's absolutely free!

You'll configure the application using the various tokens generated from within a mimik Developer Console.

As mentioned above, to get the most benefit from this project, it's best to follow along with the instructions provided in the tutorial here.

About

Tutorial project for Android development using mimik Client Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages