Sending data via Bluetooth with Android
问题 Ive written code that connects and sends data from an Android device to another via Bluetooth. It all works when run from that class. When I create an instance of the class the data gets sent to the output stream before the connection creation has finished. How do I check that the connection is up before sending data? package com.flightscope.app.metawatch; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.InvocationTargetException;