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
What is content provider component of android?
Explain the ontrimmemory() method?
How will apps change with android 2.2?
How to call another activity in android?
How to register a broadcast receiver?
How is nine-patch image different from a regular bitmap?
Is android the most popular os?
What is an explicit intent?
What is android os used for?
What is array variable?
You must declare all application components in manifest file in this way?
What is asynctask?