Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Part 2 of 4: Introduction to Consuming Azure Mobile Services from Android
RECENT POSTS
Fundamentals of Good Gaming – Some general guidelines – Windows 8 App Factor
Posted
3 days ago
by
BrunoTerkaly
1
Comments
Unity & Windows 8 Starter Kits - Windows 8 App Factor
Posted
5 days ago
by
BrunoTerkaly
0
Comments
Windows 8 Game Construction using Scirra’s Construct 2
Posted
6 days ago
by
BrunoTerkaly
0
Comments
Understanding XAMARIN – Create iOS, Android, Mac and Windows apps in C#.
Posted
7 days ago
by
BrunoTerkaly
2
Comments
Windows 8 and Windows Phone 8 .NET Development Overview - Windows8AppFactor
Posted
8 days ago
by
BrunoTerkaly
1
Comments
WINDOWS AZURE BLOG
RSS
http://blogs.msdn.com/b/windowsazure/archive/tags/windows+azure//
WORLD MAPS
MSDN Blogs
>
Bruno Terkaly - Developer Evangelist - bterkaly@microsoft.com
>
Part 2 of 4: Introduction to Consuming Azure Mobile Services from Android
Part 2 of 4: Introduction to Consuming Azure Mobile Services from Android
Rate This
BrunoTerkaly
3 Oct 2012 10:17 AM
Comments
0
Next steps
The next post will cover the following:
Adding data to a relational database
Understanding the application key
Creating a database and a table
Managing the database through the portal
Modifying table structures (adding columns)
Inserting data into the table (TodoItem table)
Previous Posts
Part 1 of 4: Introduction to Consuming Azure Mobile Services from Android
http://blogs.msdn.com/b/brunoterkaly/archive/2012/10/03/part-1-of-5-introduction-to-consuming-azure-mobile-services-from-android.aspx
Part 2 of 4: Introduction to Consuming Azure Mobile Services from Android
http://blogs.msdn.com/b/brunoterkaly/archive/2012/10/03/part-2-of-5-introduction-to-consuming-azure-mobile-services-from-android.aspx
Part 3 of 4: Introduction to Consuming Azure Mobile Services from Android
http://blogs.msdn.com/b/brunoterkaly/archive/2012/10/03/part-3-of-4-introduction-to-consuming-azure-mobile-services-from-android.aspx
Part 4 of 4: Introduction to Consuming Azure Mobile Services from Android
http://blogs.msdn.com/b/brunoterkaly/archive/2012/10/03/part-4-of-4-introduction-to-consuming-azure-mobile-services-from-android.aspx
Download Android Source Code
https://skydrive.live.com/embed?cid=98B7747CD2E738FB&resid=98B7747CD2E738FB%213151&authkey=AN1ukGyTBgIY76Q
No obligation free trial for Azure Mobile Services
http://www.microsoft.com/click/services/Redirect2.ashx?CR_CC=200114759
You will need a trial account for Windows Azure
Please sign up for it here:
http://www.microsoft.com/click/services/Redirect2.ashx?CR_CC=200114759
Note the name of our created service
Service Name
BrunoToDoService
URL
https://brunotodoservice.azure-mobile.net/
Next Steps
Click on BrunoToDoService to prepare to have client applications connect to it.
Managing Our Service (brunotodoservice)
Do the following:
Click on CREATE A NEW WINDOWS STORE APP
This will be just a way to see how data can be added
It isn't the only way, but it will be the way for this post
A future release will provide direct support for iOS and Android
Getting the APPLICATION KEY
You will need the application key and place it in your application.
Perform the following:
Click on MANAGE KEYS
Copy the APPLICATION KEY somewhere safe
Your application key will be different
You will use it inside of Fiddler (Debugging tool) and inside your Android application.
Application Creation Wizard (will create a table in the previously created SQL Database)
The screen presents 3 steps
Step 1
For Windows Devs (get the developer tools and SDK)
Since we are writing code in Java for Android, this step isn't needed
Step 2
This step creates a ToDoItem table in our previously created database
This is the only step we will run
Step 3
This step creates a sample project for Visual Studio and Windows 8.
Since we are writing code in Java for Android, this step isn't needed
Do the following:
Click on CREATE A TODOITEM TABLE
The next step
We should add some data to our TODOITEM table
Adding Data (the table and database already exist)
On the left side of the screen you should see a database icon
This will allow us to add some data
Step 1
Click on the DB icon
Step 2
Click on our recently created database and server
Preparing to add data to our TodoItem table
You could use SQL Server Management Studio to manage the database
But we will use the built in tools
Perform the following:
Click on MANAGE
You may be asked to add your current IP address to the firewall engine so that you can successfully connect.
The firewall is one form of security you can use to protect your database.
You can read more about that here:
http://social.msdn.microsoft.com/Forums/nl-NL/windowsazuretroubleshooting/thread/299469f3-1d7e-4f91-81ed-54a1b7d445bd
Looking at our table structure
We are going to add a column
There is just one column here now
That column is the ID column
We will add a TEXT column.
Perform the following:
Click on DESIGN
Click on EDIT
Looking at our table structure
We are going to add a column
Perform the following:
Click on ADD COLUMN
Add a column called text
Click SAVE at the top
Next we will add some data.
Two rows have been added
There will only be two rows for now
But you can add as many as you like
We added:
Eat Lunch
Finish Blog Post
Next Steps
The next post will cover these topics:
Interacting with Azure Mobile Services using a web proxy client
This can give you an in-depth knowledge of REST and HTTP
Downloading and configuring Fiddler
Using Fiddler to issue GET requests
Thanks..
I appreciate that you took the time to read this post. I look forward to your comments.
0 Comments
Leave a Comment
Name
Comment
Please add 4 and 3 and type the answer here:
Post