public class MainActivity
extends AppCompatActivity
Modifier and Type | Field and Description |
---|---|
static String |
DEVICE_ADDRESS |
static String |
DEVICE_NAME |
Constructor and Description |
---|
MainActivity() |
Modifier and Type | Method and Description |
---|---|
void |
onCheckedChanged(CompoundButton compoundButton,
boolean b)
Will be called when a switch changes his status
|
void |
onClick(View view)
When a view get clicked
|
public static final String DEVICE_NAME
public static final String DEVICE_ADDRESS
public void onCheckedChanged(CompoundButton compoundButton, boolean b)
compoundButton
- the buttonb
- if the switch is set to true or falsepublic void onClick(View view)
view
-