Code example for ImageButton

Methods: setEnabled, setTag

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 
	public void onClick(View view)