Posts

Showing posts from December, 2021

sqlite3 commands and window commands

  sqlite3   Command to open up the sqlite3 program in the Command Prompt. sqlite3 shelter.db  Command to open up the sqlite3 program and directly open up the following database file. You can substitute shelter.db for any other existing database file. .open shelter.db  Command inside the sqlite program to open a database file. In this case we are opening the shelter.db file. You can substitute any other existing .db file for shelter.db .help  Command to pint out a list of available commands .quit  Command to quit the sqlite application Terminal Commands Windows Specific echo %cd%  echo asks the computer to print to the screen. In this case, we ask the computer to print the "current directory" (e.g. the directory we are currently working in) using %cd%. cd  Display the current drive and directory. Doe the same as above.

Fragment

Image
  Fragment Lifecycle Because a Fragment can be created, added to the screen, then removed from the screen, it has its own lifecycle. And guess what? Android provides asynchronous callbacks where you can get notified of these state changes. The style of these callbacks is similar to the Activity. Imagine an Activity containing a Fragment that takes up the whole screen. When the Activity is created, the Fragment is created as well. When the Activity is resumed and active, the Fragment is resumed and active as well. There is a close relationship between the Activity lifecycle and the Fragment lifecycle. The Fragment also has additional callbacks where you, as the developer, can get notified when it is attached to the enclosing Activity, or detached from the Activity. If multiple fragments make up a whole screen, then they all need to tie into the same activity. They need to know when the activity is resumed / paused, so they can resume or pause what they’re doing within the fragment. ...

touch feedback in android