Advertisement
Guest User

Untitled

a guest
Oct 17th, 2014
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public class MainActivity extends Activity
  2. {
  3. Button b1;
  4. public static TextView t1;
  5. BleService BLE = new BleService();
  6. public static final String TAG = "BleService";
  7.  
  8.  
  9. @Override
  10. protected void onCreate(Bundle savedInstanceState)
  11. {
  12. super.onCreate(savedInstanceState);
  13. setContentView(R.layout.activity_main);
  14. b1=(Button) findViewById(R.id.button1);
  15. t1 =(TextView) findViewById(R.id.textView1);
  16. //start services
  17.  
  18. b1.setOnClickListener(new OnClickListener()
  19. {
  20. @Override
  21. public void onClick(View v)
  22. {
  23. BLE.startServices();
  24. }
  25.  
  26. });
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement