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 dagger and explain dependency injection?
What is setlistadapter?
How the nine-patch Image different from a regular bitmap? Alternatively, what is the difference between nine-patch Image vs regular Bitmap Image?
What is the correct way of setting up an android-powered device for app development?
Which are the different tags that are required to create reusable user interface that include the layout?
What is AAPT?
Why do android apps update so often?
What's android 7.0 called?
How one can parse xml in android?
What’s wake locks?
How does manifest file plays an integral role in app development?
What do you know about aidl?