try {
final URL url=Utils.getServerURL(toNonNull(context),"/get");
final HttpURLConnection conn=(HttpURLConnection) url.openConnection();
try {
final URL url=Utils.getServerURL(toNonNull(context),"/get");
final HttpURLConnection conn=(HttpURLConnection) url.openConnection();
final String user=PreferenceManager.getDefaultSharedPreferences(context).getString("username", null);
final String password=PreferenceManager.getDefaultSharedPreferences(context).getString("password", null);
if(user == null || password == null)
final String user=PreferenceManager.getDefaultSharedPreferences(context).getString("username", null);
final String password=PreferenceManager.getDefaultSharedPreferences(context).getString("password", null);
if(user == null || password == null)
Log.d(getClass().getName(), "Poll got command "+command.command+" with "+((command.args.length==0)?"no args":"args "+Utils.join(
" ",toNonNull(command.args))));
Utils.processCommand(
Log.d(getClass().getName(), "Poll got command "+command.command+" with "+((command.args.length==0)?"no args":"args "+Utils.join(
" ",toNonNull(command.args))));
Utils.processCommand(
toNonNull(command.command),
toNonNull(command.args),
new Address(toNonNull(Protocol.HTTP), command.replyto));//NOPMD address depends on command
toNonNull(command.command),
toNonNull(command.args),
new Address(toNonNull(Protocol.HTTP), command.replyto));//NOPMD address depends on command