- Timestamp:
- Dec 18, 2013 11:42:04 AM (11 years ago)
- Location:
- pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android
- Property svn:ignore
-
old new 1 1 bin 2 2 gen 3 obj 4 .cproject
-
- Property svn:ignore
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/AndroidManifest.xml
- Property svn:eol-style set to LF
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/libs/armeabi
-
Property
svn:ignore
set to
*
-
Property
svn:ignore
set to
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/project.properties
- Property svn:eol-style set to LF
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java
r4693 r4697 26 26 import android.content.DialogInterface; 27 27 import android.content.Intent; 28 import android.content.pm.ApplicationInfo; 28 29 import android.view.LayoutInflater; 29 30 import android.view.Menu; … … 83 84 if (app == null) { 84 85 app = new MyApp(); 86 /* Wait for GDB to init */ 87 if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) { 88 try { 89 Thread.sleep(5000); 90 } catch (InterruptedException e) {} 91 } 92 85 93 app.init(this, getFilesDir().getAbsolutePath()); 86 94 } … … 128 136 @Override 129 137 public boolean onOptionsItemSelected(MenuItem item) { 130 CharSequence str = item.getTitle();131 138 switch (item.getItemId()) { 132 139 case R.id.action_acc_config: … … 368 375 buddyListSelectedIdx = -1; 369 376 } else { 370 if ( old_cfg.getUri() != cfg.getUri()) {377 if (!old_cfg.getUri().equals(cfg.getUri())) { 371 378 account.delBuddy(buddyListSelectedIdx); 372 379 account.addBuddy(cfg); -
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
r4696 r4697 168 168 if (bi.getPresStatus().getStatus() == pjsua_buddy_status.PJSUA_BUDDY_STATUS_ONLINE) { 169 169 status = bi.getPresStatus().getStatusText(); 170 if (status == null || status == "") {170 if (status == null || status.isEmpty()) { 171 171 status = "Online"; 172 172 } … … 340 340 public void delAcc(MyAccount acc) { 341 341 accList.remove(acc); 342 /* GC will delete the acc soon? */343 342 } 344 343 … … 369 368 System.out.println(e); 370 369 } 370 371 /* Suggest to delete, as we found this causes crash when the Java 372 * deletes it later after lib has been destroyed. 373 */ 374 json.delete(); 371 375 } 372 376 … … 410 414 json.saveFile(filename); 411 415 } catch (Exception e) {} 416 417 /* Suggest to delete, as we found this causes crash when the Java 418 * deletes it later after lib has been destroyed. 419 */ 420 json.delete(); 412 421 } 413 422 … … 415 424 String configPath = appDir + "/" + configName; 416 425 saveConfig(configPath); 426 427 /* Try force GC to avoid late destroy of PJ objects as they should be 428 * deleted before lib is destroyed. 429 */ 430 System.gc(); 431 417 432 try { 418 433 ep.libDestroy();
Note: See TracChangeset
for help on using the changeset viewer.