#17220: stupid logs
diff --git a/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java b/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java
index 23f3bfe..52fabed 100644
--- a/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java
+++ b/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java
@@ -86,7 +86,7 @@
super.onAttach(activity);
sflphonePreferenceActivity = (SFLPhonePreferenceActivity) activity;
service = sflphonePreferenceActivity.getSipService();
- Log.i(TAG, "onAttach() service " + service);
+ Log.w(TAG, "onAttach() service=" + service);
}
public AccountManagementFragment()
diff --git a/src/com/savoirfairelinux/sflphone/client/CallElementList.java b/src/com/savoirfairelinux/sflphone/client/CallElementList.java
index 4e68522..bc11533 100644
--- a/src/com/savoirfairelinux/sflphone/client/CallElementList.java
+++ b/src/com/savoirfairelinux/sflphone/client/CallElementList.java
@@ -99,7 +99,7 @@
sflphoneHome = (SFLPhoneHome) activity;
service = ((SFLphoneApplication) sflphoneHome.getApplication()).getSipService();
mAccountList = ((SFLphoneApplication) sflphoneHome.getApplication()).getAccountList();
- Log.i(TAG, "onAttach() service " + service);
+ Log.w(TAG, "onAttach() service=" + service + ", accountList=" + mAccountList);
}
public String getSelectedAccount() {
diff --git a/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java b/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java
index d9f5c8b..83037f4 100644
--- a/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java
+++ b/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java
@@ -108,7 +108,7 @@
service = sflphoneApplication.getSipService();
mAccountList = sflphoneApplication.getAccountList();
- Log.i(TAG, "onAttach() service=" + service + ", mAccountList=" + mAccountList);
+ Log.w(TAG, "onAttach() service=" + service + ", mAccountList=" + mAccountList);
}
public static class InfosLoader implements Runnable
diff --git a/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java b/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
index 080c6e1..666278a 100644
--- a/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
+++ b/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java
@@ -197,7 +197,6 @@
// Create a tab with text corresponding to the page title defined by the adapter.
// Also specify this Activity object, which implements the TabListener interface, as the
// listener for when this tab is selected.
- Log.i(TAG, "adding tab: " + i);
actionBar.addTab(actionBar.newTab().setIcon(icon_res_id[i]).setText(mSectionsPagerAdapter.getPageTitle(i)).setTabListener(this));
}
@@ -222,6 +221,7 @@
LocalBroadcastManager.getInstance(this).registerReceiver(mCallList, new IntentFilter("incoming-call"));
mAccountList = mApplication.getAccountList();
+ Log.w(TAG, "mAccountList=" + mAccountList + ", mCallElementList=" + mCallElementList);
LocalBroadcastManager.getInstance(this).registerReceiver(mAccountList, new IntentFilter("accounts-changed"));
LocalBroadcastManager.getInstance(this).registerReceiver(mAccountList, new IntentFilter("account-state-changed"));
@@ -297,7 +297,7 @@
public void onServiceDisconnected(ComponentName arg0) {
mApplication.setSipService(null);
mBound = false;
- Log.w(TAG, "Service disconnected service=" + service);
+ Log.d(TAG, "Service disconnected service=" + service);
}
};
@@ -412,25 +412,29 @@
case 0:
mContactListFragment = new ContactListFragment();
fragment = mContactListFragment;
+ Log.w(TAG, "getItem() ContactListFragment=" + fragment);
break;
case 1:
mCallElementList = new CallElementList();
SipCall.setCallElementList(mCallElementList);
mCallElementList.setAccountList(mAccountList);
fragment = mCallElementList;
+ Log.w(TAG, "getItem() CallElementList=" + fragment);
break;
case 2:
fragment = new HistorySectionFragment();
+ Log.w(TAG, "getItem() HistorySectionFragment=" + fragment);
break;
case 3:
fragment = new ButtonSectionFragment();
- Log.i(TAG, "getItem: fragment is " + fragment);
+ Log.w(TAG, "getItem() ButtonSectionFragment=" + fragment);
break;
default:
- Log.e(TAG, "getItem: unknown tab position " + i);
+ Log.e(TAG, "getItem() unknown tab position " + i);
return null;
}
+// Log.i(TAG, "getItem() fragment is " + fragment);
Bundle args = new Bundle();
args.putInt(HistorySectionFragment.ARG_SECTION_NUMBER, i + 1);
fragment.setArguments(args);
@@ -534,8 +538,7 @@
TextView textView = new TextView(getActivity());
textView.setGravity(Gravity.CENTER);
Bundle args = getArguments();
- textView.setText(Integer.toString(args.getInt(ARG_SECTION_NUMBER)));
- textView.setText("java sucks");
+ textView.setText("ARG_SECTION_NUMBER=" + Integer.toString(args.getInt(ARG_SECTION_NUMBER)));
return textView;
}
}
@@ -559,6 +562,7 @@
public void processingNewCallAction() {
// String accountID = mAccountList.currentAccountID;
+ Log.w(TAG, "processingNewCallAction() mCallElementList=" + mCallElementList);
String accountID = mCallElementList.getSelectedAccount();
EditText editText = (EditText) findViewById(R.id.phoneNumberTextEntry);
String to = editText.getText().toString();
diff --git a/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java b/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java
index 0a17ff4..57f1e2c 100644
--- a/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java
+++ b/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java
@@ -116,7 +116,7 @@
}
if(!mBound) {
- Log.i(TAG, "onStart: Binding service...");
+ Log.i(TAG, "onCreate: Binding service...");
Intent intent = new Intent(this, SipService.class);
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
}