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
Why we use linux id in android?
What is android?
If I have a Motorola Android-based device that doesn’t have the Android Market app, can I still download the GoToMeeting app?
What is the google android sdk?
What is the advantage of android?
How does aosp relate to the android compatibility program?
What is lifecycle of an activity?
What is xml/ directory?
What is the name of the database used in android?
What's the latest android operating system?
What features does it have?
Could you name a few key components of android?