DoubangoTelecom / imsdroid

High Quality Video SIP/IMS client for Google Android
https://doubango.org
Other
294 stars 168 forks source link

NgnApplication is null #590

Closed MatheusSuffi closed 7 years ago

MatheusSuffi commented 8 years ago

hi.

Every time i try to call the function getInstance() from NgnApplication, it returns null.

Complete error message: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference

Thank you

gang018 commented 8 years ago

Hi Did you extend your Application class from NgnApplication ?

MatheusSuffi commented 7 years ago

just found the sollution. i put this line in my AndroidManifest.xml: android:name="org.doubango.ngn.NgnApplication"