Twitter Androidアプリケーションを実行しようとしています。私はまだログインに取り組んでいます。そのため、友人から使用を勧められた後、asynctaskloader を使用しています。次の行で null ポインター例外が発生すると思います。
this.consumer = (OAuthConsumer) new getCommonsHttpOAuthConsumer(context);
ここに私の asynctaskloader クラスがあります:
class getCommonsHttpOAuthConsumer extends AsyncTaskLoader{
public getCommonsHttpOAuthConsumer(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
public OAuthConsumer loadInBackground() {
// TODO Auto-generated method stub
return new CommonsHttpOAuthConsumer(Constants.CONSUMER_KEY, Constants.CONSUMER_SECRET);
}
}
私は何を間違っていますか?もっとコードを見る必要がありますか?ありがとうございました。