In this video, I show you how to create a basic Android app from the very bottom.
Is anyone looking to start a website? You need web hosting and domain registration. Each cost money. I'm with DreamHost and I honestly love them as a hosting company. If you start a website, go to DreamHost (http://dreamhost.com) and use my promo code "MIKEYAWORSKI1" to get free domain registration! That's one fee off the list, now all you need to do is pay for the web hosting. At DreamHost, it's cheap for what you get ($8.95/month). It's one of the best deals out there.
**READ THIS BEFORE POSTING A COMMENT**:
Here is a link to all of the code that I wrote (compare yours to mine): code.mikeyaworski.com/sample_code/building_an_android_app_from_scratch.html
If you're having a problem with your code/app, go to this website:
and paste your code in the box. Select Java as the language in the top right, and then select Create Paste. Copy the URL (link) it brings you to, then comment on this video with a description of the problem and also paste the link you copied.
ALSO, please WATCH THE VIDEO AGAIN to make sure the code you have is correct. People that show me code which is obviously not the code that I wrote because they MISSPELL words are annoying. If you're trying to do what I'm doing in the video and you've made sure that the code is the same, then please comment. I can help with additional problems to the code I've already showed.
Also, please read the error messages that occur and try to solve them yourself. Usually they give you a clear explanation of the problem.
starting it all up
building your layout
starting to code the basic stuff
creating the button listener
getting the user input
displaying text to the screen (on the label)
running the app for the first time
creating a new class for the calculations and creating a static method for it
using the class created to do the calculations
using the constructor method and a non-static method in the class created to do the calculations
creating an instance of the class and using the non-static method to do the calculations
running the app using the class created to do the calculations
This sample app uses user input and does calculations with that user input. A button listener detects when a button is clicked, and then the calculated results are displayed to the screen.
I also show you how to use static methods, non-static methods, and separate classes to perform sample calculations.
Tutorial on How to Prevent Android App From Crashing Due to Invalid Input:
Tutorial for How To Download and Run Android Eclipse - www.youtube.com/watch
Tutorial for Running your Android Eclipse App on your Phone - www.youtube.com/watch
My website: mikeyaworski.com
My contact information and social media: mikeyaworski.com/contact