Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
9c9c14d1
You need to sign in or sign up before continuing.
Commit
9c9c14d1
authored
Aug 18, 2021
by
onuma
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'communication/develop_onuma' into 'communication/develop'
#43368 AndroidとiOSで画面遷移を同じにした。 See merge request
!199
parents
9f2a44fb
608d6491
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
306 additions
and
113 deletions
+306
-113
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ChatPushDataJSON.java
+1
-3
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+11
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
+74
-18
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
+66
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+2
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
+5
-20
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+4
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+24
-17
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
+26
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+53
-23
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CommunicationWebViewActivity.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+13
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+17
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+6
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+3
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ChatPushDataJSON.java
View file @
9c9c14d1
...
...
@@ -46,11 +46,9 @@ public class ChatPushDataJSON extends AcmsCommonJSON {
if
(
pushMessagetJsonArray
.
getJSONObject
(
k
).
length
()
==
0
)
{
break
;
}
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
);
pushMessageDto
.
pushMessageId
=
Long
.
valueOf
(
tempDate
);
pushMessageDto
.
operationId
=
Long
.
valueOf
(
tempDate
+
1
);
pushMessageDto
.
pushSendLoginId
=
pushMessagetJsonArray
.
getJSONObject
(
k
).
getString
(
PushSendLoginId
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
View file @
9c9c14d1
...
...
@@ -171,4 +171,15 @@ public interface ABookCommConstants {
String
DEFAULT_CHECKSUM
=
"0000000000"
;
String
PLATFORM_NAME
=
"android"
;
int
PUSH_MESSAGE_DLG_REQUEST_CODE
=
200
;
interface
PUSH_MESSAGE_DLG_RESULT
{
int
OK
=
0
;
int
CANCEL
=
1
;
}
// ABookCheckで、onActivityResultのリクエストコードとして使用されている
int
ABOOK_CHECK_TASK_IMAGE
=
103
;
int
ABOOK_CHECK_TASK_VIDEO
=
104
;
int
ABOOK_CHECK_SELECT_SCENE
=
105
;
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
View file @
9c9c14d1
...
...
@@ -5,6 +5,7 @@ import android.app.Notification;
import
android.app.NotificationChannel
;
import
android.app.NotificationManager
;
import
android.app.PendingIntent
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.os.Build
;
import
android.util.Log
;
...
...
@@ -25,11 +26,16 @@ import jp.agentec.abook.abv.bl.logic.AbstractLogic;
import
jp.agentec.abook.abv.bl.logic.UserAuthenticateLogic
;
import
jp.agentec.abook.abv.cl.util.AppUtil
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.ui.common.activity.ABVAuthenticatedActivity
;
import
jp.agentec.abook.abv.ui.common.activity.ShowPushMessageDailogActivity
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.home.activity.ChatWebViewActivity
;
import
jp.agentec.abook.abv.ui.home.activity.OperationListActivity
;
import
jp.agentec.abook.abv.ui.home.activity.OperationRelatedContentActivity
;
import
jp.agentec.abook.abv.ui.home.activity.SplashScreenActivity
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.viewer.activity.ContentViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.HTMLWebViewActivity
;
import
jp.agentec.adf.util.StringUtil
;
public
class
ABVFcmListenerService
extends
FirebaseMessagingService
{
...
...
@@ -101,7 +107,15 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
if
(
textMessage
.
contains
(
INVITE_COLLABORATION
))
{
String
roomType
=
Integer
.
toString
(
json
.
getInt
(
AppDefType
.
ChatPushMessageKey
.
roomType
));
String
[]
inviteMessage
=
textMessage
.
split
(
CHAT_MESSAGE_SEPERATOR
);
showCollaborationPopUpMessage
(
roomId
,
roomName
,
roomType
,
pushSendLoginId
,
pushSendDate
,
inviteMessage
[
1
]);
showChatRoomPopupMessage
(
getString
(
R
.
string
.
msg_invite_collaboration
),
""
,
""
,
roomId
,
roomName
,
roomType
,
pushSendLoginId
,
pushSendDate
,
inviteMessage
[
1
]);
return
;
}
}
...
...
@@ -110,7 +124,15 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
String
data
=
msg
.
get
(
AppDefType
.
PushMessageKey
.
data
);
String
operationID
=
msg
.
get
(
AppDefType
.
PushMessageKey
.
operationId
);
if
(
roomName
.
length
()
>
0
)
{
showChatRoomPopupMessage
(
tempMsg
,
data
,
operationID
,
roomId
,
roomName
,
pushSendLoginId
,
pushSendDate
);
showChatRoomPopupMessage
(
tempMsg
,
data
,
operationID
,
roomId
,
roomName
,
""
,
pushSendLoginId
,
pushSendDate
,
""
);
}
else
{
showOperationPopUpMessage
(
tempMsg
,
data
,
operationID
);
}
...
...
@@ -127,6 +149,9 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
}
private
void
showCollaborationPopUpMessage
(
String
textMessage
,
String
data
,
String
operationID
,
Long
roomId
,
String
roomName
,
String
roomType
,
...
...
@@ -134,29 +159,47 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
long
pushSendDate
,
String
collaborationType
)
{
Activity
currentActivity
=
ActivityHandlingHelper
.
getInstance
().
getCurrentActivity
();
String
fromClassName
=
currentActivity
.
getClass
().
getName
();
Intent
pushMsgDialog
=
new
Intent
(
ABVFcmListenerService
.
this
,
ShowPushMessageDailogActivity
.
class
);
String
collaobrationInvitedMessage
=
getString
(
R
.
string
.
msg_invite_collaboration
);
pushMsgDialog
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
pushMsgDialog
.
putExtra
(
AppDefType
.
PushMessageKey
.
message
,
collaobrationInvitedMessage
);
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
.
roomType
,
roomType
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendLoginId
,
pushSendLoginId
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
,
pushSendDate
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
,
collaborationType
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomType
,
roomType
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
fromClassName
,
fromClassName
);
startActivity
(
pushMsgDialog
);
}
/**
* プッシュメッセージをダイアログ表示する
* @param textMessage プッシュメッセージ
* @param data Intentに付属するデータ
* @param operationID operationID
* @param roomID roomID
* @param roomName roomName
* @param roomType roomType
* @param pushSendLoginId pushSendLoginId
* @param pushSendDate pushSendDate
* @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
*/
private
void
showChatRoomPopupMessage
(
String
textMessage
,
String
data
,
String
operationID
,
Long
roomID
,
String
roomName
,
String
roomType
,
String
pushSendLoginId
,
long
pushSendDate
)
{
long
pushSendDate
,
String
collaborationType
)
{
Activity
currentActivity
=
ActivityHandlingHelper
.
getInstance
().
getCurrentActivity
();
if
(
currentActivity
.
getClass
().
equals
(
ChatWebViewActivity
.
class
))
{
ChatWebViewActivity
chatWebViewActivity
=
(
ChatWebViewActivity
)
currentActivity
;
...
...
@@ -165,16 +208,29 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
return
;
}
}
Intent
pushMsgDialog
=
new
Intent
(
ABVFcmListenerService
.
this
,
ShowPushMessageDailogActivity
.
class
);
pushMsgDialog
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
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
);
startActivity
(
pushMsgDialog
);
String
fromClassName
=
currentActivity
.
getClass
().
getName
();
if
(
currentActivity
.
getClass
().
equals
(
HTMLWebViewActivity
.
class
)
||
currentActivity
.
getClass
().
equals
(
ContentViewActivity
.
class
)
||
currentActivity
.
getClass
().
equals
(
OperationRelatedContentActivity
.
class
)
||
currentActivity
.
getClass
().
equals
(
OperationListActivity
.
class
)
){
((
ABVAuthenticatedActivity
)
currentActivity
).
showChatRoomPopupMessage
((
Context
)
currentActivity
,
textMessage
,
data
,
operationID
,
roomID
,
roomName
,
roomType
,
pushSendLoginId
,
pushSendDate
,
collaborationType
,
fromClassName
);
}
else
{
Intent
pushMsgDialog
=
new
Intent
(
ABVFcmListenerService
.
this
,
ShowPushMessageDailogActivity
.
class
);
pushMsgDialog
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
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
.
roomType
,
roomType
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendLoginId
,
pushSendLoginId
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
,
pushSendDate
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
,
collaborationType
);
pushMsgDialog
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
fromClassName
,
fromClassName
);
startActivity
(
pushMsgDialog
);
}
}
private
void
showOperationPopUpMessage
(
String
textMessage
,
String
data
,
String
operationID
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
View file @
9c9c14d1
...
...
@@ -40,6 +40,7 @@ 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.AlertMessageLevel
;
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.exception.ABVException
;
import
jp.agentec.abook.abv.bl.common.exception.ABVExceptionCode
;
...
...
@@ -158,6 +159,13 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
int
PAYMENT
=
3
;
}
// ABookCommunicationで使用する。
private
Long
roomId
=
new
Long
(
0
);
private
String
roomName
=
""
;
private
String
collaborationType
=
""
;
private
String
roomType
=
""
;
private
String
fromClassName
=
""
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -1235,4 +1243,62 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
return
existUnreadFlg
;
}
/**
* プッシュメッセージ受信後のダイアログを表示する。
* @param context コンテキスト
* @param textMessage プッシュメッセージ
* @param data Intentに付属するデータ
* @param operationID operationID
* @param roomID roomID
* @param roomName roomName
* @param roomType roomType
* @param pushSendLoginId pushSendLoginId
* @param pushSendDate pushSendDate
* @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
*/
public
void
showChatRoomPopupMessage
(
Context
context
,
String
textMessage
,
String
data
,
String
operationID
,
Long
roomID
,
String
roomName
,
String
roomType
,
String
pushSendLoginId
,
long
pushSendDate
,
String
collaborationType
,
String
fromClassName
)
{
Intent
pushMsgDialog
=
new
Intent
(
context
,
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
);
this
.
roomId
=
roomID
;
this
.
roomName
=
roomName
;
this
.
collaborationType
=
collaborationType
;
this
.
roomType
=
roomType
;
this
.
fromClassName
=
fromClassName
;
startActivityForResult
(
pushMsgDialog
,
ABookCommConstants
.
PUSH_MESSAGE_DLG_REQUEST_CODE
);
}
/**
* チャットルームへ遷移する。
*/
public
void
goChatRoom
()
{
if
(
roomId
<=
0
&&
StringUtil
.
isNullOrEmpty
(
roomName
))
{
return
;
}
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
fromClassName
,
roomId
,
roomName
);
}
else
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivityWithCollaboration
(
fromClassName
,
roomId
,
roomName
,
collaborationType
,
roomType
);
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
9c9c14d1
...
...
@@ -41,6 +41,7 @@ import jp.agentec.abook.abv.bl.common.ABVEnvironment;
import
jp.agentec.abook.abv.bl.common.Callback
;
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
;
...
...
@@ -76,6 +77,7 @@ import jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper;
import
jp.agentec.abook.abv.ui.home.helper.ABookPermissionHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.viewer.activity.CheckOZDViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.HTMLWebViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.NoPdfViewActivity
;
import
jp.agentec.abook.abv.ui.viewer.activity.PhotoEditActivity
;
...
...
@@ -89,9 +91,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
protected
static
GroupLogic
groupLogic
=
AbstractLogic
.
getLogic
(
GroupLogic
.
class
);
private
static
final
String
TAG
=
"ABVContentViewActivity"
;
public
final
static
int
ABOOK_CHECK_TASK_IMAGE
=
103
;
public
final
static
int
ABOOK_CHECK_TASK_VIDEO
=
104
;
protected
final
static
int
ABOOK_CHECK_SELECT_SCENE
=
105
;
protected
long
contentId
;
// 表示中のコンテンツID
protected
long
objectId
;
// オブジェクトID(オブジェクト用のActivityのときのみ使用)
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
View file @
9c9c14d1
package
jp
.
agentec
.
abook
.
abv
.
ui
.
common
.
activity
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
jp.agentec.abook.abv.bl.common.constant.ABookCommConstants
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.logic.AbstractLogic
;
...
...
@@ -123,7 +125,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
isCollabration
=
MeetingManager
.
getInstance
().
isCollaboration
();
Bundle
extras
=
getIntent
().
getExtras
();
if
(
extras
!=
null
&&
!
isMeetingRoomConnected
)
{
moveChatRoom
(
extras
);
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
,
getIntent
()
);
finish
();
}
if
(
isMeetingRoomConnected
||
isCollabration
)
{
...
...
@@ -134,6 +136,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
CANCEL
,
getIntent
());
finish
();
}
});
...
...
@@ -144,25 +147,6 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
}
/**
* チャットルームへ遷移するための処理
* @param extras
*/
private
void
moveChatRoom
(
Bundle
extras
)
{
Long
roomId
=
extras
.
getLong
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
0
);
String
roomName
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomName
);
String
collaborationType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
);
String
roomType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomType
);
if
(
roomId
>
0
&&
!
StringUtil
.
isNullOrEmpty
(
roomName
))
{
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
roomId
,
roomName
);
}
else
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivityWithCollaboration
(
roomId
,
roomName
,
collaborationType
,
roomType
);
}
}
}
/**
* 遠隔支援中(会議室接続中)はチャットルームにはいけない。
*/
private
void
showCannotMoveChatRoomDialog
()
{
...
...
@@ -181,6 +165,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
alertDialog
.
setPositiveButton
(
R
.
string
.
ok
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
CANCEL
,
getIntent
());
finish
();
}
});
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
9c9c14d1
...
...
@@ -145,5 +145,6 @@ public interface AppDefType {
String
pushSendDate
=
"pushSendDate"
;
String
collaborationType
=
"collaborationType"
;
String
roomType
=
"roomType"
;
String
fromClassName
=
"fromClassName"
;
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
9c9c14d1
...
...
@@ -304,10 +304,10 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
boolean
result
=
false
;
// 画像が選択された場合
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
contains
(
ABookKeys
.
IMAGE
))
{
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
// 動画が選択された場合
}
else
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
contains
(
ABookKeys
.
VIDEO
))
{
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_VIDEO
,
"Camera"
,
ABookKeys
.
VIDEO
,
true
);
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
,
"Camera"
,
ABookKeys
.
VIDEO
,
true
);
}
if
(
result
)
{
if
(
mUploadMessage
!=
null
)
{
...
...
@@ -701,9 +701,9 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
}
}
if
(
requestCode
==
ABOOK_CHECK_TASK_IMAGE
)
{
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
activityResultReceivedImage
(
dataUri
);
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
activityResultReceivedMovie
(
dataUri
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
9c9c14d1
...
...
@@ -5,12 +5,8 @@ import android.app.Dialog;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.res.Configuration
;
import
android.database.Cursor
;
import
android.graphics.Bitmap
;
import
android.graphics.BitmapFactory
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.provider.MediaStore
;
import
android.view.Gravity
;
import
android.view.KeyEvent
;
import
android.view.View
;
...
...
@@ -24,8 +20,6 @@ import android.widget.EditText;
import
android.widget.FrameLayout
;
import
android.widget.GridView
;
import
android.widget.ImageButton
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.ListView
;
import
android.widget.RadioGroup
;
import
android.widget.TextView
;
...
...
@@ -37,10 +31,7 @@ import net.lingala.zip4j.exception.ZipException;
import
org.json.adf.JSONObject
;
import
java.io.File
;
import
java.io.FileNotFoundException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.security.NoSuchAlgorithmException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
...
...
@@ -63,6 +54,7 @@ import jp.agentec.abook.abv.bl.common.CommonExecutor;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.Constant.ReportType
;
import
jp.agentec.abook.abv.bl.common.Constant.TaskReportLevel
;
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.exception.ABVException
;
import
jp.agentec.abook.abv.bl.common.exception.ABVExceptionCode
;
...
...
@@ -104,7 +96,6 @@ import jp.agentec.abook.abv.ui.common.view.ABVBatchSyncView;
import
jp.agentec.abook.abv.ui.common.view.ABVListDialog
;
import
jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow
;
import
jp.agentec.abook.abv.ui.home.adapter.HierarchyOperationGroupListAdapter
;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ABookPermissionHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.home.helper.HomeOperationListHelper
;
...
...
@@ -354,13 +345,6 @@ public class OperationListActivity extends ABVUIActivity {
alertDialog
.
show
();
}
}
// プッシュメッセージがある場合
else
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
))
&&
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
)
>
0
)
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
),
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
));
}
// リスト更新
setOperationListView
();
...
...
@@ -521,6 +505,21 @@ public class OperationListActivity extends ABVUIActivity {
return
;
}
refreshOperationList
();
// プッシュメッセージ処理
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
))
&&
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
)
>
0
)
{
handler
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
""
,
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
),
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
));
}
},
1000
);
return
;
}
// 報告画面から作業一覧へ戻った時の同期処理
final
long
operationId
=
getUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
-
1L
);
if
(
operationId
!=
-
1
)
{
...
...
@@ -1250,6 +1249,14 @@ public class OperationListActivity extends ABVUIActivity {
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
intent
)
{
if
(
requestCode
==
ABookCommConstants
.
PUSH_MESSAGE_DLG_REQUEST_CODE
)
{
if
(
resultCode
==
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
)
{
goChatRoom
();
}
return
;
}
activityResultFlg
=
true
;
Uri
result
=
(
intent
==
null
||
resultCode
!=
RESULT_OK
)
?
null
:
intent
.
getData
();
//ベースファイル登録した後にシーン画像選択画面閉じた後に呼ばれる
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
View file @
9c9c14d1
...
...
@@ -11,7 +11,6 @@ import android.view.Display;
import
android.view.Gravity
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.Button
;
import
android.widget.ImageButton
;
import
android.widget.LinearLayout
;
...
...
@@ -21,11 +20,11 @@ import android.widget.Toast;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Stack
;
import
jp.agentec.abook.abv.bl.acms.client.json.content.ContentJSON
;
import
jp.agentec.abook.abv.bl.acms.type.AcmsApis
;
import
jp.agentec.abook.abv.bl.common.ABVEnvironment
;
import
jp.agentec.abook.abv.bl.common.constant.ABookCommConstants
;
import
jp.agentec.abook.abv.bl.common.exception.ExceptionHandler
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.data.ABVDataCache
;
...
...
@@ -36,7 +35,6 @@ import jp.agentec.abook.abv.bl.logic.AbstractLogic;
import
jp.agentec.abook.abv.bl.logic.OperationLogic
;
import
jp.agentec.abook.abv.bl.websocket.MeetingManager
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.ui.common.activity.ABVAuthenticatedActivity
;
import
jp.agentec.abook.abv.ui.common.activity.ABVUIActivity
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.common.constant.ErrorCode
;
...
...
@@ -545,6 +543,19 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
refreshCollaborationUI
();
super
.
onResume
();
showOperationRelatedContentList
();
if
(!
StringUtil
.
isNullOrEmpty
(
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
))
&&
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
)
>
0
)
{
handler
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
""
,
getIntent
().
getLongExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
'0'
),
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
));
}
},
1000
);
return
;
}
}
@Override
...
...
@@ -595,4 +606,16 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
super
.
showAlertDialog
(
alertDialog
);
}
@Override
public
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
)
{
backToHome
();
goChatRoom
();
}
return
;
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
9c9c14d1
...
...
@@ -1669,8 +1669,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
getCurrentActivity
().
startActivity
(
intent
);
}
// プシュメッセージからチャットに入る
public
void
startChatWebViewActivity
(
Long
roomId
,
String
roomName
)
{
/**
* プシュメッセージからチャットに入る
*/
public
void
startChatWebViewActivity
(
String
fromClassName
,
Long
roomId
,
String
roomName
)
{
String
className
=
ChatWebViewActivity
.
class
.
getName
();
boolean
isNormalSize
=
(
mContext
.
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
==
Configuration
.
SCREENLAYOUT_SIZE_NORMAL
;
Intent
intent
=
new
Intent
();
...
...
@@ -1684,7 +1686,55 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
intent
.
putExtra
(
"roomId"
,
roomId
);
intent
.
putExtra
(
"roomName"
,
roomName
);
intent
.
setClassName
(
mContext
.
getPackageName
(),
className
);
String
nextActivity
=
null
;
if
(
fromClassName
.
equals
(
HTMLWebViewActivity
.
class
.
getName
()))
{
nextActivity
=
OperationListActivity
.
class
.
getName
();
}
else
if
(
fromClassName
.
equals
(
ContentViewActivity
.
class
.
getName
())){
nextActivity
=
OperationRelatedContentActivity
.
class
.
getName
();
}
else
{
nextActivity
=
className
;
}
intent
.
setClassName
(
mContext
.
getPackageName
(),
nextActivity
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
getCurrentActivity
().
startActivity
(
intent
);
}
/**
* プシュメッセージからチャットに遷移する
* fromClassName の値によっては、作業一覧、コンテンツ一覧のどちらかに戻ってから、チャットに遷移する)
* @param fromClassName 呼び出し元のクラス名(
* @param roomId roomId
* @param roomName room
* @param roomType roomaType
* @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
*/
public
void
startChatWebViewActivityWithCollaboration
(
String
fromClassName
,
Long
roomId
,
String
roomName
,
String
roomType
,
String
collaborationType
)
{
String
className
=
ChatWebViewActivity
.
class
.
getName
();
boolean
isNormalSize
=
(
mContext
.
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
==
Configuration
.
SCREENLAYOUT_SIZE_NORMAL
;
Intent
intent
=
new
Intent
();
intent
.
putExtra
(
"chatWebviewUrl"
,
ABVEnvironment
.
getInstance
().
acmsAddress
+
ABVDataCache
.
getInstance
().
getUrlPath
()
+
"/chatapi/chat/"
);
String
sid
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
sid
;
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"collaborationType"
,
collaborationType
);
intent
.
putExtra
(
"shopName"
,
shopName
);
intent
.
putExtra
(
"roomId"
,
roomId
);
intent
.
putExtra
(
"roomName"
,
roomName
);
intent
.
putExtra
(
"roomType"
,
roomType
);
String
nextActivity
=
null
;
if
(
fromClassName
.
equals
(
HTMLWebViewActivity
.
class
.
getName
()))
{
nextActivity
=
OperationListActivity
.
class
.
getName
();
}
else
if
(
fromClassName
.
equals
(
ContentViewActivity
.
class
.
getName
())){
nextActivity
=
OperationRelatedContentActivity
.
class
.
getName
();
}
else
{
nextActivity
=
className
;
}
intent
.
setClassName
(
mContext
.
getPackageName
(),
nextActivity
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
getCurrentActivity
().
startActivity
(
intent
);
}
...
...
@@ -1914,26 +1964,6 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
this
.
previousOfSettingActivity2
=
activity
;
}
public
void
startChatWebViewActivityWithCollaboration
(
Long
roomId
,
String
roomName
,
String
collaborationType
,
String
roomType
)
{
String
className
=
ChatWebViewActivity
.
class
.
getName
();
boolean
isNormalSize
=
(
mContext
.
getResources
().
getConfiguration
().
screenLayout
&
Configuration
.
SCREENLAYOUT_SIZE_MASK
)
==
Configuration
.
SCREENLAYOUT_SIZE_NORMAL
;
Intent
intent
=
new
Intent
();
intent
.
putExtra
(
"chatWebviewUrl"
,
ABVEnvironment
.
getInstance
().
acmsAddress
+
ABVDataCache
.
getInstance
().
getUrlPath
()
+
"/chatapi/chat/"
);
String
sid
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
sid
;
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"collaborationType"
,
collaborationType
);
intent
.
putExtra
(
"shopName"
,
shopName
);
intent
.
putExtra
(
"roomId"
,
roomId
);
intent
.
putExtra
(
"roomName"
,
roomName
);
intent
.
putExtra
(
"roomType"
,
roomType
);
intent
.
setClassName
(
mContext
.
getPackageName
(),
className
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
getCurrentActivity
().
startActivity
(
intent
);
}
/**
* 図面タイプのみ利用
* OZ画面閉じた後、タスクアイコンの再描画
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CommunicationWebViewActivity.java
View file @
9c9c14d1
...
...
@@ -34,8 +34,6 @@ public class CommunicationWebViewActivity extends ABVAuthenticatedActivity {
private
ProgressBar
m_progress
;
protected
ContentDto
mContentDto
;
protected
File
mLocalFile
;
public
final
static
int
ABOOK_CHECK_TASK_IMAGE
=
103
;
public
final
static
int
ABOOK_CHECK_TASK_VIDEO
=
104
;
@Override
protected
void
onDestroy
()
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
9c9c14d1
...
...
@@ -76,7 +76,6 @@ import java.util.ArrayList;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Stack
;
import
java.util.concurrent.ConcurrentHashMap
;
import
jp.agentec.abook.abv.bl.acms.client.json.DownloadedContentInfoJSON
;
...
...
@@ -94,6 +93,7 @@ import jp.agentec.abook.abv.bl.acms.type.OperationType;
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.exception.ExceptionHandler
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
...
...
@@ -119,8 +119,8 @@ import jp.agentec.abook.abv.cl.util.ContentLogUtil;
import
jp.agentec.abook.abv.cl.util.PreferenceUtil
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.launcher.android.R.id
;
import
jp.agentec.abook.abv.ui.common.activity.ABVAuthenticatedActivity
;
import
jp.agentec.abook.abv.ui.common.activity.ABVContentViewActivity
;
import
jp.agentec.abook.abv.ui.common.activity.ShowPushMessageDailogActivity
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppColor
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType.DefPrefKey
;
...
...
@@ -137,8 +137,6 @@ import jp.agentec.abook.abv.ui.common.util.PatternStringUtil;
import
jp.agentec.abook.abv.ui.common.view.ABVEditText
;
import
jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow
;
import
jp.agentec.abook.abv.ui.common.vo.Size
;
import
jp.agentec.abook.abv.ui.home.activity.ChatWebViewActivity
;
import
jp.agentec.abook.abv.ui.home.activity.OperationRelatedContentActivity
;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.Interface.MovePageInterface
;
...
...
@@ -3829,6 +3827,15 @@ public class ContentViewActivity extends ABVContentViewActivity {
Uri
[]
result
=
null
;
Uri
dataUri
=
null
;
if
(
requestCode
==
ABookCommConstants
.
PUSH_MESSAGE_DLG_REQUEST_CODE
)
{
if
(
resultCode
==
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
)
{
// Activityを閉じて遷移する
exitActivity
();
goChatRoom
();
}
return
;
}
if
(
intent
!=
null
&&
resultCode
==
RESULT_OK
)
{
String
dataString
=
intent
.
getDataString
();
if
(
dataString
!=
null
)
{
...
...
@@ -3844,7 +3851,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
isAnotherViewOpenFlg
=
false
;
// playPageBGMSound(mCurrentPageNumber); //프리뷰 모드 일때 음악재생 Bug
break
;
case
ABOOK_CHECK_TASK_IMAGE:
case
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
:
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -3865,7 +3872,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
break
;
case
ABOOK_CHECK_TASK_VIDEO:
case
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
:
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -5533,6 +5540,4 @@ public class ContentViewActivity extends ABVContentViewActivity {
public
void
reloadPdfTaskIcon
(
String
taskKey
)
{
operationTaskLayout
.
setIconStatus
(
taskKey
,
false
);
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
9c9c14d1
...
...
@@ -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
(
AB
ookCommConstants
.
AB
OOK_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
(
AB
ookCommConstants
.
AB
OOK_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
)
{
finishActivity
();
goChatRoom
();
}
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
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -715,12 +727,12 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
mUploadMessage
.
onReceiveValue
(
null
);
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
mUploadMessage
.
onReceiveValue
(
result
);
}
else
if
(
requestCode
==
ABOOK_CHECK_SELECT_SCENE
)
{
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_SELECT_SCENE
)
{
if
(
intent
!=
null
&&
result
!=
null
)
{
confirmEntrySceneDialog
(
result
[
0
]);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
View file @
9c9c14d1
...
...
@@ -37,6 +37,7 @@ import jp.agentec.abook.abv.bl.common.ABVEnvironment;
import
jp.agentec.abook.abv.bl.common.Callback
;
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.dao.AbstractDao
;
...
...
@@ -224,9 +225,9 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
Logger
.
d
(
TAG
,
"*********************commonOpenFileChooser"
);
boolean
result
=
false
;
if
(
acceptType
.
toLowerCase
().
indexOf
(
ABookKeys
.
IMAGE
)
!=
-
1
)
{
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
}
else
if
(
acceptType
.
toLowerCase
().
indexOf
(
ABookKeys
.
VIDEO
)
!=
-
1
)
{
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
}
mUploadMessage
=
uploadFile
;
if
(
result
)
{
...
...
@@ -713,7 +714,7 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
intent
)
{
Uri
result
=
(
intent
==
null
||
resultCode
!=
RESULT_OK
)
?
null
:
intent
.
getData
();
if
(
requestCode
==
ABOOK_CHECK_TASK_IMAGE
)
{
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -729,13 +730,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
mUploadMessage
.
onReceiveValue
(
null
);
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
// 動画
mUploadMessage
.
onReceiveValue
(
result
);
}
else
if
(
requestCode
==
ABOOK_CHECK_SELECT_SCENE
)
{
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_SELECT_SCENE
)
{
if
(
intent
!=
null
&&
result
!=
null
)
{
confirmEntrySceneDialog
(
result
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
9c9c14d1
...
...
@@ -23,6 +23,7 @@ import org.json.adf.JSONObject;
import
java.util.List
;
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.dao.AbstractDao
;
...
...
@@ -131,10 +132,10 @@ public class OperationTaskLayout extends RelativeLayout {
FileChooserParams
fileChooserParams
)
{
boolean
result
=
false
;
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
IMAGE
)
!=
-
1
)
{
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
((
ABVContentViewActivity
)
context
)
.
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
ABookCommConstants
.
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
}
else
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
VIDEO
)
!=
-
1
)
{
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
((
ABVContentViewActivity
)
context
)
.
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
ABookCommConstants
.
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
}
if
(
result
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment