Explorar el Código

Apex Mobile
修复contact 编辑后无法显示的问题

Ray Zhang hace 8 años
padre
commit
03221b3750

+ 7 - 3
Apex Mobile/app/src/main/java/com/usai/apex/InnerMapActivity.java

@@ -8,6 +8,7 @@ import android.content.pm.PackageInfo;
 import android.content.pm.PackageManager.NameNotFoundException;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
+import android.net.Uri;
 import android.os.Bundle;
 import android.support.v4.app.Fragment;
 import android.support.v4.app.FragmentManager;
@@ -282,10 +283,13 @@ public class InnerMapActivity extends AppCompatActivity implements BaiduMapFragm
 							Contact existContact = cm.searchContact(contact.getName());
 							cm.updateContact(existContact,contact);
 
-							
-							// 显示编辑界面
 							String contactId = cm.getContactID(existContact.getName());
-							cm.editContact(contactId,mContext);
+							Intent editIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("content://com.android.contacts/contacts/"+contactId));
+							startActivity(editIntent);
+//
+//							// 显示编辑界面
+//							String contactId = cm.getContactID(existContact.getName());
+//							cm.editContact(contactId,mContext);
 
 
 						}