Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
Let's create a new project for our weather app, Stormy.
Version Information
- Android Studio Version for this course is: 3.0.1
Useful links
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Before we start our project,
let's briefly talk about our tools.
0:00
Android Studio is constantly evolving.
0:04
Things in this video might
be slightly different
0:07
if you are using a newer version.
0:10
However, the code and concepts you see
here won't change much, if at all.
0:12
If you run into any difference, reach out
for help in the Treehouse Community forum.
0:18
Keep your eyes on the teacher's
notes as well for
0:23
any known issues or helpful comments.
0:25
If you spot a difference somewhere,
check the notes first, and
0:27
then let us know if
we've missed something.
0:31
Let's head into Android Studio and
start a new project.
0:34
For application name, let's use Stormy.
0:37
And for the company domain,
I'll use teamtreehouse.com.
0:42
Notice that even though Stormy is
capitalized in the application name field,
0:46
there aren't any uppercase
letters in the package name.
0:50
For this app, we won't need C++ support,
so we can leave that unchecked and
0:54
hit next.
0:58
We'll want to use our app on phones and
tablets.
0:59
But which API version should we choose?
1:02
Click on the Help me choose link.
1:04
Here, we see that if we target API level
19, or KitKat, we get coverage for
1:06
over 90% of current devices, and have
access to many of the latest features.
1:13
So let's choose that one, and click OK.
1:18
We won't be building this app for
other devices, so we can select Next here.
1:22
For the activity type,
select Empty Activity, and hit Next.
1:29
For activity configuration,
we can accept the defaults here,
1:34
with the activity name being MainActivity.
1:37
This allows Android Studio to generate
a layout file named activity_main,
1:40
and maintains backwards compatibility.
1:45
Great, we can now click Finish, and
1:49
let Android Studio generate
our starter project code.
1:51
We haven't written much,
or any code yet, but
2:00
we're off to a great start by
setting the stage for our project.
2:03
With our understanding of what an API is,
and how we're going to use it,
2:07
we can take a closer look at the DarkSky
API and start working with it in our code.
2:11
When we get back together
in the next stage,
2:17
let's see how we can get some
weather data from the web.
2:20
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up