For those who are not aware, Android is the open source smart phone operating system developed by internet giant, Google. Being open source allows the operating system to be placed on any "smart" mobile device by any manufacturer for free, this being the reason in which it is now so widely adopted. I have had an Android device for over two years now and have just recently acquired a brand new Android mobile device...it is clear to see the progression in terms of capabilities.
The Android API in which developers use to program games and applications for Android features two main languages, Java and XML. XML is a web standard language that is humanly readable and is used to create structured data files. Using this, Android allows the separation from programming logic (Java) and the user interface design (defined in XML), making it more easily understood by programmers and making it easier to alter the design of an Application. This is different from the type of programming in which I am used to where design and content are tied together like in C# for Windows.
After browsing the internet for some books on Android application development, I read through one following an example of creating a Sodoku game to get the basic idea of how to create buttons, using the different view types available and how to link them to event listeners so that when a user presses it, a new screen is loaded. Looking at some Android applications available, it is clear that a high level of customization is needed in order to make the applications unique and have a generally nice looking UI. One of the issues is with the Android title bar, it is very simple and generic. The Twitter app for Android has a very nice title bar in which contains the logo and two buttons placed over a custom size and colour title bar, giving a professional look and feel to the app. Following this I learned how to create custom themes for elements within the application, altering the generic title bar into one that contains an image and a different colour by means of creating a test application. This test application was run directly on my Android 2.3 device at compile time successfully and is definately a way in which I will be using it to create a professional UI for my NFC application. I have kept the source code for future use. I will be continuing my learning process of the Android SDK through reading more books available online, creating backup source files for future use until a point where my tutor Geoff Lund is able to provide me with an NFC reader/writer in which I can then begin to use the Android NFC functionalities within some test applications.
Hi Paul, I've read that your working on an NFC project in Android. I am currently doing some tests as well and I am having trouble with writing NFC tags. How did you write them in Mifare 1K? Do you have some example code that could guide me? Thanks very much!
ReplyDeleteHey Daniel, totally just realised that i replied to the blogspot email address by mistake, I replied to it ages ago haha. How did you get on with nfc? Not updated this blog in a while, didn't have time to keep it up. If you still need help give me a shout. Cheers, Paul.
ReplyDelete