Is there on install event in android?

前端 未结 4 646
余生分开走
余生分开走 2020-11-28 10:18

Is there some event/receiver or something for handling first execution after installation or directly after installation? Or Do I need it emulate with preferences?

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 10:56

    The SQLiteOpenHelper's OnUpgrade method is called when the database version changed. I suppose this could be used to do other things than just handling the new schema.

提交回复
热议问题