try { Button bt = (Button)findViewById(R.id.buttonconnect); bt.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click Intent serverIntent = new Intent(MainActivity.this,DeviceListActivity.class); startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE); } }); }catch(Exception e){ e.printStackTrace(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)