|
|
@@ -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);
|
|
|
|
|
|
|
|
|
}
|