2012-10-29 35 views

回答

0

答案是1部分RTFM和1部分驚訝於調試器的工作原理。

Github使用AccountManager。您可以在文檔的開始:http://developer.android.com/training/id-auth/custom_auth.html#ExtendThatThing

<service 
     android:name=".accounts.AccountAuthenticatorService" 
     android:exported="false" 
     android:process=":auth" > 
     <intent-filter> 
      <action android:name="android.accounts.AccountAuthenticator" /> 
     </intent-filter> 

     <meta-data 
      android:name="android.accounts.AccountAuthenticator" 
      android:resource="@xml/authenticator" /> 
    </service> 

第2部分 - 通過AccountAuthenticator內設置將不會觸發,因爲它們不在同一個thread com.github.mobile運行默認破發點。相反,它運行爲「com.github.mobile:auth」。您需要進入DDMS透視圖,以martk com.github.mobile:auth作爲可調試的斷點使用。