I'm a beginner to android. I need to know is there any intent to open the Create Message window. I tried with this code -
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
But, it raises, Gmail, Email & Message
I need to raise only message. In my application i've to integrate this when i press the button. Can anybody know this? Guide me.
You can just in your xml file add
android:onClick = "onClick"
and in activity:
//main buttons listener
public void onClick(View view)
{
switch (view.getId())
{
case R.id.sms:
Intent intentsms = new Intent( Intent.ACTION_VIEW, Uri.parse( "sms:" + "" ) );
intentsms.putExtra( "sms_body", "Test text..." );
startActivity( intentsms );
break;
}
}