2012-11-09 6 views
2

다른 누구도 Windows Phone 8 용 SkyDrive API에 문제가 있습니까? 내가 로그인 버튼 (스카이 드라이브) 나는 다음과 같은 화면을 얻을 클릭하면 내가 윈도우 폰 8에 내 윈도우 폰 7 코드를 업그레이드하고 (WP7에서 변경)skydrive api windows phone 8

enter image description here

이 코드은 VS2010에서 작업하는 데 사용 . 누구든지이 문제가 있습니까? 내가 사용해야하는 최신 버전이 있습니까 (현재 버전 v2.0.50727)?

현재 XAML : 코드 숨김

    HorizontalAlignment="Left" Margin="308,71,0,0" 
       Name="signInButton1" VerticalAlignment="Top" Width="160" 
       ClientId="[myID]" Scopes="wl.skydrive_update" 
       TextType="SignIn" SessionChanged="btnSignin_SessionChanged" 
       Branding="Windows"/> 

로그인 :

private void btnSignin_SessionChanged(object sender, LiveConnectSessionChangedEventArgs e) 
    { 
     if (e.Status == LiveConnectSessionStatus.Connected) 
     { 
      client = new LiveConnectClient(e.Session); 
      infoTextBlock.Text = "Signed in."; 
      client.GetCompleted += 
       new EventHandler<LiveOperationCompletedEventArgs>(OnGetCompleted); 
      client.GetAsync("me", null); 
      for (var i = 0; i < this.ApplicationBar.Buttons.Count; i++) 
      { 
       var button = this.ApplicationBar.Buttons[i] as ApplicationBarIconButton; 
       if (button != null) 
       { 
        if (button.Text == "Upload") 
        { 
         button.IsEnabled = true; 
        } 
       } 
      } 
     } 
     else 
     { 
      infoTextBlock.Text = "Not signed in."; 
      client = null; 
     } 
    } 

UPDATE!

나는 계속 노력 중이며 나는 여전히이 흰색 화면을 얻고 있었다. 그러나 돋보기를 클릭하고 다시 화살표를 누르면 (다시 시작한 후) 다시 로그인을 시도하고 작동했습니다. 그래서 이것은 완고한 것입니까, 아니면 무엇입니까?

+1

에뮬레이터를 사용하는 경우 에뮬레이터가 느려질 수 있습니다.) – Typist

답변

0

추가 검토 후, 이것이 에뮬레이터 문제라고 생각합니다. 내가 그걸로 충분하면, 결국 효과가있다.

0

에뮬레이터에 MS 계정이 없어서 에뮬레이터에서 LiveSDK를 사용할 수 없다는 내용을 읽었습니다.

따라서 디버깅을 위해 물리적 장치를 사용해보십시오. 그것은 나를 위해 일합니다.