custom android.app.Application not firing onCreate event

前端 未结 6 608
粉色の甜心
粉色の甜心 2021-01-01 09:31

I\'m deriving a custom application from android.app.Application and I can\'t get its onCreate event being fired. Here\'s the implementation

import android.ap         


        
6条回答
  •  灰色年华
    2021-01-01 10:16

    Very simple

    In your AndroidManifest.xml, within the application tag enter the name of your Application sub-class with it's path under the android:name attribute.

    Example:

     ... 
    

提交回复
热议问题