diff --git a/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java b/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java index 23f3bfe237e6fd1de3592941d21c2bf1ebc6b9f1..52fabeddc47d843495b2c23a14ac57a5d9451309 100644 --- a/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java +++ b/src/com/savoirfairelinux/sflphone/client/AccountManagementFragment.java @@ -86,7 +86,7 @@ public class AccountManagementFragment extends PreferenceFragment 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 4e68522e9b4dbfac31ffedd23aad17619d1924b6..bc115339fa3669da0639b5b1f348be5f86e9240d 100644 --- a/src/com/savoirfairelinux/sflphone/client/CallElementList.java +++ b/src/com/savoirfairelinux/sflphone/client/CallElementList.java @@ -99,7 +99,7 @@ public class CallElementList extends ListFragment implements LoaderManager.Loade 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 d9f5c8bdc07156feca90ade6fb7b8016e8760955..83037f4811a5ee33bb649434c6c4a5f91bf1116d 100644 --- a/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java +++ b/src/com/savoirfairelinux/sflphone/client/ContactListFragment.java @@ -108,7 +108,7 @@ public class ContactListFragment extends ListFragment implements OnQueryTextList 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 080c6e11692782e01c7b436efbfaadb121b16376..666278a521fc9054fda3460f301093dd87d09c0d 100644 --- a/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java +++ b/src/com/savoirfairelinux/sflphone/client/SFLPhoneHome.java @@ -197,7 +197,6 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC // 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 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC 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 class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC 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 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC 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 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC 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 class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC 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 0a17ff45904bfac7ded85864312e41352999f722..57f1e2c54cdf5596607c1a0c8623085e10db3fa6 100644 --- a/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java +++ b/src/com/savoirfairelinux/sflphone/client/SFLPhonePreferenceActivity.java @@ -116,7 +116,7 @@ public class SFLPhonePreferenceActivity extends Activity implements ActionBar.Ta } 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); }