File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ class BaseApplication : Application() {
16
16
super .onCreate()
17
17
instance = this
18
18
19
- NetSpyHelper .install(this , true )
19
+ NetSpyHelper .install(this )
20
20
}
21
21
}
Original file line number Diff line number Diff line change 1
1
package com.zhxh.coroutines.ui
2
2
3
3
import android.content.Intent
4
- import android.support.v7.app.AppCompatActivity
5
4
import android.os.Bundle
5
+ import android.support.v7.app.AppCompatActivity
6
+ import com.creditease.netspy.NetSpyHelper
6
7
import com.zhxh.coroutines.R
7
8
import com.zhxh.coroutines.ui.netspy.MainNetSpyActivity
8
9
import kotlinx.android.synthetic.main.activity_guide.*
@@ -23,5 +24,9 @@ class GuideActivity : AppCompatActivity() {
23
24
btn_netspy.setOnClickListener {
24
25
startActivity(Intent (this @GuideActivity, MainNetSpyActivity ::class .java))
25
26
}
27
+ btn_netspy_open.setOnClickListener {
28
+
29
+ NetSpyHelper .debug(true )
30
+ }
26
31
}
27
32
}
Original file line number Diff line number Diff line change 33
33
android : text =" netspy监听"
34
34
android : textAllCaps =" false" />
35
35
36
+ <Button
37
+ android : id =" @+id/btn_netspy_open"
38
+ android : layout_width =" wrap_content"
39
+ android : layout_height =" wrap_content"
40
+ android : layout_gravity =" center_horizontal"
41
+ android : layout_marginTop =" 10dp"
42
+ android : text =" 开启监听状态"
43
+ android : textAllCaps =" false" />
44
+
36
45
</LinearLayout >
You can’t perform that action at this time.
0 commit comments