Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
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
王宇航
supplier
Commits
7376ca17
Commit
7376ca17
authored
Mar 02, 2021
by
宁斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
長連接日誌調整'
parent
75ef1b51
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
component-main/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
+18
-18
library-common/src/main/AndroidManifest.xml
+1
-1
library-common/src/main/java/com/gingersoft/gsa/cloud/common/service/DataNotificationService.kt
+0
-0
No files found.
component-main/src/main/java/com/gingersoft/gsa/cloud/main/mvp/ui/activity/NewMainActivity.java
View file @
7376ca17
...
@@ -38,7 +38,7 @@ import com.gingersoft.gsa.cloud.common.function.FunctionManager;
...
@@ -38,7 +38,7 @@ import com.gingersoft.gsa.cloud.common.function.FunctionManager;
import
com.gingersoft.gsa.cloud.common.function.jump.ActivityJumpBean
;
import
com.gingersoft.gsa.cloud.common.function.jump.ActivityJumpBean
;
import
com.gingersoft.gsa.cloud.common.function.jump.ActivityJumpStrategy
;
import
com.gingersoft.gsa.cloud.common.function.jump.ActivityJumpStrategy
;
import
com.gingersoft.gsa.cloud.common.logan.LoganManager
;
import
com.gingersoft.gsa.cloud.common.logan.LoganManager
;
import
com.gingersoft.gsa.cloud.common.service.
GetInfoUpdate
Service
;
import
com.gingersoft.gsa.cloud.common.service.
DataNotification
Service
;
import
com.gingersoft.gsa.cloud.common.utils.AppDevices
;
import
com.gingersoft.gsa.cloud.common.utils.AppDevices
;
import
com.gingersoft.gsa.cloud.common.utils.JsonUtils
;
import
com.gingersoft.gsa.cloud.common.utils.JsonUtils
;
import
com.gingersoft.gsa.cloud.common.utils.StytemUtils
;
import
com.gingersoft.gsa.cloud.common.utils.StytemUtils
;
...
@@ -218,24 +218,24 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
...
@@ -218,24 +218,24 @@ public class NewMainActivity extends BaseFragmentActivity<NewMainPresenter> impl
}
}
private
void
initService
()
{
private
void
initService
()
{
// boolean deliveryOrderServiceRunning = StytemUtils.isServiceRunning("com.gingersoft.gsa.cloud.common.service.GetInfoUpdateService", this);
boolean
deliveryOrderServiceRunning
=
StytemUtils
.
isServiceRunning
(
"com.gingersoft.gsa.cloud.common.service.DataNotificationService"
,
this
);
// if (!deliveryOrderServiceRunning) {
if
(!
deliveryOrderServiceRunning
)
{
// Intent service = new Intent(GsaCloudApplication.getAppContext(), GetInfoUpdateService.class);
Intent
service
=
new
Intent
(
GsaCloudApplication
.
getAppContext
(),
DataNotificationService
.
class
);
// service.putExtra(GetInfoUpdateService.CONNECTION_TYPE, GetInfoUpdateService.mCurrConnectionType);
service
.
putExtra
(
DataNotificationService
.
CONNECTION_TYPE
,
DataNotificationService
.
mCurrConnectionType
);
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
O
)
{
// startForegroundService(service);
startForegroundService
(
service
);
// } else {
}
else
{
// startService(service);
startService
(
service
);
// }
// }
boolean
prjServiceRunning
=
StytemUtils
.
isServiceRunning
(
"com.joe.print.mvp.print.service.PrjService"
,
this
);
if
(!
prjServiceRunning
)
{
//開啟Prj打印服務
CC
.
obtainBuilder
(
ComponentName
.
COMPONENT_PRINT
)
.
setActionName
(
"openPrintService"
)
.
build
()
.
call
();
}
}
}
// boolean prjServiceRunning = StytemUtils.isServiceRunning("com.joe.print.mvp.print.service.PrjService", this);
// if (!prjServiceRunning) {
// //開啟Prj打印服務
// CC.obtainBuilder(ComponentName.COMPONENT_PRINT)
// .setActionName("openPrintService")
// .build()
// .call();
// }
}
}
...
...
library-common/src/main/AndroidManifest.xml
View file @
7376ca17
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
android:name=
"design_height_in_dp"
android:name=
"design_height_in_dp"
android:value=
"640"
/>
android:value=
"640"
/>
<service
<service
android:name=
"com.gingersoft.gsa.cloud.common.service.
GetInfoUpdate
Service"
android:name=
"com.gingersoft.gsa.cloud.common.service.
DataNotification
Service"
android:enabled=
"true"
/>
android:enabled=
"true"
/>
</application>
</application>
</manifest>
</manifest>
library-common/src/main/java/com/gingersoft/gsa/cloud/common/service/
GetInfoUpdate
Service.kt
→
library-common/src/main/java/com/gingersoft/gsa/cloud/common/service/
DataNotification
Service.kt
View file @
7376ca17
File moved
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