Tuesday, December 30, 2014

Spread : First steps with Android Studio

Now that I know what I have to do, let's create a new project with Android Studio !

Create New Project

1. File -> New Project
2. Give it the name you want (Spread here) and click Next
3. On next window, select API 15 (which covers more than 84% of android devices out there)
4. Select "Blank Activity"
5. Click on Finish

Add an AppWidget

Now we need to create the home screen widget in the project. Right-click on java folder in your source tree and select Add->Widget->AppWidget
On the next window, configure the widget as shown below:
As you can see, we are creating a resizable home-screen widget with a configuration screen.
Click Finish.

And that's it for this post, we created our project successfully with Android Studio. This is what you should see in your source tree:

Cheers ! :)

Cem SOYDING

Author & Editor

Senior software engineer with 12 years of experience in both embedded systems and C# .NET

0 comments:

Post a Comment

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

 
biz.