Bound service
Started services are great for background operations, but what if you need a service that’s more…
Started services are great for background operations, but what if you need a service that’s more…
An AsyncTask lets you perform operations in the background. When they’ve finished running, it then allows…
Cursors don’t automatically keep trac of whether the underlying data in the dabase has changed. So…
A cursor lets you read from and write tot the database.Youe specify what data you want…
Android stores data in SQLite database. Why SQLite? Its lightweightSQLite database is just a file. When…
The most basic way to connect items to a ListView (static data) res/values/strings.xml The ListView in…
The AppCompatActivity class is a subclass of Activity. It lives in the AppCompat Support Library, and…
The Android Support Libraries provide backward compatibility with older versions of Android. THey sit outside the…
Activity states Fragment callbacks Activity created onAttach() onCreate() onCreateView() onActivityCreated() onAttach(Context)This happens when the fragment is…
When you create a fragment, Android Studio creates two files for you: Java code for the…
To add a fragment to your project… highlight the folder “app/src/main/java Go to “File” in menu…
What if you want your app to look and behave differently depending on whether itÄs running…
android:gravity=”value” android:gravity lets you say where you want the view’s contents to appear inside the view…
android:layout_gravity lets you say where you want views to appear in their available space. android:layout_gravity deals…
How you specify a linear layout You specify a linear layout using <LinearLayout>. You must specify…
When Android creates and destroys an activity, the activity moves from being launched to running to…
In non-Android Java, you can perform tasks like using a background thread. In Android, that approach…
Every Android app must include a file called AndroidManifest.xml. You can find it in the app/src/main…
Add a cutom class to an Android project by going to File menu -> New ->…
We can get references for our two GUI components using a method called findViewById(). This method…
string.xml is the default resource file used to hold name/value pairs of Strings sot that they…
A static variables value is the same for aALL instances of the class…The static duckCount variable…
Simple rules for building a better inheritance design. DO use inheritance when one class is a…