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
Can android lollipop be upgraded to marshmallow?
Why do we use gridlayout in android
what is the difference between this and getapplicationcontext in android?
Explain IP datagram, Fragmentation and MTU
what are the other notifications in android?
What’s wake locks?
How do I turn off, or reboot Android?
Where are permissions declared?
Features of Android:
What is sensormanager?
Are the android apps first scrutinised by google?
What are the storage facilities available on android?