An Android application that generates a random number using the vibration given to the phone. We check the accelerometer to retrieve the displacement and generate a random number via a throw of a dice. This number is then uploaded to a dedicated server and is used for playing snake and ladders..
DiceApp is hosted in the following web site
https://github.com/nagabharan/DiceApp
If you think the Android project DiceApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of DiceApp.
Item | Value |
---|---|
Java File Count | 1 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 15 |
Minimum SDK Version | 8 |
Activity Count | 1 |
jar files used | android-support-v4.jar |
Required Permissions | android.permission.INTERNET |
There are 7 image files in DiceApp. The names of the image files are listed as follows.
d1.png d2.png d3.png d4.png d5.png d6.png ic_action_search.png
The following screenshort is generated from the image listed above.
DiceApp has the following Java source files.
com.arpith.dice.MainActivity.java