Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn Android 4.0 Programming in Java
Rating: 4.4 out of 5(4,038 ratings)
214,686 students

Learn Android 4.0 Programming in Java

Learn to write real, working Android applications quickly and effectively, from the ground up.
Created byJohn Purcell
Last updated 4/2014
English

What you'll learn

  • Learn how to create Android applications

Course content

7 sections96 lectures15h 21m total length
  • Nuts and Bolts Introduction3:41
    What we're going to cover in the first section of the tutorial.
  • Setting Up Your System8:48

    How to install the free software that you'll need to develop for Android.

  • Creating An Emulator7:56

    You'll need an emulator to see your first program running. We'll create one in this tutorial.

  • Hello World4:49

    Finally, it's time to create a "Hello World" application!

  • The EditText View11:56

    The EditText "View" lets the user enter text. We'll use it in our application to let the user save some notes.

  • Buttons And Linear Layouts8:28
  • Responding To Button Clicks6:46

    In this tutorial we'll add some code that will get run when the "save" button is clicked.

  • Important Notes0:09
  • Debugging With DDMS And Logcat6:47

    In spite of the ferocious-sounding names, DDMS and logcat are very easy to work with and will help you double-check what's going on in your application. In this tutorial we'll use DDMS to double-check that our button click handler is working as expected.

  • Saving Files To Internal Storage11:26

    There are various options for saving data in Android; search for "android storage options" in Google for more info. We'll be taking a look at some of them in this course, starting with saving files to internal storage in this tutorial.

  • Reading Files From Internal Storage7:34

    Now that we've written a file to internal storage, in this tutorial we'll move on to reading it.

  • String Resources and Localization6:58
  • Creating Launcher Icons9:46
    You can, and should, create a nice icon to launch your application with. There are a few little complications to creating graphics for phones, but we'll get the hardest bit out the way right here!
  • Running On Your Phone7:26
  • Saving Program Data: Preferences8:59
    Preferences allow you to save small amounts of data -- single boolean values, integers and so on -- in such a way that the data persists between runs of your application.
  • Toasts: Alerting the User5:13
    Toasts are little dialogs which go away by themselves, enabling you to mention something to the user without being too annoying in the process.
  • Adding a New Activity4:19
    Applications often consist of more than one activitiy. Here we'll create a second activity that we're going to use to display an image.
  • Displaying Images with the ImageView View7:07
    The ImageView view lets you display images.
  • Getting Touch Coordinates9:56
    You can use touch listeners to find out exactly where the user touches the screen.
  • Alert Dialogs6:16
    If you really want a dialog and not a toast, you can have one. Here we use one to make sure the user has absolutely definitely read our information before proceeding.
  • The Event-Listener (aka Observer) Pattern14:44
    While not Android-specific, I'll be using the Event-Listener pattern to simplify the code a little bit. We'll cover it here. If you only want to know Android-specific stuff, you can skip this tutorial. But if you want to increase your mastery of Java, stay tuned.
  • Creating a Database6:47
    Android incorporates the SQLite database. Here we'll see how to create a database that your application can use to store data. I assume you know basic SQL for this tutorial, or else at least don't mind seeing a bit of SQL from time to time ...
  • Adding Data to a Database11:13
  • Retrieving Data from Databases11:16
    Once we've covered retrieving values from our database, we'll finally be able to check that it actually works ....
  • Asynchronous Tasks: Running Stuff in the Background10:56
    Asynchronous tasks let you execute stuff in the background. If you have a task that takes up to a few seconds, it's best to execute it in the background rather than hold up your main application thread, freezing the interface. Note: if you have a task that takes more than a few seconds, you need to look into more general Java concurrency; check out my free tutorials on multithreading on www.caveofprogramming.com. 
  • Verifying the Passpoints: Getting Return Values From Asynchronous Tasks47:36
    You can't update the main thread from the doInBackground method of an asynchronous task. So how can you return data from your processing? We'll look at that here. 
  • Supporting Different Screen Resolutions4:45
    You can declare the screen sizes your application supports in the manifest file, and indeed you should ....
  • Intents and Launching Activities6:00
    To tell your phone to do something programmatically, you need to create an "intent". Here we'll use an intent to launch an activity.
  • Nesting ViewGroups7:08
    You can nest ViewGroups to create quite complex layouts, although this isn't always the most efficient way to arrange your screen.
  • Option Menus12:50
  • Passing Data to Activities7:37
    Often you want to start some activity and send it some data at the same time, perhaps instructing it to take some special action.
  • Sub-Activites8:49
    You can trigger an activity and return later to the activity you triggered it from. This is very useful for stuff like taking photos in your application, as well as about a million other things, so we'll take a look at it here.
  • Taking Photos6:28
  • Saving and Displaying Photos18:30
    How to save the photos you take and use them in your application, plus a first look at permissions in Android.
  • List Views14:31
    ListViews allow the user to choose between a bunch of different options. They're one of the commonest Android views, so well worth knowing.
  • Dynamically Populating Lists6:50
    You can populate your lists dynamically at runtime, rather than hardcoding values. We'll also look at retrieving string array resources in this tutorial.
  • Formatting List Items: Custom Adapters30:54
  • Using Icons in Views17:17
  • Styles and Themes15:53
    You can take style information (fonts, colours, etc) out of your XML layouts and put them in separate stylesheets instead. That way you can more easily re-use a given style, and you can collect all style information together in one place. A style for an entire activity is known as a theme. In this tutorial we'll use styles to style our list demo.
  • Selectors9:53
    Selectors are drawable items that change depending on your application state. We'll use color selectables here to change the color of list items temporarily when you click on them.
  • Relative Layouts12:05
    Relative layout is a very powerful ViewGroup that allows you to create complex arrangements of Views by positioning them relative to each other.
  • Browsing the Gallery7:25
    How to browse the gallery from your application by launching an appropriate sub-activity.
  • Retrieving an Image from the Gallery14:47
    Once you've browsed the gallery and selected an image, you have to do a little work to convert the URI of the image to a file name ....
  • The Activity Lifecycle and Saving Data8:15
    All activities have a "lifecycle", which you need to understand and can use to your advantage.
  • Pre-Publication Checks6:03
    Some things you shouldn't forget to do before attempting to publish your app.
  • Taking Screenshots of Your App0:39
    You can use DDMS to take screenshots of your application, which you can then use when you publish your app.
  • Signing and Exporting Your App3:58
    You need to sign your application by creating a digital certificate before you can publish it. In this tutorial we'll see how to create a digital certificate and export the app as an .apk file, signed with the certificate.
  • Publishing Your App5:59
    Once you've digitally signed and exported your app, it's easy to publish it --- although you do need to pay 25 USD for a developer account before you can publish apps. We'll look at the process here.

Requirements

  • You should ideally already know some Java before taking this course.

Description

A practical guide to Android development. Learn to create Android programs using Java, and create the app of your dreams!

Who this course is for:

  • Anyone who wants to create Android apps