1
我想通過谷歌數據API獲取我的博客數據谷歌Android Data API的崩潰
我寫了這個代碼:
public class blogger extends Activity
{
private GoogleService myService;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
myService = new GoogleService("blogger", "test-blogger-0");
try {
myService.setUserCredentials("[email protected]", "112233");
} catch (AuthenticationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
,但它總是在墜毀:爲myService =新GoogleService( 「博客」 ,「test-blogger-0」);
扔了「java.lang.ExceptionInInitializerError」
有人能告訴我爲什麼嗎?
我有同樣的錯誤,不知道如何解決這個問題。 – Orlando 2011-06-16 20:41:40