Permalink
Browse files

Show applicationKey argument in sample

  • Loading branch information...
1 parent 5a27914 commit 1cf7c0d2dcd778a1cee5b11dc75bb87062616d1f @ermau ermau committed Feb 19, 2013
Showing with 5 additions and 2 deletions.
  1. +2 −1 samples/todo/Android/MainActivity.cs
  2. +3 −1 samples/todo/iOS/SampleViewController.cs
@@ -13,7 +13,8 @@ namespace Sample
[Activity (Label = "Azure Mobile Services Sample", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
- private static readonly MobileServiceClient MobileService = new MobileServiceClient ("MOBILE SERVICE URL");
+ private static readonly MobileServiceClient MobileService =
+ new MobileServiceClient ("MOBILE SERVICE URL", "APPLICATION KEY");
protected override void OnCreate (Bundle bundle)
{
@@ -11,7 +11,9 @@ namespace Sample
{
public partial class SampleViewController : UIViewController
{
- private static readonly MobileServiceClient MobileService = new MobileServiceClient ("MOBILE SERVICE URL");
+ private static readonly MobileServiceClient MobileService =
+ new MobileServiceClient ("MOBILE SERVICE URL", "APPLICATION KEY");
+
private readonly IMobileServiceTable<TodoItem> todoTable = MobileService.GetTable<TodoItem>();
static bool UserInterfaceIdiomIsPhone {

0 comments on commit 1cf7c0d

Please sign in to comment.