Hi everybody. i'm new to android dev and i'm using sip library to create a sip application to make/receive sip calls. The library gives a 'phone' instance which I can call the methods to do the job. To get the instance of the phone, i use this line:
[HIGH]
Phone instance = ((phoneApplication) getApplication()).getInstancePhone();
[/HIGH]
the library it works great and do what i want. My Problem is that when using it from activity, when activity dies by the system the instance does not exist any more and the app crash when receives a call from sip server. How can i keep my instance alive?
Any help will be greatly, greatly appreciated!
Thanx
[HIGH]
Phone instance = ((phoneApplication) getApplication()).getInstancePhone();
[/HIGH]
the library it works great and do what i want. My Problem is that when using it from activity, when activity dies by the system the instance does not exist any more and the app crash when receives a call from sip server. How can i keep my instance alive?
Any help will be greatly, greatly appreciated!
Thanx