Correct Answer: All of these
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Android Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Android Programming MCQ Questions
Why is a Parcelable used?
What class does Android use to communicate a request for an action to be performed?
Which AsyncTask method does not run on the UI thread?
How to notify a Fragment is visible when they are inside a ViewPager?
Which method should be used to refresh the ActionBar if you use ActionBarCompat library?
Which are possible states of a process?
Following methods called during the life cycle of an android activity are?
Which common design patterns are used in Android?
What's the output? final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final List pkgAppsList = getPackageManager().queryIntentActivities(mainIntent, 0); for (Object object : pkgAppsList) { ResolveInfo info = (ResolveInfo) object; File file = new File(info.activityInfo.applicationInfo.publicSourceDir); // … }
If you are going to check a network connection with the below source code, what would be required to make it work? public boolean isOnline() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); if (netInfo != null && netInfo.isConnectedOrConnecting()) return true; return false; }