Under what condition could the code sample below crash your application? How would you modify the code to avoid this potential problem? Explain your answer.
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);
No Answer is Posted For this Question
Be the First to Post Answer
“Gingerbread” is nickname of which version?
List the type of android application?
What is gradlew.bat?
State the difference between a regular bitmap and nine- patch image?
What is motion tween?
What is android version 9 called?
What is the difference between serializable and parcelable?
How can your application perform actions that are provided by other application e.g. Sending email?
What are the three layout managers?
What are the notifications available in android?
Is the main thread called the ui thread?
Explain how to send sms in android?