@Override public void handleMessage(Message msg) { super.handleMessage(msg); FDGoogleDetail detail = (FDGoogleDetail) msg.obj; if (detail != null) { mLatitude = detail.getLatitude(); mLongitude = detail.getLongitude(); showGoogleMap(); } }
public void handleMessage(Message msg) { super.handleMessage(msg); isSubmiting = false; if (!isFinishing()) { Intent offLineDataChangedReceiverIntent = new Intent(FDConstant.RECEIVER_OFF_LINE_DATA_CHANGED_ACTION); sendBroadcast(offLineDataChangedReceiverIntent); Intent intent = new Intent(); Bundle extras = new Bundle(); extras.putParcelable(FDEvent.BUNDLE_KEY, event); // extras.putSerializable(FDEvent.BUNDLE_KEY, event); intent.putExtras(extras); setResult(RESULT_OK, intent); finish(); hideInput(); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_person_event); etNote = (EditText) findViewById(R.id.etAddEventNote); etNote.setTypeface(StringUtil.getTypeFaceByRegular(mContext)); etTimeZone = (EditText) findViewById(R.id.etAddEventTimeZone); etTimeZone.setTypeface(StringUtil.getTypeFaceByRegular(mContext)); initTitleComponent(); eventControl = new EventController(AddPersonEventActivity.this); getIntentToEvent(); initSubmitButton(); initCalendaAccount(); initTimeZoneButton(); initTitleBar(); initSelecteTimeButton(); initRepeatButtons(); initAlertsButton(); hideImputOnScrolling(); initLocationButton(); setTitleBarLeftButtonToBack(); // setTitleBarLeftButtonToBack(); }
@Override protected void onStart() { super.onStart(); initGoogleMap(); }