Search In This Website

Jumat, 14 Juni 2024

Android Activity LifeCycle

An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, etc.

Android App Activity Lifecycle

When you launch your application, the following methods are executed in order:
  • onCreate
  • onStart
  • onResume
At this point, the activity is visible to the user and they can interact with it. 

In our example, we have a button in Activity A that allows the user to navigate to Activity B.
When the user clicks the button, the following methods are executed:
  • onPause (in Activity A)
  • onCreate (in Activity B)
  • onStart (in Activity B)
  • onResume (in Activity B)
Now, Activity B is visible to the user and they can interact with it. Activity A is in the paused state.
If the user presses the back button, the following methods are executed:
  • onPause (in Activity B)
  • onStop (in Activity B)
  • onRestart (in Activity A)
  • onStart (in Activity A)
  • onResume (in Activity A)
Now, Activity A is visible to the user again and they can interact with it. Activity B is destroyed.
If the user presses the back button again, the following methods are executed:
  • onPause (in Activity A)
  • onStop (in Activity A)
  • onDestroy (in Activity A)
Now, both Activity A and Activity B are destroyed and nothing appears on the screen.

Bibliography

https://blog.stackademic.com/
https://developer.android.com/
https://medium.com/
https://www.tutorialspoint.com/

Related Post

Kamis, 13 Juni 2024

Forming Noun In English

Here are all the rules which will help you change a verb, adjective, and common noun into a noun.

  • Add '-al' to verbs
  • Add '-ance' or ‘-ence' to verbs
  • Add '-ment' to verbs
  • Add '-ness' or '-ess' to verbs
  • Add '-tion' or '-sion' or '-ion' to verbs
  • Add '-ation' or '-cation' or '-ition' to verbs
  • Add '-t' or '-th' to verbs
  • Add '-y' to verbs
  • Add '-er' or '-or' or '-ist' or '-ar' or '-ant' or '-int' to verbs
  • Add '-age' to verbs
  • Add '-ure' or '-ture' or '-ature' to verbs
  • Add '-ing' to verbs
  • Add '-ce' to adjective
  • Add '-y' or '-ty' or '-ity' or '-ry' to adjective.
  • Add '-ness' to adjective.
  • Add '-cy' to adjective with last letter is '-t'.
  • Add '-hood' to common noun.
  • Add '-ship' to common noun.
  • Add '-cy' to common noun.
  • Add '-an' or '-ian' to common noun.
  • Add '-let' to common noun.

Bibliography

https://myenglishgrammar.com/

https://leverageedu.com/

https://www.uefap.com/

suffix, grammar, part of speech, english lesson, derivation noun, word formation, vocabulary building

Related Post


Menuliskan Bentuk Panjang Suatu Bilangan

Tuliskan lambang bilangan ( angka ) berikut ini dalam bentuk panjang dan cara membacanya!

5.301.052 = 5.000.000 + 300.000 + 1000 + 50 + 2 dibaca lima juta tiga ratus seribu lima puluh dua.


menuju menulis bentuk panjang suatu bilangan dalam bahasa Inggris, klik Number Place Value >

<< Kembali Belajar Pelajaran Matematika SD

nilai tempat, mtk, matematika, berhitung, pelajaran, sekolah, ilmu sekolah, mata pelajaran


Related Post:


Microsoft Windows Desktop

These are GUI on Microsoft Windows Desktop

  • Start Menu
  • Start Button
  • Taskbar
  • Icon
  • Wallpaper / Desktop Background
  • Notification Area
  • Date and Time
< previous Windows GUI Parts



Bibliography

http://surendrow.blogspot.com/
https://rsinewsupdate.wordpress.com/
https://www.informit.com/

Graphical User Interface, learn windows, study microsoft windows, gui

Related Post

Rabu, 12 Juni 2024

Visual Basic 6 Menu Control Design Table

Visual Basic 6 Menu Properties: (Variable) Name, Caption, Mnemonic Letter/Access Key, Level, Shortcut/Accelerator Key, Index, Checked, Enabled, WindowList, Visible, PopupMenu.

VB6 Menu Components Design Table Sample

Name Caption Level Shortcut
mnuFile &File 0 None
itmNew &New 1 None
itmOpen &Open 1 None
itmSave &Save 1 None
sepOne - 1 None
itmSettings Se&ttings 1 None
itmSettings1 Settings 1 2 None
itmSettings2 Settings 2 2 None
itmAbout &About 1 None
sepTwo - 1 None
itmExit E&xit 1 None
mnuEdit &Edit 0 None
itmUndo &Undo 1 Ctrl+Z
sepThree - 1 None
itmCut Cu&t 1 Ctrl+X
itmCopy &Copy 1 Ctrl+C
itmPaste &Paste 1 Ctrl+V
sepFour - 1 None
itmSelectAll Select &All 1 Ctrl+A

Notes:

  • For menu begin with the prefix mnu in the Name.
  • For sub menu begin with the prefix itm in the Name.
  • For separator line menu add hyphen (-) character in the Caption.
  • For separator line menu begin with the prefix sep in the Name.
  • For Mnemonic Letter/Access (Character) Key/Accelerator Key, put an ampersand before the character/letter you want to use. the ampersand indicates that the letter F in File will be underlined.
  • Each application can have only one instance of an accelerator key combination. If you use Ctrl+N for New, you can't use Ctrl+N for Open too.

to read about VB6 IDE menu, click Visual Basic 6 Menu >>

Bibliography

Microsoft® Visual Basic® 6.0 Professional Step by Step;Michael Halvorson, et al;Microsoft Press
Visual Basic 6 How to Program;Harvey M. Deitel, et al.
Visual Basic 6 Master Reference: The Definitive Visual Basic Reference;Clayton Walnum
Visual Basic 6: The Complete Reference (Complete Reference Series);Noel Jerke;Osborne
Programming Microsoft® Visual Basic® 6.0;Francesco Balena;Microsoft Press
Using Visual Basic 6;Bob R;Que Macmillan Computer Publishing
Visual Basic 6.0 Programming By Examples;Sergey Skudaev
Visual Basic 6.0 (Quick Study Computer);Inc. BarCharts

program design, software design, application design, vb6 object

Related Post

Visual Basic 6 Variable Prefixes

VB6 Variable Naming Convention

Variable and Control Prefixes

Prefix Variable/Control Example
b Boolean bLightsOn
byt Byte bytRasterData
c Currency cAmountDue
d Double dDollarPerGallon
dt Date+time dtDateDue
i Integer iCounter
l Long lNum
str String strMessage
s Single sPay
a Array a_iMyArray
obj Object objCurrent
g Global g_iTotal
m Module m_iAmount

< Previous  Visual Basic Naming Conventions


Bibliography

Visual Basic Programmer's Reference;Rod Stephens;Wiley
Using Visual Basic 6; Rob Reselman;Que Pearson Education
Beginning Visual Basic 6 Database Programming;John Connell;Apress

Related Post