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 is android so popular?
What are the services that can be allowed to run in a single process?
Explain what is application context?
How do I stop my android os from draining my battery?
Can the user set a priority?
What is after android pie?
List all the versions of android.
Android application can only be programmed in Java?
Can you deploy executable jars on android?
Explain me the difference between oncreate() and onstart()?
Can the bytecode be written in java be run on android?
Tell me what is needed to make a multiple choice list with a custom view for each row?