Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);
sendIntent.setType(HTTP.PLAIN_TEXT_TYPE); // "text/plain" MIME type
startActivity(sendIntent);
Under what condition could the code sample below crash your application? How would you modify the code to avoid this potential problem?
1977
04-Aug-2015
Updated on 05-Aug-2015
Anonymous User
05-Aug-2015