I had a problem when I create an array of strings, this only happens in 2.1 android api level 7 or lower, and I need to install the application on a device with this configuration, any idea how to solve the problem? A message appears on the screen below the source code, as well as a logcat message.
CODE:
private String[] fillPedidosName() {
TipoPedidoDAO tipoDAO = null;
try {
tipoDAO = new TipoPedidoDAO();
pedidosList = tipoDAO.selectAll();
String[] temp = new String[pedidosList.size()];
for (int i = 0; i < pedidosList.size(); i++) {
if (pedidosList.get(i) != null) {
temp[i] = pedidosList.get(i).getDescricao().toString();
}
}
return temp;
} catch (Exception ex) {
MyLoger.logar(ex);
return null;
} finally {
if (tipoDAO.getDB().isOpen()) {
tipoDAO.closeConnection();
}
}
}
MESSAGE THAT ALLOWS TO DISABLE:
Asynchronous exception handling queue handling Asynchronous exception handling queue processing java.lang.UnsupportedOperationException
MESSAGE lOGCAT:
03-03 17: 57: 57.124: ERROR / jdwp (1267): REQ: UNSUPPORTED (cmd = 2/11 dataLen = 8 id = 0x0012ba)
source
share