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
There are five different methods to store persistent data. They are: shared preferences. Internal storage. External storage. Network and __?
What is the correct way to check if a Compass sensor is present on the system? Explain your answer.
What are some of the disadvantages of android?
What is fragment?
Can you run exe files on android?
Is sim pin code working?
How do you access the string resource stored in the strings.xml file?
How are escape characters used as attribute in Android?
0 Answers TryTechnicals Pvt Ltd,
What do you know about intents?
Specify key disadvantages of android?
What is dalvik virtual machine?
What is viewholder-pattern?