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

Post New Answer

More Android OS Interview Questions

what is a binder service in android and how it differs from started service?

0 Answers  


what is a toast notification in android?

0 Answers  


Which kernal is used in android?

0 Answers  


How would you update the ui of an activity from a background service?

0 Answers  


What is google dagger?

0 Answers  


In sencha touch, app folder contains?

0 Answers  


Please explain the difference between nine-patch image vs regular bitmap image?

0 Answers  


What is the API profile exposed by Mono for Android?

1 Answers  


How do I upgrade to android lollipop?

0 Answers  


Can you run exe on android?

0 Answers  


Does android have a file manager?

0 Answers  


What are the different states wherein a process is based?

0 Answers  


Categories