|
From: | Leonard Fodje |
Subject: | Re: [Linphone-developers] RegistrationState - Linphone Android |
Date: | Wed, 30 Jan 2013 07:11:34 +0000 |
I am trying to implement the FirstLoginActivity in Linphone android 2.0. I have succeeded in launching the FirstLoginActivity screen and everything seems to work. The only problem is the FirstLoginActivity Screen doesn't disappear after a successful Registration.
I noticed the following method in FirstLoginActivity.java is never executed. public void onRegistrationStateChanged(RegistrationState state) { if (RegistrationState.RegistrationOk == state) { bar.setVisibility(View.INVISIBLE); toast(R.string.first_launch_ok); writePreference(R.string.first_launch_suceeded_once_key, true); //mPref.edit().putBoolean(getString(R.string.first_launch_suceeded_once_key), true).commit(); setResult(Activity.RESULT_OK); finish(); } else if (RegistrationState.RegistrationFailed == state) { bar.setVisibility(View.INVISIBLE); toast(R.string.first_launch_bad_login_password); } else if (RegistrationState.RegistrationProgress == state) { bar.setVisibility(View.VISIBLE); } } How do i call this method within the FirstLoginActivity.java file? I appreciate any leads or ideas. As we all know, FirstLoginActivity was replaced with the Wizard in Linphone 2.0, but i still want to use it for Linphone 2.0. Thanks. From: address@hidden To: address@hidden Date: Tue, 29 Jan 2013 12:55:07 -0600 Subject: [Linphone-developers] RegistrationState - Linphone Android How
can I check the Registration State using an if statement. I
am doing
if (RegistrationState.RegistrationOk == state )
{
//Do Something;
} but
I am getting the error “State” cannot be resolved to a variable. I will
appreciate any help. Thanks _______________________________________________ Linphone-developers mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-developers |
[Prev in Thread] | Current Thread | [Next in Thread] |