I want to use a floating action button for opening a new message from my android phone. I have used startActivityForResult() method for successfully opening settings. But when I use the same for opening messages, this method doesn't seem to work. I have also attached my code to be more clear.
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
startActivityForResult(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS),0);
/*Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();*/
}
});