Tuesday, February 9, 2016

Android First & Second Exercise : Take Form Input and show Output


The first exercise is about getting form input. Input for details like Name, Age etc and the second exercise asks for DOB to be input in a new Dialog box ( for which I used a small deprecated code - showDialog() function ) and also show all the inputs taken from user, in a new Screen (Activity) on the click of "Submit" button and also, the user can clear details on form input screen by clicking "Reset" button.

I have attached the code for the exercise, straight away.

Here it is.

Just extract the code to get a folder, with all the files. Now import this project into Android Studio after closing your current project (by File -> Close Project). While importing, Studio will tell that it's going to change the sdk location to a new one ( because files will have my computer's sdk location ), just click Ok for it and the project should be imported.

I created the above project in Linux Studio. And I m not sure if this will import properly in Windows Systems. I tried importing my Lab folder ( Linux Studio's Folder ) in my Windows System - but I had some problems. Didn't have time to check what the problem was, but it was kinda complicated. Just try importing for now. If it doesn't work out for you too, please ping me asap. I will check on it. I guess I will check about it, before people start pinging me.

And about the code. It's not that easy to understand the code unless you have already read some stuff about Android - layouts and code. Get a friend who knows to code some basics in Android. I m sure you will have some friend. If you don't, use some good tutorial sites and the official site - developer.android.com/develop/index.html

The official site has mentioned (at the end of the this page) some of it's famous video courses available in other sites, but taught by the Android experts from Google.

Other good sites to learn are

www.androidhive.info
http://code.tutsplus.com/categories/android-sdk
www.stackoverflow.com - To debug all your crazy errors! :D

and the list goes on. You can find a few more in DuckDuckGo search engine by Ducking it ( or just Google it as usual ).

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.