android - How is OnCreate() called SQLiteOpenHelper -


i have been searching on internet ı have found these informations: oncreate() method called when database opened or created... okey how method called ?by whom? activity class has oncreate method also, these 2 oncreate methods similar ?if makes them similar? activities oncreate method called os? how? papers should ı read? know when these methods called ı want know how. thank you.

okey how method called ?by whom?

it called sqliteopenhelper itself, in response call getreadabledatabase() and/or getwriteabledatabase(). can see in the source code sqliteopenhelper.

activity class has oncreate method also, these 2 oncreate methods similar ?

not really.

activities oncreate method called os? how?

it called activity itself, part of startup process. starting activity rather complicated, welcome review the ~6000 lines of activity source code if like.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -