Share My Creation Lottery Shaker

Lottery Shaker is a free game that randomly chooses lottery numbers by shaking your Android smartphone. It also includes a No Shake button for phones without an accelerometer.

Current version includes lottery games for all states in the US that have lotteries and the Virgin Islands.

A user would select a state, select the lottery game, and then shake their phone to randomly generate numbers.

Google Play: https://play.google.com/store/apps/details?id=com.isotoria.lotteryshaker
 

Attachments

  • lottery 1.png
    lottery 1.png
    76.7 KB · Views: 3,214
  • lottery 2.png
    lottery 2.png
    93.9 KB · Views: 299
  • lottery 3.png
    lottery 3.png
    119 KB · Views: 283
  • lottery 6.png
    lottery 6.png
    50.6 KB · Views: 273
  • lottery 4.png
    lottery 4.png
    93 KB · Views: 234
Last edited:

NJDude

Expert
Licensed User
Longtime User
Very nice!

A couple of suggestions,

1- On the items that require to fetch info from the net (Privacy policy, terms of use etc) disable the Zoom on the webview.

2- Add a ProgressDialog like "Getting info, please wait..." or something, that's to avoid seeing a white screen and nothing happens, it gives the wrong impression that the app is not working.

I also have a question, the last item on the menu, what's that: "# 9" or any other number?, tapping on it does nothing, kind of confusing.

Good job!!!
 

AllyAndroid

Member
Licensed User
Longtime User
Very nice!

A couple of suggestions,

1- On the items that require to fetch info from the net (Privacy policy, terms of use etc) disable the Zoom on the webview.

2- Add a ProgressDialog like "Getting info, please wait..." or something, that's to avoid seeing a white screen and nothing happens, it gives the wrong impression that the app is not working.

I also have a question, the last item on the menu, what's that: "# 9" or any other number?, tapping on it does nothing, kind of confusing.

Good job!!!

Thanks, I'll have to look into the zoom option. From what I understand, if I disable it then pinch in/out no longer works. Not sure if I want to disable that. I have poor vision and for me I need to zoom in to read the page.

Where are you getting a white screen? I do have a toast message that says "Please Wait" or "Loading Game" when switching between activities.

The # 9 is a counter for the number of times you shacked the phone to generate your numbers.
 

NJDude

Expert
Licensed User
Longtime User
Yes you do have a toast, but sometimes if the connection is a little bit slow the "white" screen shows for a little while, the toast can be missed easily, that's why I suggested a ProgressDialog.
 

AllyAndroid

Member
Licensed User
Longtime User
Yes you do have a toast, but sometimes if the connection is a little bit slow the "white" screen shows for a little while, the toast can be missed easily, that's why I suggested a ProgressDialog.

I have the Toast Message added to the Slide Menu code. When I replaced it with the ProgressDialog, the dialog only stayed visible for a fraction of a second. It was gone as soon as the new activity was started.

So I moved it to the web activity and tried this code:

B4X:
   ProgressDialogShow2("Please wait, loading webpage.", False)
   Activity.LoadLayout("About")
   ProgressDialogHide

But that doesn't work either. The dialog isn't visible on the screen long enough to be able to read it. I even turned off my internet and still didn't get a glimpse of the dialog.

Any suggestions on how to get it to display longer?

I also noticed that my Toast Messages were set to False. Changing them to True would display them longer but not sure if that would be long enough.
 

NJDude

Expert
Licensed User
Longtime User
The ProgressDialogHide should be placed in the PageFinished event for that WebView.
B4X:
Sub YourWebViewName_PageFinished(Url As String)
  
    ProgressDialogHide
 
End Sub
 
Last edited:

AllyAndroid

Member
Licensed User
Longtime User
Just got done updating Lottery Shaker.

I wound up implementing all of your suggestions NJDude including disabling the Zoom.

I also added a few more lottery games including a few from Canada. Plan on adding more lottery from other countries when I get the time to look them up.

And under Other, I added Rock/Paper/Scissors game.
 

schemer

Active Member
Licensed User
Longtime User
Hi AllyAndroid. I just tried your Lottery Shaker app on my Nexus 7 (tablet only, no phone) and I get an error when I try to open the app. It says:

An error has occurred in sub:
java.lang.RuntimeException:java.lang.RuntimeException:
Object should be initialized (Panel)
Continue?

Just thought I would let you know.
Nexus 7 2013

added: I kept opening it and once I got past the error and was able to pick some numbers. Then when I tried again, I got the error messages again and again. I noticed I had an update for my system so I will try again after the update finished after I charge my battery.
 
Last edited:
Top