|
From: | Erhan Tepe |
Subject: | Re: [Linphone-users] Linphone-Android: When is LinphoneManager.java class being called? |
Date: | Tue, 17 Apr 2012 10:36:35 +0300 |
startService(new Intent(ACTION_MAIN).setClass(this, LinphoneService.class));
Within the onCreate method of LinphoneService, you'll see:
LinphoneManager.createAndStart(this, this);
and if you check the createAndStart method of LinphoneManager, there is a line with;
instance = new LinphoneManager(c);
This creates an instance of LinphoneManager class. Using this object, you can start calling LinphoneManager functions. So I'm guessing you don't create an instance of LinphoneManager properly.
Hi Developers,
May I know when is LinphoneManager.java class being called? I have looked thru the codes but can't see where it is being called, maybe I have missed it. Please help me! The reason why I need to know is because when the Linphone app is first launched, I have a login page that requires user's username and password, after which the username and password will be passed to the LinphoneManager.java class so that it will allow them to be automatically logged in to the domain and start making SIP calls. BUT, it returns me NULLPOINTEREXCEPTION even before when user starts entering their username and password. So I am guessing that even before I launch the login page activity to ask for user's username and password, the LinphoneManager.java class has already been called. So... any ideas? Thanks a lot in advance!! I also need this urgently! :(
--
Best Regards,
Winona Kwok
_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users
[Prev in Thread] | Current Thread | [Next in Thread] |