Common Errors
Android General
RecyclerView
Directories and Organization
Resource Folder
Random Fact
100
Where should we check if we get an error?

Logcat

100

What is a model?

A model is an arbitrary object (custom object).

100

What is a RecyclerView?

An efficient way for displaying scrolling list data.

100

The location of stored shapes, icons, and images.

Drawables folder

100
What is the string.xml file used for?

Eliminates the use of hardcoded strings and used for apps with multi-language features.

100

What were the past android versions based on?

Desserts

200

What is wrong with the code?


Intent intent = new Intent(MainActivity.this, EditActivity.this);

startActivity(intent);

Second parameter should be EditActivity.class

200

What is context?

Refers to what Activity you are in

200

What are the three override methods required for an adapter?

onCreateViewHolder(), onBindViewHolder(), and getItemCount().

200

The location to change the app name in the ActionBar.

AndroidManifest.xml (or strings.xml is acceptable)

200

What do we do with the secrets.xml file to hide our API keys from GitHub?

We add it to the .gitignore file so it does not get pushed to GitHub and become public.

200

What companies did Lance work for? (Must name all to get points)

Paypal and Nissan

300

Difference between VISIBLE.GONE, VISIBLE.INVISIBLE, VISIBLE.VISIBLE.

VISIBLE.GONE: view is invisible and doesn't take up any space for layout purposes.


VISIBLE.INVISIBLE: view is invisible but it still takes up space for layout purposes.

VISIBLE.VISIBLE: view is visible (shown).

300

What does it mean when the method is striked out? Is it okay to still use? (Must have both correct)

Deprecated and yes, it is still okay to use.

300

Where is all the data being populated in each viewholder?

in the bind() method

300

How to instruct AndroidStudio to re-generate its classes and sync it’s libraries.

Build -> "re-build project"

300

How do you make the landscape layout?

New -> Layout Resource File -> set orientation qualifier to landscape

300

What date did FBU start on?

6/22

400

What are the best ways to fix your project if code starts to give errors for no reason.

File -> Invalidate Caches/Restart

Build -> Clean Project

Build -> Rebuild Project

400

What the difference between an Actionbar and a Toolbar?

Toolbars are more customizable than actionbars.

400

True or False: You can add view binding to an adapter.

TRUE

400

Where might you find files that are hidden?

Project View mode

400

How do you center the YouTube play button (ImageView) in the poster image (ImageView)?

Wrap both ImageViews within a container (ex. another layout) and set the attribute to the YouTube button: android:layout_centerInParent="true"

400

Name all the TAs, Lead TAs, and Instructors

Lance, Ellen, Juan, Caston, Tejen, Mark, Rey, Eric, Aldo, Nafis, Matthew, Josephine, Anthony

500

What is the error?

Too many API call requests to the Twitter API.

500

What is the difference between an Activity and a Fragment

An Activity is an application component that provides a screen, with which users can interact in order to do something.

A Fragment represents a behavior or a portion of a user interface in an Activity.

500

True or False: You can only have one RecyclerView and one Adapter per mobile application.

FALSE

500

Where to change/update your Android version?

SDK Manager

500

How do you handle an on-click event for the logout  menu item and the compose menu item?

Override the onOptionsItemSelected, check the given MenuItem id and handle the event corresponding to the menu item.

500

What hat was Tejen wearing during spirit week (funny hats day) and what was his background?

Chef hat with Gordon Ramsey in his kitchen.

M
e
n
u