Changeset 4693 for pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java
- Timestamp:
- Dec 14, 2013 1:14:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java
r4691 r4693 44 44 45 45 public class MainActivity extends Activity implements Handler.Callback, MyAppObserver { 46 public static MyApp app = n ew MyApp();46 public static MyApp app = null; 47 47 public static MyCall currentCall = null; 48 48 public static MyAccount account = null; … … 81 81 setContentView(R.layout.activity_main); 82 82 83 app.init(this, getFilesDir().getAbsolutePath()); 83 if (app == null) { 84 app = new MyApp(); 85 app.init(this, getFilesDir().getAbsolutePath()); 86 } 87 84 88 if (app.accList.size() == 0) { 85 89 accCfg = new AccountConfig(); … … 177 181 //buddyListView.performItemClick(buddyListView, buddyListSelectedIdx, 178 182 // buddyListView.getItemIdAtPosition(buddyListSelectedIdx)); 183 184 /* Return back Call activity */ 185 notifyCallState(currentCall); 179 186 } 180 187
Note: See TracChangeset
for help on using the changeset viewer.