Page 997 - 3-2
P. 997
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
public class StorageActivity extends AppCompatActivity {
String check = "X";
String msg;
private static final boolean D = true;
public static BluetoothService btService = null;
// Debugging
private static final String TAG = "Main";
// Intent request code
private static final int REQUEST_CONNECT_DEVICE = 1;
private static final int REQUEST_ENABLE_BT = 2;
String box1 = null;
String box2 = null;
String box3 = null;
ImageButton box_one;
ImageButton box_two;
ImageButton box_three;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_storage);
box_one = (ImageButton)findViewById(R.id.box1);
box_two = (ImageButton)findViewById(R.id.box2);
box_three = (ImageButton)findViewById(R.id.box3);
if(btService == null) {
btService = new BluetoothService(this, mHandler);
- 997 -