Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainActivity extends Activity
- {
- Button b1;
- public static TextView t1;
- BleService BLE = new BleService();
- public static final String TAG = "BleService";
- @Override
- protected void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- b1=(Button) findViewById(R.id.button1);
- t1 =(TextView) findViewById(R.id.textView1);
- //start services
- b1.setOnClickListener(new OnClickListener()
- {
- @Override
- public void onClick(View v)
- {
- BLE.startServices();
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement