#43368 AndroidとiOSで画面遷移を同じにした。
Showing
... | ... | @@ -48,9 +48,9 @@ public class ChatPushDataJSON extends AcmsCommonJSON { |
} | ||
PushMessageDto pushMessageDto = new PushMessageDto(); | ||
String tempDate = DateTimeUtil.toString(DateTimeUtil.toDate(pushMessagetJsonArray.getJSONObject(k).getString(PushSendDate), DateTimeFormat.yyyyMMddHHmmss_hyphen), DateTimeFormat.yyyyMMddHHmmssSSS_none); | ||
Logger.d("messageId","messageId : " + pushMessagetJsonArray.getJSONObject(k).getString(PushSendDate)); | ||
Logger.d("oerationId","oerationId : " + pushMessagetJsonArray.getJSONObject(k).getString(PushSendDate)+1); | ||
Logger.d("date","date : " + tempDate); | ||
//Logger.d("messageId","messageId : " + pushMessagetJsonArray.getJSONObject(k).getString(PushSendDate)); | ||
//Logger.d("oerationId","oerationId : " + pushMessagetJsonArray.getJSONObject(k).getString(PushSendDate)+1); | ||
//Logger.d("date","date : " + tempDate); | ||
Please
register
or
sign in
to reply
|
||
pushMessageDto.pushMessageId = Long.valueOf(tempDate); | ||
pushMessageDto.operationId = Long.valueOf(tempDate+1); | ||
pushMessageDto.pushSendLoginId = pushMessagetJsonArray.getJSONObject(k).getString(PushSendLoginId); | ||
... | ... |
... | ... | @@ -32,6 +32,7 @@ import jp.agentec.abook.abv.bl.acms.type.DownloadStatusType; |
import jp.agentec.abook.abv.bl.common.ABVEnvironment; | ||
import jp.agentec.abook.abv.bl.common.CommonExecutor; | ||
import jp.agentec.abook.abv.bl.common.Constant; | ||
import jp.agentec.abook.abv.bl.common.constant.ABookCommConstants; | ||
import jp.agentec.abook.abv.bl.common.constant.ABookKeys; | ||
import jp.agentec.abook.abv.bl.common.log.Logger; | ||
import jp.agentec.abook.abv.bl.data.ABVDataCache; | ||
... | ... | @@ -42,6 +43,8 @@ import jp.agentec.abook.abv.bl.download.ContentZipDownloadNotification; |
import jp.agentec.abook.abv.bl.dto.OperationDto; | ||
import jp.agentec.abook.abv.cl.util.ContentLogUtil; | ||
import jp.agentec.abook.abv.launcher.android.R; | ||
import jp.agentec.abook.abv.ui.common.activity.ShowPushMessageDailogActivity; | ||
import jp.agentec.abook.abv.ui.common.appinfo.AppDefType; | ||
import jp.agentec.abook.abv.ui.common.constant.ErrorCode; | ||
import jp.agentec.abook.abv.ui.common.constant.ErrorMessage; | ||
import jp.agentec.abook.abv.ui.common.constant.NaviConsts; | ||
... | ... | @@ -219,10 +222,10 @@ public class HTMLWebViewActivity extends ParentWebViewActivity { |
FileChooserParams fileChooserParams) { | ||
boolean result = false; | ||
if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.IMAGE) != -1) { | ||
result = startCameraIntent(ABOOK_CHECK_TASK_IMAGE, "Camera", ABookKeys.IMAGE, true); | ||
result = startCameraIntent(ABookCommConstants.ABOOK_CHECK_TASK_IMAGE, "Camera", ABookKeys.IMAGE, true); | ||
} else if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.VIDEO) != -1) { | ||
result = startCameraIntent(ABOOK_CHECK_TASK_VIDEO, "Video", ABookKeys.VIDEO, true); | ||
result = startCameraIntent(ABookCommConstants.ABOOK_CHECK_TASK_VIDEO, "Video", ABookKeys.VIDEO, true); | ||
} | ||
if (result) { | ||
... | ... | @@ -685,6 +688,15 @@ public class HTMLWebViewActivity extends ParentWebViewActivity { |
@Override | ||
protected void onActivityResult(int requestCode, int resultCode, Intent intent) { | ||
super.onActivityResult(requestCode, resultCode, intent); | ||
if (requestCode == ABookCommConstants.PUSH_MESSAGE_DLG_REQUEST_CODE) { | ||
if (resultCode == ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK) { | ||
// Activityを閉じて遷移する | ||
finishActivity(); | ||
} | ||
return; | ||
} | ||
Uri[] result = null; | ||
Uri dataUri = null; | ||
if (intent != null && resultCode == RESULT_OK) { | ||
... | ... | @@ -695,7 +707,7 @@ public class HTMLWebViewActivity extends ParentWebViewActivity { |
} | ||
} | ||
if (requestCode == ABOOK_CHECK_TASK_IMAGE) { | ||
if (requestCode == ABookCommConstants.ABOOK_CHECK_TASK_IMAGE) { | ||
if (mUploadMessage == null) { | ||
return; | ||
} | ||
... | ... | @@ -715,16 +727,44 @@ public class HTMLWebViewActivity extends ParentWebViewActivity { |
mUploadMessage.onReceiveValue(null); | ||
ErrorMessage.showErrorMessageToast(getApplicationContext(), ErrorCode.E107); | ||
} | ||
} else if (requestCode == ABOOK_CHECK_TASK_VIDEO) { | ||
} else if (requestCode == ABookCommConstants.ABOOK_CHECK_TASK_VIDEO) { | ||
if (mUploadMessage == null) { | ||
return; | ||
} | ||
mUploadMessage.onReceiveValue(result); | ||
} else if (requestCode == ABOOK_CHECK_SELECT_SCENE) { | ||
} else if (requestCode == ABookCommConstants.ABOOK_CHECK_SELECT_SCENE) { | ||
if (intent != null && result != null) { | ||
confirmEntrySceneDialog(result[0]); | ||
} | ||
} | ||
mUploadMessage = null; | ||
} | ||
/** | ||
* プッシュメッセージ受信後のダイアログを表示処理。 | ||
*/ | ||
public void showChatRoomPopupMessage( | ||
|
||
String textMessage, | ||
String data, | ||
String operationID, | ||
Long roomID, | ||
String roomName, | ||
String roomType, | ||
String pushSendLoginId, | ||
long pushSendDate, | ||
String collaborationType | ||
) { | ||
String fromClassName = getClass().getName(); | ||
Intent pushMsgDialog = new Intent(HTMLWebViewActivity.this, ShowPushMessageDailogActivity.class); | ||
pushMsgDialog.putExtra(AppDefType.PushMessageKey.message, textMessage); | ||
pushMsgDialog.putExtra(AppDefType.PushMessageKey.data, data); | ||
pushMsgDialog.putExtra(AppDefType.PushMessageKey.operationId, operationID); | ||
pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomId, roomID); | ||
pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomName, roomName); | ||
pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendLoginId, pushSendLoginId); | ||
pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendDate, pushSendDate); | ||
pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.fromClassName ,fromClassName); | ||
startActivityForResult(pushMsgDialog, ABookCommConstants.PUSH_MESSAGE_DLG_REQUEST_CODE); | ||
} | ||
} |