Android Apps Communication

  • Interacting with Other Apps 
    • Sharing simple data 
    • Sharing files 
  • Sending the User to Another App 
    • Verify There is an App to Receive the...
      View Complete Description
      ×

      Topic Summary

      • Interacting with Other Apps 
        • Sharing simple data 
        • Sharing files 
      • Sending the User to Another App 
        • Verify There is an App to Receive the Intent 
        • Show an App Chooser 
      • Getting a result from an activity 
        • Registering a callback for an Activity Result 
      • Allowing Other Apps to Start Your Activity
Topic Questions:
11
MCQs T/F FiB SQ
4 3 4 0
Question Type Legends

Easy

Medium

Difficult

Multiple Choice Questions for Android Apps Communication

  • 1 Always include a _____ before invoking an intent to avoid crash.
    1. verification step
    2. encapsulate code in try catch block
    3. Both a & b
    4. None

  • 2 Which of the following creates a web intent for to open url "http://www.android.com" in the browser.
    1. Uri webrequest = Uri.parse("http://www.android.com");
    2. Intent webIntent = new Intent(Intent.ACTION_VIEW, "http://www.android.com");
    3. Intent webIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.android.com"));
    4. Intent webIntent = new Uri(Intent.ACTION_VIEW, Intent.parse("http://www.android.com"));

  • 3 Which method of "FileProvider" component class can generate file's content URI?
    1. uriForFile()
    2. getUriForFile()
    3. FileURI()
    4. getUri()

  • 4 Which of the following is the best way to send content outside your app and/or directly to another user.
    1. Broadcast Receiver
    2. Android Sharesheet
    3. Intent Resolver
    4. SMS Or Email

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn and Evaluate

Follow Us
© 2020 - Subject Expert