Code example for ImageButton

Methods: setEnabledsetTag

0
	 */ 
	public void onActivityResult(int requestCode, int resultCode, Context context)
	{ 
		if (requestCode == REQUEST_BLUETOOTH_EN)
		{ 
			bt_action.setEnabled(true);
			if (resultCode != Activity.RESULT_OK)
			{ 
				//User is not allowing this program to turn bluetooth on 
				Toast.makeText(context, "Could not connect to a device!", Toast.LENGTH_LONG).show();
			} 
			else 
			{ 
				//TODO: Unlock device connection elements 
				bt_action.setTag(SCAN);
			} 
		} 
	} 
	 
	@Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE