try{
sock = SocketChannel.open(new InetSocketAddress(hostname, port));
} catch (final IOException e){
- Utils.sendMessage(context, replyTo, toNonNull(context.getString(cannot_connect_to_host_on_port, hostname, Integer.valueOf(port))));
+ Utils.sendMessage(context, replyTo, cannot_connect_to_host_on_port, hostname, Integer.valueOf(port));
try {
in.close();
} catch (IOException ex) {
try{
in.transferTo(0, in.size(), sock);
} catch (final IOException e){
- Utils.sendMessage(context, replyTo, toNonNull(context.getString(io_error, e.getMessage())));
+ Utils.sendMessage(context, replyTo, io_error, e.getMessage());
} finally {
try{
in.close();
sock = new Socket(hostname, port);
in = sock.getInputStream();
} catch (final IOException e){
- Utils.sendMessage(context, replyTo, toNonNull(context.getString(cannot_connect_to_host_on_port, hostname, Integer.valueOf(port))));
+ Utils.sendMessage(context, replyTo, cannot_connect_to_host_on_port, hostname, Integer.valueOf(port));
try {
out.close();
} catch (IOException ex) {
while((nread = in.read(buffer)) > 0)
out.write(buffer, 0, nread);
} catch (final IOException e){
- Utils.sendMessage(context, replyTo, toNonNull(context.getString(io_error, e.getMessage())));
+ Utils.sendMessage(context, replyTo, io_error, e.getMessage());
} finally {
try{
out.close();
CommonDataKinds.Phone.LABEL);
while(inCursor.moveToNext())
- Utils.sendMessage(context, replyTo, toNonNull(context.getString(contact_info,
+ Utils.sendMessage(context, replyTo, contact_info,
cursor.getString(0),
inCursor.getString(0),
- phoneNumberType(context, inCursor.getInt(1), inCursor.getString(2)))));
+ phoneNumberType(context, inCursor.getInt(1), inCursor.getString(2)));
inCursor.close();
}