Friday, June 25, 2010

Login Layout

One major aspect of this application is network usage. To begin I want to make this a seamless process in the code writing, making things much easier for myself. Googling around I couldn't find much in relation to network programming and the funkiness of the Android UI, but I did find something in the documentation about expensive UI tasks and how to deal with them here.

I am starting the project creation as an Eclipse project as recommended. I also want to make sure the game will run on all Android API versions possible so I am setting the minSdkVersion to 2 and will bump as needed, if needed.


My plan for tonight is just getting the initial login window displayed and possibly have a server/client 'handshake.' Working through the layout for the initial login layout I was using a LinearLayout, but have found that the TableLayout has been much easier to work with. Below is my initial layout with a table for the login window. I am sure this will change, but it is a start. Text does not really line up well either right now (check box), not quite sure though I will have to look into the issue a bit later.




HINT: A simple little trick I found was while the application is running in the emulator, in eclipse, Run->Run just re-uploads your apk to the already running emulator. This happens to be a huge time saver. Also, learn the tool adb, it happens to be very nice as well, allowing full control of the device on a terminal level from your computer. Makes killing apps and such much easier.





Notes for next time:
    -Begin looking into socket framework design as I seemed to have not done that tonight. This will be where I start the Message Handler and Thread stuff.
    -Code Examples. I want to put some code examples up once my code becomes, well, cleaner. Right now it's basically chicken scratch.




Tonight's highlights:
    -TableLayout is easier to use than LinearLayout for layouts (unless I missed something....)
    -adb is an amazing tool and should be learned to fully appreciate Android software development.

No comments:

Post a Comment