The following code gives "unable to open stack traces error" I am trying to send data from Java Client on Android to Java File (https:// github.com/rabbitmq/rabbitmq-tutorials/blob/master/java/Recv.java)
I have also included the permissions of "write_external_storage" and "internet". If I disable the "handler.post(send)" then it doesn't gives the error but the job is not done. Android Code: TextView mOutput; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mOutput = (TextView) findViewById(R.id.output); Handler handler = new Handler(); Runnable send = new Runnable(){ public void run() { // TODO Auto-generated method stub send(); } }; mOutput.append("/nBefore"); handler.post(send); mOutput.append("/nAfter"); } private void send(){ Thread thread = new Thread(){ @Override public void run(){ ConnectionFactory factory = new ConnectionFactory(); factory.setHost("sethost"); Connection connection = null; try { connection = factory.newConnection(); mOutput.append("/ninstance1"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Channel channel = null; try { mOutput.append("/ninstance2"); channel = connection.createChannel(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { mOutput.append("/ninstance3"); channel.queueDeclare("hello", false, false, false, null); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } String message = "Kamran Android E"; try { mOutput.append("/ninstance4"); channel.basicPublish("logs","hello", null, message.getBytes()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }; thread.start(); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en