Skip to content

Instantly share code, notes, and snippets.

@junojisan
Created April 12, 2014 13:28
Show Gist options
  • Save junojisan/10535883 to your computer and use it in GitHub Desktop.
Save junojisan/10535883 to your computer and use it in GitHub Desktop.
@Override
public PartnerConnection loadInBackground() {
PartnerConnection connection = null;
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username);
config.setPassword(password);
try {
// PartnerConnectionのインスタンス生成時にログインが実行される
connection = Connector.newConnection(config);
} catch (ConnectionException e) {
e.printStackTrace();
}
return connection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment