Logomotion Scorer Android App

I have been working on a pretty basic scoring app for android, and I am pleased to announce that the first version is ready for use!

The interface is very simple. Just tap a tube to select it, then tap on the peg you want to place it on. Hit the menu button to clear the entire grid, or long press to clear an individual peg.

Please provide feedback! I am especially curious to see how it looks across different sized screens.

A few notes-

  • I am not a graphic artist.
  • This is a very basic version, I will be refining it over the next week or so
  • As a testament to the above, the icon is the default android app icon
  • I believe scoring is correct as per the current scoring rules
    , which are subject to change
  • There will NOT be an iPhone/iPod version
  • I will release the source code once I have time to clean it up a bit.
  • I will hopefully be able to release it to the android market by tomorrow.

Upcoming features (in order of when they will be implemented)-

  • Up to 4 grids, with alliance association

For a desktop version of the program, I would recommend 103’s java score calculator.

LogomotionScorer.zip (20.1 KB)


LogomotionScorer.zip (20.1 KB)

I commend you for your effort, but please take this advice…don’t put anything on the market until you’ve had a good chance to completely test it. There are too many major problems with this app that you need to fix. Don’t take the Microsoft approach and just put something out that’s not working completely just to patch it later.

  • The total score isn’t calculated (which is the intention of the app right?). The top, middle, bottom work, but aren’t summed.

  • The way you’re drawing things doesn’t support landscape orientation. The tubes and total score end up being drawn off the screen. If you want to force the app to only be portrait, set the Activity’s orientation property in the manifest.

  • When the phone is rotated, the activity is restarted and the screen is cleared. To fix this, you need to update the Activity in the manifest to handle configuration change events from orientation events. You’ll find a similar problem if the keyboard is opened/closed on something like a Droid. For that you need to handle keyboard and keyboardHidden events. You don’t need to do anything with the events, but you need to at least have the handlers

  • Your circles look hand drawn. If you’re direct drawing, you should look into turning on antialiasing for your Paint object.

You have potential with this app. Keep plugging at it and make sure it’s bulletproof before you put it on the market.

I just found that your ubertube scoring isn’t working correctly.

When I put an ubertube on the top row, I get 6 points (from autonomous) as the Top value. When I place a shape on top of that ubertube, the Top value goes to 8 (rather than 12).

Running the same test on the middle, I get a value of 4 after auto, then a value of 6 (not 8) when the tube is placed on top.

Running the same test on the middle, I get a value of 4 after auto, then a value of 6 (not 8) when the tube is placed on top.

I also noticed that if you put an ubertube over an ubertube, the score goes to 0.

I was planning on waiting until this version was more refined before releasing it to the market, and I had planned on refining it tonight.

As for the first two/three issues- I had fixed those, but it would appear that I zipped the wrong APK. Landscape is not supported right now, though it probably will be once I add the ability to have more than one grid.

The circles are actually images created in photoshop. Can you detail what makes them look hand drawn? In any case, I modified them slightly for this release.

The scoring issue should be fixed now as well.

Thanks for the feedback and testing! This is my first real android app. I have done a few tutorial apps, but had yet to actually find a useful app to make. Definitely a new experience.

LogomotionScorer.zip (15.5 KB)


LogomotionScorer.zip (15.5 KB)

Updated.

Added ability to clear individual pegs (long press on a peg)
Added selected tube highlighting
Added 3 ubertube limit on the grid, which can be disabled on the app’s new settings page.

LogomotionScorer.zip (19.6 KB)


LogomotionScorer.zip (19.6 KB)

I don’t believe you reset the ubertube limit counter when you clear the pegs - I’m looking at an empty rack after hanging three ubertubes then clearing them. Attempting to add another ubertube brings up the 3 tube limit error message.

Keep up the improvements!

It doesn’t work at all on my unrooted Droid 2 running Froyo…am I doing something wrong? ::rtm::

Thanks for the reference. Although I do not have an android, I will be sure to show this to my teammates!

You probably need to go to Settings->Applications and enable Unknown Sources.

The latest apk is definitely more accurate than the first one. It looks like you handled the rotation event, but there’s a bug now where opening and closing the Droid keyboard “hangs” the app. In this state I can’t select new tubes to place. I have to force stop it to get functionality back.

As far as the circle goes, it still looks funky to me. It looks circular, but it has a bitmap quality to it. The curves are somewhat stepped and doesn’t look like a true circle. Is there a reason that you went with predrawn images rather than just drawing on the canvas? You could easily do what you’re trying to do by drawing the colored shape (circle, square, triangle) first, followed by a concentric white circle to represent the background, followed by a black dot to represent the peg.

We all start somewhere. It’s what we learn from our experiences that keeps us moving forward.

Works well on my droid x, not rooted.
Thanks!

I did have Unknown Sources enabled for the whole time, yet it still wouldn’t open.

@Travis- You were correct. Fixed in the latest version below.

How do I test this with a virtual device? I don’t see an obvious way to do it with the virtual G1 I have been using and my phone doesn’t have a keyboard.

I haven’t played with the android graphics tools at all. I will take a look at that later this week and see what I get.

Out of curiosity, what size screen are you using? They look fine on my screen, but it is relatively small.

Hallry- What method are you using to install the apk? When you say it doesn’t work at all, do you mean that it doesn’t load at all, you see a black screen, it force closes, or you see the correct screen but can’t do anything?

LogomotionScorer.zip (19.6 KB)


LogomotionScorer.zip (19.6 KB)

It’s good so far…but isn’t there like two sets of grids on each side of the field?

By it doesn’t work, I mean that whenever I try to download the file it says ‘download unsuccessful,’ and that the ‘content is not supported.’ ::ouch::

You probably don’t have an app that supports .zip files.

I know of a couple of ways around this:

  1. You can download the .zip file to your computer, extract the .apk file from it, then put it on your phone’s SD card. Then from the phone you have to find that .apk file to install the app. I imagine you could also email the .apk file to yourself if you don’t want to go through the trouble of connecting the phone to transfer the file over USB.

  2. You can download an app on your phone that handles .zip files. I used ES File Explorer (free in the market). When you download the zip file, it opens with that app. You use the app to extract the .apk file. Then you navigate to the dir where the file was extracted and tap it to install it.

good luck

Got latest version. Looks like the “ubertube counter” is now reset when you clear the grid through the menu option. But maybe it’s not decremented when you clear a peg with an ubertube using the long-tap.

Example:
Place three ubertubes on grid
place other game pieces on pegs with ubertubes
clear one of the pegs with an ubertube - using long-tap
try to add ubertube to any peg: you get the “too many ubers” error message.

Thanks again… this is a pretty cool app!

Thank you very much, I’ll try the second option after I get out of school later. I’ll cross my fingers! :slight_smile:

Yes, but the typically small screen size of android devices makes putting two or more grids on the same screen incredibly impractical. I do however have a plan for this and am hoping the app will support using all four grids by tomorrow evening.

@Hallry- Darist hit the nail right on the head. Since CD doesn’t allow for uploading .apk files, I had to zip it first. Thus you need to unzip it before it will work.

@Darist- Long pressing resets the uber count correctly for me. EDIT: Never mind, found the bug. Only happens with a game piece on an ubertube. Fixed in latest release (see main post).

The Droid screen is 480x854 while the G1 is 320x480 reference. You probably need to utilize the drawable-hdpi, drawable-mdpi, and drawable-ldpi to get the correct image drawn on different devices. As long as you name the files in those directories correctly, it will automatically select the correct resolution for the device it’s running on. If you switch to direct draw, that problem goes away, however, you need to be careful about the size values that you use so that they scale properly to other resolutions.

You can (and should) create multiple emulators of different screen resolutions to make sure things look right.

I’ve never tested the keyboard event in the emulator, but from what I’ve read, people seem to say CTRL-F11 triggers the keyboard open/close event. I’ve used that to change orientation, but maybe it also changes the keyboard as well. You can test this easily by throwing a breakpoint in your config change handler and checking out the contents of the config object.

As far as your comment about the screen size being small, I have to disagree. If you force your layout to be landscape, you have as much horizontal room as you need. Then, maybe don’t draw giant images for your tubes. Rather, direct draw smaller shapes to fit more on the screen. I’m sure that you’ll be able to get more on there and make it useful. As a tip, when you’re direct drawing something like this, make it all based on constants so you can quickly change things like peg radius, peg x/y grid spacing. etc

You can get quite a bit on the screen in landscape mode if you don’t care about multitouch (if you think there are differences between screen resolutions, you should see the differences in multitouch capability).

Well I downloaded the ES File Manager, and it works perfectly now. Thanks a bunch! :smiley: