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
e3352c65
Commit
e3352c65
authored
Aug 23, 2021
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8/10まで戻した。
parent
adb49f48
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
108 additions
and
250 deletions
+108
-250
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ChatPushDataJSON.java
+3
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+0
-11
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
+0
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
+0
-66
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+3
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVNoAuthenticatedActivity.java
+1
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
+20
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+0
-3
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
+17
-25
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
+3
-27
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+35
-65
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CommunicationWebViewActivity.java
+2
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+8
-13
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+5
-17
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+5
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+2
-3
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ChatPushDataJSON.java
View file @
e3352c65
...
...
@@ -46,9 +46,11 @@ 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 @
e3352c65
...
...
@@ -171,15 +171,4 @@ 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 @
e3352c65
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
View file @
e3352c65
...
...
@@ -40,7 +40,6 @@ 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
;
...
...
@@ -159,13 +158,6 @@ 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
);
...
...
@@ -1243,62 +1235,4 @@ 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
,
roomType
);
}
else
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivityWithCollaboration
(
fromClassName
,
roomId
,
roomName
,
collaborationType
,
roomType
);
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
e3352c65
...
...
@@ -41,7 +41,6 @@ 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
;
...
...
@@ -77,7 +76,6 @@ 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
;
...
...
@@ -91,6 +89,9 @@ 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/ABVNoAuthenticatedActivity.java
View file @
e3352c65
...
...
@@ -390,8 +390,7 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
extras
.
getLong
(
AppDefType
.
ChatPushMessageKey
.
roomId
));
// Room Id
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
,
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomName
));
// Room Name
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendLoginId
,
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
pushSendLoginId
));
// sendLoginId
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
,
extras
.
getLong
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
));
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomType
,
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomType
));
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
,
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
pushSendDate
));
}
}
intent
.
setClassName
(
getApplicationContext
().
getPackageName
(),
getMainActivityClassName
()).
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
View file @
e3352c65
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
;
...
...
@@ -125,7 +123,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
isCollabration
=
MeetingManager
.
getInstance
().
isCollaboration
();
Bundle
extras
=
getIntent
().
getExtras
();
if
(
extras
!=
null
&&
!
isMeetingRoomConnected
)
{
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
,
getIntent
()
);
moveChatRoom
(
extras
);
finish
();
}
if
(
isMeetingRoomConnected
||
isCollabration
)
{
...
...
@@ -136,7 +134,6 @@ 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
();
}
});
...
...
@@ -147,6 +144,25 @@ 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
()
{
...
...
@@ -165,7 +181,6 @@ 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 @
e3352c65
...
...
@@ -145,8 +145,5 @@ public interface AppDefType {
String
pushSendDate
=
"pushSendDate"
;
String
collaborationType
=
"collaborationType"
;
String
roomType
=
"roomType"
;
String
fromClassName
=
"fromClassName"
;
String
shopName
=
"shopName"
;
String
loginId
=
"loginId"
;
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
e3352c65
...
...
@@ -304,10 +304,10 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
boolean
result
=
false
;
// 画像が選択された場合
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
contains
(
ABookKeys
.
IMAGE
))
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
// 動画が選択された場合
}
else
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
contains
(
ABookKeys
.
VIDEO
))
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
,
"Camera"
,
ABookKeys
.
VIDEO
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_VIDEO
,
"Camera"
,
ABookKeys
.
VIDEO
,
true
);
}
if
(
result
)
{
if
(
mUploadMessage
!=
null
)
{
...
...
@@ -701,9 +701,9 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
}
}
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
if
(
requestCode
==
ABOOK_CHECK_TASK_IMAGE
)
{
activityResultReceivedImage
(
dataUri
);
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
activityResultReceivedMovie
(
dataUri
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
e3352c65
...
...
@@ -5,8 +5,12 @@ 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
;
...
...
@@ -20,6 +24,8 @@ 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
;
...
...
@@ -31,7 +37,10 @@ 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
;
...
...
@@ -54,7 +63,6 @@ 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
;
...
...
@@ -96,6 +104,7 @@ 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
;
...
...
@@ -345,6 +354,13 @@ 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
();
...
...
@@ -505,22 +521,6 @@ 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
),
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomType
));
}
},
1000
);
return
;
}
// 報告画面から作業一覧へ戻った時の同期処理
final
long
operationId
=
getUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
-
1L
);
if
(
operationId
!=
-
1
)
{
...
...
@@ -1250,14 +1250,6 @@ 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 @
e3352c65
...
...
@@ -11,6 +11,7 @@ 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
;
...
...
@@ -20,11 +21,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
;
...
...
@@ -35,6 +36,7 @@ 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
;
...
...
@@ -543,20 +545,6 @@ 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
),
getIntent
().
getStringExtra
(
AppDefType
.
ChatPushMessageKey
.
roomType
));
}
},
1000
);
return
;
}
}
@Override
...
...
@@ -607,16 +595,4 @@ 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 @
e3352c65
...
...
@@ -1640,11 +1640,12 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
loginId
,
loginId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
shopName
,
shopName
);
if
(
dto
!=
null
)
{
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
dto
.
roomId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
,
dto
.
roomName
);
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"shopName"
,
shopName
);
if
(
dto
!=
null
)
{
intent
.
putExtra
(
"roomId"
,
dto
.
roomId
);
intent
.
putExtra
(
"roomName"
,
dto
.
roomName
);
}
intent
.
setClassName
(
mContext
.
getPackageName
(),
className
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
...
...
@@ -1661,17 +1662,15 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
loginId
,
loginId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
shopName
,
shopName
);
intent
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"shopName"
,
shopName
);
intent
.
setClassName
(
mContext
.
getPackageName
(),
className
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
getCurrentActivity
().
startActivity
(
intent
);
}
/**
* プシュメッセージからチャットに入る
*/
public
void
startChatWebViewActivity
(
String
fromClassName
,
Long
roomId
,
String
roomName
,
String
roomType
)
{
// プシュメッセージからチャットに入る
public
void
startChatWebViewActivity
(
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
();
...
...
@@ -1680,61 +1679,12 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
intent
.
putExtra
(
"sid"
,
sid
);
String
loginId
=
ABVDataCache
.
getInstance
().
getMemberInfo
().
loginId
;
String
shopName
=
ABVDataCache
.
getInstance
().
getUrlPath
();
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
loginId
,
loginId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
shopName
,
shopName
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
roomId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
,
roomName
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
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
.
putExtra
(
"loginId"
,
loginId
);
intent
.
putExtra
(
"shopName"
,
shopName
);
intent
.
putExtra
(
"roomId"
,
roomId
);
intent
.
putExtra
(
"roomName"
,
roomName
);
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
(
AppDefType
.
ChatPushMessageKey
.
loginId
,
loginId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
,
collaborationType
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
shopName
,
shopName
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomId
,
roomId
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
roomName
,
roomName
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
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
.
setClassName
(
mContext
.
getPackageName
(),
className
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
getCurrentActivity
().
startActivity
(
intent
);
}
...
...
@@ -1964,6 +1914,26 @@ 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 @
e3352c65
...
...
@@ -34,6 +34,8 @@ 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 @
e3352c65
...
...
@@ -76,6 +76,7 @@ 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
;
...
...
@@ -93,7 +94,6 @@ 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,6 +137,8 @@ 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
;
...
...
@@ -3827,15 +3829,6 @@ 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
)
{
...
...
@@ -3851,7 +3844,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
isAnotherViewOpenFlg
=
false
;
// playPageBGMSound(mCurrentPageNumber); //프리뷰 모드 일때 음악재생 Bug
break
;
case
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
:
case
ABOOK_CHECK_TASK_IMAGE:
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -3872,7 +3865,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
break
;
case
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
:
case
ABOOK_CHECK_TASK_VIDEO:
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -5540,4 +5533,6 @@ 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 @
e3352c65
...
...
@@ -32,7 +32,6 @@ 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
;
...
...
@@ -43,8 +42,6 @@ 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
;
...
...
@@ -222,10 +219,10 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
FileChooserParams
fileChooserParams
)
{
boolean
result
=
false
;
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
IMAGE
)
!=
-
1
)
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
}
else
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
VIDEO
)
!=
-
1
)
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
}
if
(
result
)
{
...
...
@@ -688,15 +685,6 @@ 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
)
{
...
...
@@ -707,7 +695,7 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
}
}
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
if
(
requestCode
==
ABOOK_CHECK_TASK_IMAGE
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -727,12 +715,12 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
mUploadMessage
.
onReceiveValue
(
null
);
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
mUploadMessage
.
onReceiveValue
(
result
);
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_SELECT_SCENE
)
{
}
else
if
(
requestCode
==
ABOOK_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 @
e3352c65
...
...
@@ -37,7 +37,6 @@ 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
;
...
...
@@ -225,9 +224,9 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
Logger
.
d
(
TAG
,
"*********************commonOpenFileChooser"
);
boolean
result
=
false
;
if
(
acceptType
.
toLowerCase
().
indexOf
(
ABookKeys
.
IMAGE
)
!=
-
1
)
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
}
else
if
(
acceptType
.
toLowerCase
().
indexOf
(
ABookKeys
.
VIDEO
)
!=
-
1
)
{
result
=
startCameraIntent
(
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
result
=
startCameraIntent
(
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
}
mUploadMessage
=
uploadFile
;
if
(
result
)
{
...
...
@@ -714,7 +713,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
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_IMAGE
)
{
if
(
requestCode
==
ABOOK_CHECK_TASK_IMAGE
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
...
...
@@ -730,13 +729,13 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
mUploadMessage
.
onReceiveValue
(
null
);
ErrorMessage
.
showErrorMessageToast
(
getApplicationContext
(),
ErrorCode
.
E107
);
}
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_TASK_VIDEO
)
{
}
else
if
(
requestCode
==
ABOOK_CHECK_TASK_VIDEO
)
{
if
(
mUploadMessage
==
null
)
{
return
;
}
// 動画
mUploadMessage
.
onReceiveValue
(
result
);
}
else
if
(
requestCode
==
AB
ookCommConstants
.
AB
OOK_CHECK_SELECT_SCENE
)
{
}
else
if
(
requestCode
==
ABOOK_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 @
e3352c65
...
...
@@ -23,7 +23,6 @@ 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
;
...
...
@@ -132,10 +131,10 @@ public class OperationTaskLayout extends RelativeLayout {
FileChooserParams
fileChooserParams
)
{
boolean
result
=
false
;
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
IMAGE
)
!=
-
1
)
{
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
ABookCommConstants
.
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
((
ABVContentViewActivity
)
context
)
.
ABOOK_CHECK_TASK_IMAGE
,
"Camera"
,
ABookKeys
.
IMAGE
,
true
);
}
else
if
(
fileChooserParams
.
getAcceptTypes
()[
0
].
toLowerCase
().
indexOf
(
ABookKeys
.
VIDEO
)
!=
-
1
)
{
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
ABookCommConstants
.
ABOOK_CHECK_TASK_VIDEO
,
"Video"
,
ABookKeys
.
VIDEO
,
true
);
result
=
((
ABVActivity
)
context
).
startCameraIntent
(
((
ABVContentViewActivity
)
context
)
.
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