In this part of my how to make Android apps tutorial I will cover the following topics : strings.xml, Linear Layouts, Toasts, Event Handling, Excepting User Input, Translation, EditText, Button and a whole bunch of other topics.
If you missed part 1 of this series, or if you need to install Android Studio I have you covered with these links. For translation you’ll need the ISO 639-1 Codes as well. All of the code from the video can be found below.
If you like videos like this, it helps me if you share on Google Plus with a click here [googleplusone]
Code From the Video
MainActivity.java
activity_main.xml
strings.xml Default
strings.xml Spanish
Hi Dr Derek,
Can I use java 1.8?
how to make canvas?
Thanks
Hi,
A canvas tutorial is coming. It is better to avoid Java 1.8. I show how to set everything up in my Android Studio tutorial
By the way: be careful when you try to create strings.xml file. I recently managed to overwrite mine, when I rightclick on values-en and told him to create a new value-xml.
🙁
So make a backup before trying to create strings in other languages.
Thanks for your tutorials. I rely on them heavily to learn. I am having a problem with the Android Studio. If I create a project, it uses Activity. If I change it to ActionBarActivity and try to import this it doesnt find it until I add compile ‘com.android.support:appcompat-v7:+’ to the gradle dependencies. This fixes the ActionBar import, but leads to a new problem I cant solve, the compile gives the following.
Error:Execution failed for task ‘:app:processDebugManifest’.
> Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1
I would appreciate your help. I see that the Android studio has a lot of nice features, but so far I havent been able to get any of your
projects to compile.
Thank you
Mike Keur
mike.keur@gmail.com
You’re very welcome 🙂 When you start a new app select ActionBarActivity as the type of app you want to make in the starting dialog boxes. This will avoid a bunch of strange errors.
Hi Derek,
Great tutorials as always. I’m staring on Android series and got to this one so far. But along the way I think I missed the section where you describe how to export our apps to the phone. There are posts out there on how to export APK, but rather involved.
I was wondering if you have covered it using the Android Studio and I just missed it or in one upcoming videos?
Thanks
Moj
Never mind Derek. I just went ahead and copied the apk file off of the build/outputs/apk folder to the phone and installed the app fine. I guess ultimately we’d want the version w/out the debugging, since this file is called app-debug.apk.
Thanks again.
Here you go http://stackoverflow.com/questions/16622843/how-do-i-export-a-project-in-the-android-studio