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
So, how should I go about picking an Android phone?
Is the main thread called the ui thread?
Explain the four java classes related to using sensors on the android platform?
what is a handler thread?
Which dialog box can you use in you android application?
What is a sticky intent in android?
to write a back ground functionality in an activity, should I use a thread or service?
What is foreground service?
What is motion tween?
What are the services that can be allowed to run in a single process?
What is the APK format in Android?
What is api level, codename of android 2.3.3 – 2.3.7?