浏览代码

从2.9分支移植OpenRemoteUrl插件,与现有OpenUrl合并

zhanglong7 7 年之前
父节点
当前提交
65434a92ed

二进制
ipu-mobile-common/libs/ipu-plugin-basic-3.0-SNAPSHOT.jar


二进制
ipu-mobile-common/libs/ipu-plugin-extend.jar


+ 13 - 0
ipu-mobile-common/res/anim/pop_bottom_in.xml

@ -0,0 +1,13 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<set xmlns:android="http://schemas.android.com/apk/res/android"  
4
    android:shareInterpolator="false">  
5
    <translate  
6
        android:fromYDelta="100%p"  
7
        android:toYDelta="0"   
8
        android:duration="300" />  
9
    <alpha  
10
        android:fromAlpha="0"  
11
        android:toAlpha="1.0"   
12
        android:duration="300"/>     
13
</set> 

+ 15 - 0
ipu-mobile-common/res/anim/pop_bottom_out.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<set xmlns:android="http://schemas.android.com/apk/res/android" 
3
    android:shareInterpolator="false">
4
    
5
6
    <translate 
7
        android:fromXDelta="0"
8
        android:fromYDelta="100%p"
9
        android:duration="300"/>
10
    
11
    <alpha 
12
        android:fromAlpha="1.0"
13
        android:toAlpha="0"
14
        android:duration="300"/>
15
</set>

+ 11 - 0
ipu-mobile-common/res/anim/popup_push_in.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<scale xmlns:android="http://schemas.android.com/apk/res/android"
3
   android:fromXScale="1.0" 
4
   android:toXScale="1.0"
5
   android:fromYScale="0"
6
   android:toYScale="1.0"
7
   android:pivotX="0"
8
   android:pivotY="10%"
9
   android:duration="200">
10
   
11
</scale>

+ 11 - 0
ipu-mobile-common/res/anim/popup_push_out.xml

@ -0,0 +1,11 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<scale xmlns:android="http://schemas.android.com/apk/res/android"
3
  android:fromXScale="1.0"
4
  android:toXScale="1.0"
5
  android:fromYScale="1.0"
6
  android:toYScale="0"
7
  android:pivotX="0"
8
  android:pivotY="10%"
9
  android:duration="200" >
10
11
</scale>

+ 15 - 0
ipu-mobile-common/res/drawable/share_share_util.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:android="http://schemas.android.com/apk/res/android" 
3
    android:shape="rectangle">
4
    
5
    <corners android:topLeftRadius="5dip"
6
        android:topRightRadius="5dip"/>
7
    
8
    <solid 
9
        android:color="@android:color/white"/>
10
    
11
    <stroke android:width="1dp"
12
        android:color="@color/gray"/>
13
    
14
15
</shape>

+ 28 - 0
ipu-mobile-common/res/drawable/url_webview_pg.xml

@ -0,0 +1,28 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
3
    
4
    <item android:id="@android:id/background">
5
		<shape >
6
		    <corners android:radius="2dp"/>
7
		    <gradient 
8
		        android:angle="270"
9
                android:centerColor="#E3E3E3"
10
                android:endColor="#E6E6E6"
11
                android:startColor="#C8C8C8"/>
12
		</shape>        
13
    </item>
14
    
15
    <item android:id="@android:id/progress">
16
        <clip >
17
	        <shape >
18
			    <corners android:radius="2dp"/>
19
			    
20
			    <gradient 
21
			        android:startColor="#c6e2ff"
22
			        android:centerColor="#9eceff"
23
			        android:endColor="#7fbfff"/>
24
			</shape>  
25
		 </clip >
26
    </item>
27
28
</layer-list>

+ 60 - 0
ipu-mobile-common/res/layout/activity_ipuurl.xml

@ -0,0 +1,60 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:orientation="vertical" >
6
    
7
    <RelativeLayout 
8
        android:id="@+id/topbar_url"
9
        android:layout_width="match_parent"
10
        android:layout_height="wrap_content"
11
        android:background="@android:color/white">
12
         
13
        <ImageButton
14
            android:id="@+id/btn_url_back"
15
            android:layout_width="wrap_content"
16
            android:layout_height="wrap_content"
17
            android:layout_alignParentLeft="true"
18
            android:src="@drawable/browser_back_unpressed"
19
            android:background="@color/transparent"
20
            android:layout_marginLeft="10dp"
21
            android:layout_marginTop="5dp"
22
            android:layout_marginBottom="5dp"
23
            />
24
        
25
        <TextView
26
            android:id="@+id/tv_url_title"
27
            android:layout_width="wrap_content"
28
            android:layout_height="wrap_content"
29
            android:layout_centerInParent="true"
30
            android:textSize="20sp"
31
            android:text="标题栏"/>
32
        
33
        <ImageButton
34
            android:id="@+id/btn_url_more"
35
            android:layout_width="wrap_content"
36
            android:layout_height="wrap_content"
37
            android:layout_alignParentRight="true"
38
            android:src="@drawable/browser_homepage_unpressed"
39
            android:background="@color/transparent"
40
            android:layout_marginRight="10dp"
41
            android:layout_marginTop="5dp"
42
            android:layout_marginBottom="5dp"/>
43
44
    </RelativeLayout>
45
    
46
    <ProgressBar 
47
        android:id="@+id/url_webload_bar"
48
        android:layout_width="match_parent"
49
        android:layout_height="2dp"
50
        style="?android:attr/progressBarStyleHorizontal"
51
        android:progressDrawable="@drawable/url_webview_pg"
52
        android:visibility="gone"/>
53
    
54
    <WebView
55
        android:id="@+id/wv_url"
56
        android:layout_width="match_parent"
57
        android:layout_height="0dp"
58
        android:layout_weight="1"/>
59
    
60
</LinearLayout>

+ 104 - 0
ipu-mobile-common/res/layout/popup_more.xml

@ -0,0 +1,104 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="300dp"
4
    android:layout_height="wrap_content"
5
    android:orientation="vertical" 
6
    android:background="@android:color/white">
7
    
8
    <LinearLayout 
9
        android:id="@+id/close_popup"
10
        android:layout_width="wrap_content"
11
        android:layout_height="45dp"
12
        android:orientation="vertical">
13
        
14
	    <TextView 
15
	        android:id="@+id/close_popup_tv"
16
	        android:text="关闭"
17
	        android:layout_width="match_parent"
18
	        android:layout_height="match_parent"
19
	        android:layout_weight="1"
20
	        android:gravity="center"/>  
21
	        
22
	    <View 
23
	        android:layout_height="1dp"
24
	        android:layout_width="match_parent"
25
	        android:layout_marginLeft="20dp"
26
	        android:layout_marginRight="20dp"
27
	        android:background="@android:color/darker_gray"/>
28
        
29
    </LinearLayout>
30
    
31
    <LinearLayout 
32
        android:id="@+id/share_popup"
33
        android:layout_width="match_parent"
34
        android:layout_height="45dp"
35
        android:orientation="vertical"
36
        android:visibility="gone">
37
    
38
	    <TextView 
39
	        android:id="@+id/share_popup_tv"
40
	        android:text="分享"
41
	        android:layout_height="match_parent"
42
	        android:layout_weight="1"
43
	        android:layout_width="match_parent"
44
	        android:gravity="center"/> 
45
	        
46
	    <View 
47
	        android:layout_height="1dp"
48
	        android:layout_width="match_parent"
49
	        android:layout_marginLeft="20dp"
50
	        android:layout_marginRight="20dp"
51
	        android:background="@android:color/darker_gray"/>
52
    
53
    </LinearLayout>
54
    
55
    <LinearLayout 
56
	    android:id="@+id/refresh_popup"
57
	    android:layout_width="match_parent"
58
	    android:layout_height="45dp"
59
	    android:orientation="vertical"
60
	    android:visibility="gone">
61
    
62
	    <TextView 
63
	        android:id="@+id/refresh_popup_tv"
64
	        android:text="刷新"
65
	        android:layout_height="match_parent"
66
	        android:layout_width="match_parent"
67
	        android:gravity="center"
68
	        android:layout_weight="1"/> 
69
	        
70
	    <View 
71
	        android:layout_height="1dp"
72
	        android:layout_width="match_parent"
73
	        android:layout_marginLeft="20dp"
74
	        android:layout_marginRight="20dp"
75
	        android:background="@android:color/darker_gray"/>
76
    
77
    </LinearLayout>
78
    
79
    <LinearLayout 
80
	    android:id="@+id/copylink_popup"
81
	    android:layout_width="match_parent"
82
	    android:layout_height="45dp"
83
	    android:orientation="vertical"
84
	    android:visibility="gone">
85
        
86
		    <TextView 
87
		        android:id="@+id/copylink_popup_tv"
88
		        android:layout_height="match_parent"
89
		        android:layout_width="match_parent"
90
		        android:gravity="center"
91
		        android:layout_weight="1"
92
		        android:text="复制链接">
93
		    </TextView>
94
		    
95
		  	<View 
96
		        android:layout_height="1dp"
97
		        android:layout_width="match_parent"
98
		        android:layout_marginLeft="20dp"
99
		        android:layout_marginRight="20dp"
100
		        android:background="@android:color/darker_gray"/>
101
  	  
102
  	  </LinearLayout>
103
104
</LinearLayout>

+ 18 - 0
ipu-mobile-common/res/layout/share_util_dialog.xml

@ -0,0 +1,18 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
4
    android:layout_width="wrap_content"
5
    android:layout_height="wrap_content" 
6
    android:id="@+id/layout_grid">
7
    
8
    <GridView
9
        android:id="@+id/grid_share"
10
        android:layout_width="match_parent"
11
        android:layout_height="match_parent"
12
        android:gravity="center"
13
        android:layout_marginTop="5dp"
14
        android:layout_marginBottom="5dp"
15
        android:numColumns="3">
16
        
17
    </GridView>
18
</FrameLayout>

+ 288 - 0
ipu-mobile-common/res/values/colors.xml

@ -0,0 +1,288 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources>
3
    <!--透明色 -->
4
<color name="transparent">#00000000</color>
5
<!--白色 -->
6
<color name="white">#ffffffff</color>
7
<!--象牙色 -->
8
<color name="ivory">#FFFFF0</color>
9
<!--亮黄色 -->
10
<color name="lightyellow">#FFFFE0</color>
11
<!--黄色 -->
12
<color name="yellow">#FFFF00</color>
13
<!--雪白色 -->
14
<color name="snow">#FFFAFA</color>
15
<!--花白色 -->
16
<color name="floralwhite">#FFFAF0</color>
17
<!--柠檬绸色 -->
18
<color name="lemonchiffon">#FFFACD</color>
19
<!--米绸色 -->
20
<color name="cornsilk">#FFF8DC</color>
21
<!--海贝色 -->
22
<color name="seashell">#FFF5EE</color>
23
<!--淡紫红 -->
24
<color name="lavenderblush">#FFF0F5</color>
25
<!--番木色 -->
26
<color name="papayawhip">#FFEFD5</color>
27
<!--白杏色 -->
28
<color name="blanchedalmond">#FFEBCD</color>
29
<!--浅玫瑰色 -->
30
<color name="mistyrose">#FFE4E1</color>
31
<!--桔黄色 -->
32
<color name="bisque">#FFE4C4</color>
33
<!--鹿皮色 -->
34
<color name="moccasin">#FFE4B5</color>
35
<!--纳瓦白 -->
36
<color name="navajowhite">#FFDEAD</color>
37
<!--桃色 -->
38
<color name="peachpuff">#FFDAB9</color>
39
<!--金色 -->
40
<color name="gold">#FFD700</color>
41
<!--粉红色 -->
42
<color name="pink">#FFC0CB</color>
43
<!--亮粉红色 -->
44
<color name="lightpink">#FFB6C1</color>
45
<!--橙色 -->
46
<color name="orange">#FFA500</color>
47
<!--亮肉色 -->
48
<color name="lightsalmon">#FFA07A</color>
49
<!--暗桔黄色 -->
50
<color name="darkorange">#FF8C00</color>
51
<!--珊瑚色 -->
52
<color name="coral">#FF7F50</color>
53
<!--热粉红色 -->
54
<color name="hotpink">#FF69B4</color>
55
<!--西红柿色 -->
56
<color name="tomato">#FF6347</color>
57
<!--红橙色 -->
58
<color name="orangered">#FF4500</color>
59
<!--深粉红色 -->
60
<color name="deeppink">#FF1493</color>
61
<!--紫红色 -->
62
<color name="fuchsia">#FF00FF</color>
63
<!--红色 -->
64
<color name="red">#FF0000</color>
65
<!--老花色 -->
66
<color name="oldlace">#FDF5E6</color>
67
<!--亮金黄色 -->
68
<color name="lightgoldenrodyellow">#FAFAD2</color>
69
<!--亚麻色 -->
70
<color name="linen">#FAF0E6</color>
71
<!--古董白 -->
72
<color name="antiquewhite">#FAEBD7</color>
73
<!--鲜肉色 -->
74
<color name="salmon">#FA8072</color>
75
<!--幽灵白 -->
76
<color name="ghostwhite">#F8F8FF</color>
77
<!--薄荷色 -->
78
<color name="mintcream">#F5FFFA</color>
79
<!--烟白色 -->
80
<color name="whitesmoke">#F5F5F5</color>
81
<!--米色 -->
82
<color name="beige">#F5F5DC</color>
83
<!--浅黄色 -->
84
<color name="wheat">#F5DEB3</color>
85
<!--沙褐色 -->
86
<color name="sandybrown">#F4A460</color>
87
<!--天蓝色 -->
88
<color name="azure">#F0FFFF</color>
89
<!--蜜色 -->
90
<color name="honeydew">#F0FFF0</color>
91
<!--艾利斯兰 -->
92
<color name="aliceblue">#F0F8FF</color>
93
<!--黄褐色 -->
94
<color name="khaki">#F0E68C</color>
95
<!--亮珊瑚色 -->
96
<color name="lightcoral">#F08080</color>
97
<!--苍麒麟色 -->
98
<color name="palegoldenrod">#EEE8AA</color>
99
<!--紫罗兰色 -->
100
<color name="violet">#EE82EE</color>
101
<!--暗肉色 -->
102
<color name="darksalmon">#E9967A</color>
103
<!--淡紫色 -->
104
<color name="lavender">#E6E6FA</color>
105
<!--亮青色 -->
106
<color name="lightcyan">#E0FFFF</color>
107
<!--实木色 -->
108
<color name="burlywood">#DEB887</color>
109
<!--洋李色 -->
110
<color name="plum">#DDA0DD</color>
111
<!--淡灰色 -->
112
<color name="gainsboro">#DCDCDC</color>
113
<!--暗深红色 -->
114
<color name="crimson">#DC143C</color>
115
<!--苍紫罗兰色 -->
116
<color name="palevioletred">#DB7093</color>
117
<!--金麒麟色 -->
118
<color name="goldenrod">#DAA520</color>
119
<!--淡紫色 -->
120
<color name="orchid">#DA70D6</color>
121
<!--蓟色 -->
122
<color name="thistle">#D8BFD8</color>
123
<!--亮灰色 -->
124
<color name="lightgray">#D3D3D3</color>
125
<!--茶色 -->
126
<color name="tan">#D2B48C</color>
127
<!--巧可力色 -->
128
<color name="chocolate">#D2691E</color>
129
<!--秘鲁色 -->
130
<color name="peru">#CD853F</color>
131
<!--印第安红 -->
132
<color name="indianred">#CD5C5C</color>
133
<!--中紫罗兰色 -->
134
<color name="mediumvioletred">#C71585</color>
135
<!--银色 -->
136
<color name="silver">#C0C0C0</color>
137
<!--暗黄褐色 -->
138
<color name="darkkhaki">#BDB76B</color>
139
<!--褐玫瑰红 -->
140
<color name="rosybrown">#BC8F8F</color>
141
<!--中粉紫色 -->
142
<color name="mediumorchid">#BA55D3</color>
143
<!--暗金黄色 -->
144
<color name="darkgoldenrod">#B8860B</color>
145
<!--火砖色 -->
146
<color name="firebrick">#B22222</color>
147
<!--粉蓝色 -->
148
<color name="powderblue">#B0E0E6</color>
149
<!--亮钢兰色 -->
150
<color name="lightsteelblue">#B0C4DE</color>
151
<!--苍宝石绿 -->
152
<color name="paleturquoise">#AFEEEE</color>
153
<!--黄绿色 -->
154
<color name="greenyellow">#ADFF2F</color>
155
<!--亮蓝色 -->
156
<color name="lightblue">#ADD8E6</color>
157
<!--暗灰色 -->
158
<color name="darkgray">#A9A9A9</color>
159
<!--褐色 -->
160
<color name="brown">#A52A2A</color>
161
<!--赭色 -->
162
<color name="sienna">#A0522D</color>
163
<!--暗紫色 -->
164
<color name="darkorchid">#9932CC</color>
165
<!--苍绿色 -->
166
<color name="palegreen">#98FB98</color>
167
<!--暗紫罗兰色 -->
168
<color name="darkviolet">#9400D3</color>
169
<!--中紫色 -->
170
<color name="mediumpurple">#9370DB</color>
171
<!--亮绿色 -->
172
<color name="lightgreen">#90EE90</color>
173
<!--暗海兰色 -->
174
<color name="darkseagreen">#8FBC8F</color>
175
<!--重褐色 -->
176
<color name="saddlebrown">#8B4513</color>
177
<!--暗洋红 -->
178
<color name="darkmagenta">#8B008B</color>
179
<!--暗红色 -->
180
<color name="darkred">#8B0000</color>
181
<!--紫罗兰蓝色 -->
182
<color name="blueviolet">#8A2BE2</color>
183
<!--亮天蓝色 -->
184
<color name="lightskyblue">#87CEFA</color>
185
<!--天蓝色 -->
186
<color name="skyblue">#87CEEB</color>
187
<!--灰色 -->
188
<color name="gray">#808080</color>
189
<!--橄榄色 -->
190
<color name="olive">#808000</color>
191
<!--紫色 -->
192
<color name="purple">#800080</color>
193
<!--粟色 -->
194
<color name="maroon">#800000</color>
195
<!--碧绿色 -->
196
<color name="aquamarine">#7FFFD4</color>
197
<!--黄绿色 -->
198
<color name="chartreuse">#7FFF00</color>
199
<!--草绿色 -->
200
<color name="lawngreen">#7CFC00</color>
201
<!--中暗蓝色 -->
202
<color name="mediumslateblue">#7B68EE</color>
203
<!--亮蓝灰 -->
204
<color name="lightslategray">#778899</color>
205
<!--灰石色 -->
206
<color name="slategray">#708090</color>
207
<!--深绿褐色 -->
208
<color name="olivedrab">#6B8E23</color>
209
<!--石蓝色 -->
210
<color name="slateblue">#6A5ACD</color>
211
<!--暗灰色 -->
212
<color name="dimgray">#696969</color>
213
<!--中绿色 -->
214
<color name="mediumaquamarine">#66CDAA</color>
215
<!--菊兰色 -->
216
<color name="cornflowerblue">#6495ED</color>
217
<!--军兰色 -->
218
<color name="cadetblue">#5F9EA0</color>
219
<!--暗橄榄绿 -->
220
<color name="darkolivegreen">#556B2F</color>
221
<!--靛青色 -->
222
<color name="indigo">#4B0082</color>
223
<!--中绿宝石 -->
224
<color name="mediumturquoise">#48D1CC</color>
225
<!--暗灰蓝色 -->
226
<color name="darkslateblue">#483D8B</color>
227
<!--钢兰色 -->
228
<color name="steelblue">#4682B4</color>
229
<!--皇家蓝 -->
230
<color name="royalblue">#4169E1</color>
231
<!--青绿色 -->
232
<color name="turquoise">#40E0D0</color>
233
<!--中海蓝 -->
234
<color name="mediumseagreen">#3CB371</color>
235
<!--橙绿色 -->
236
<color name="limegreen">#32CD32</color>
237
<!--暗瓦灰色 -->
238
<color name="darkslategray">#2F4F4F</color>
239
<!--海绿色 -->
240
<color name="seagreen">#2E8B57</color>
241
<!--森林绿 -->
242
<color name="forestgreen">#228B22</color>
243
<!--亮海蓝色 -->
244
<color name="lightseagreen">#20B2AA</color>
245
<!--闪兰色 -->
246
<color name="dodgerblue">#1E90FF</color>
247
<!--中灰兰色 -->
248
<color name="midnightblue">#191970</color>
249
<!--浅绿色 -->
250
<color name="aqua">#00FFFF</color>
251
<!--青色 -->
252
<color name="cyan">#00FFFF</color>
253
<!--春绿色 -->
254
<color name="springgreen">#00FF7F</color>
255
<!--酸橙色 -->
256
<color name="lime">#00FF00</color>
257
<!--中春绿色 -->
258
<color name="mediumspringgreen">#00FA9A</color>
259
<!--暗宝石绿 -->
260
<color name="darkturquoise">#00CED1</color>
261
<!--深天蓝色 -->
262
<color name="deepskyblue">#00BFFF</color>
263
<!--暗青色 -->
264
<color name="darkcyan">#008B8B</color>
265
<!--水鸭色 -->
266
<color name="teal">#008080</color>
267
<!--绿色 -->
268
<color name="green">#008000</color>
269
<!--暗绿色 -->
270
<color name="darkgreen">#006400</color>
271
<!--蓝色 -->
272
<color name="blue">#0000FF</color>
273
<!--中兰色 -->
274
<color name="mediumblue">#0000CD</color>
275
<!--暗蓝色 -->
276
<color name="darkblue">#00008B</color>
277
<!--海军色 -->
278
<color name="navy">#000080</color>
279
<!--黑色 -->
280
<color name="black">#000000</color>
281
<!--草绿色 -->
282
<color name="grassgreen">#99cc33</color>
283
<!--灰色cc -->
284
<color name="gray_cc">#cccccc</color>
285
<!--灰色8f -->
286
<color name="gray_8f">#8f8f8f</color>
287
288
</resources>

+ 10 - 0
ipu-mobile-common/res/values/styles.xml

@ -16,5 +16,15 @@
16 16
    <style name="AppTheme" parent="AppBaseTheme">
17 17
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
18 18
    </style>
19
    
20
    <style name="Popup_more" parent="@android:style/Animation">
21
        <item name="android:windowEnterAnimation">@anim/popup_push_in</item>
22
        <item name="android:windowExitAnimation">@anim/popup_push_out</item>
23
    </style>
24
    
25
    <style name="Popup_share" parent="@android:style/Animation">
26
        <item name="android:windowEnterAnimation">@anim/pop_bottom_in</item>
27
        <item name="android:windowExitAnimation">@anim/pop_bottom_out</item>
28
    </style>
19 29

20 30
</resources>

+ 128 - 3
show-client/AndroidManifest.xml

@ -49,7 +49,24 @@
49 49
    
50 50
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
51 51
52
52
    <!-- 极光推送 start -->
53
    <permission
54
        android:name="com.ai.ipu.show.permission.JPUSH_MESSAGE"
55
        android:protectionLevel="signature" />  
56
    
57
    <uses-permission android:name="com.ai.ipu.show.permission.JPUSH_MESSAGE" />
58
    <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
59
    <uses-permission android:name="android.permission.INTERNET" />
60
    <uses-permission android:name="android.permission.WAKE_LOCK" />
61
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
62
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
63
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
64
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
65
    <uses-permission android:name="android.permission.VIBRATE" />
66
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
67
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
68
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
69
    <!-- 极光推送 end -->
53 70
    <!-- 
54 71
        android:name="com.wade.mobile.frame.IpuBasicApplication"
55 72
     -->
@ -111,14 +128,16 @@
111 128
        </activity>
112 129
        <!-- openUrl -->
113 130
        <activity
114
            android:name="com.wade.mobile.ui.activity.OpenUrlActivity">
131
            android:name="com.ai.ipu.mobile.ui.activity.OpenUrlActivity">
115 132
        </activity>
133
        <activity
134
        	android:name="com.ai.ipu.mobile.ui.activity.IpuUrlActivity" />
116 135
        <!-- 打开自定义浏览器 -->
117 136
        <activity
118 137
            android:name="com.wade.mobile.common.browser.BrowserActivity">
119 138
        </activity>
120 139
        <!-- 侧滑菜单 -->
121
        <activity android:name="com.wade.mobile.ui.activity.SlidingMenuActivity"
140
        <activity android:name="com.ai.ipu.mobile.ui.activity.SlidingMenuActivity"
122 141
            android:theme="@style/SlidingMenuTheme" >
123 142
        </activity>
124 143
        <!-- 蓝牙分享 -->
@ -297,6 +316,112 @@
297 316
        <!-- <service android:name="com.ai.ipu.ipu_pathmenu.PathMenuService" >
298 317
        </service> -->
299 318
        <!-- PathMenu End -->
319
        
320
321
    <!-- 极光推送 start -->
322
        <activity
323
            android:name="cn.jpush.android.ui.PushActivity"
324
            android:configChanges="orientation|keyboardHidden"
325
            android:theme="@android:style/Theme.NoTitleBar"
326
            android:exported="false">
327
            <intent-filter>
328
                <action android:name="cn.jpush.android.ui.PushActivity" />
329
                <category android:name="android.intent.category.DEFAULT" />
330
                <category android:name="com.ai.ipu.show" />
331
            </intent-filter>
332
        </activity>
333
        
334
        <service
335
            android:name="cn.jpush.android.service.PushService"
336
            android:process=":mult"
337
            android:exported="false">
338
            <intent-filter>
339
                <action android:name="cn.jpush.android.intent.REGISTER" />
340
                <action android:name="cn.jpush.android.intent.REPORT" />
341
                <action android:name="cn.jpush.android.intent.PushService" />
342
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
343
            </intent-filter>
344
        </service>
345
        <!-- since 3.0.9 Required SDK 核心功能-->
346
        <provider
347
            android:authorities="com.ai.ipu.show.DataProvider"
348
            android:name="cn.jpush.android.service.DataProvider"
349
            android:exported="false"
350
        />
351
        
352
        <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
353
        <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
354
        <service
355
            android:name="cn.jpush.android.service.DaemonService"
356
            android:enabled="true"
357
            android:exported="true">
358
            <intent-filter>
359
                <action android:name="cn.jpush.android.intent.DaemonService" />
360
                <category android:name="com.ai.ipu.show" />
361
            </intent-filter>
362
363
        </service>
364
        <!-- since 3.1.0 Required SDK 核心功能-->
365
        <provider
366
            android:authorities="com.ai.ipu.show.DownloadProvider"
367
            android:name="cn.jpush.android.service.DownloadProvider"
368
            android:exported="true"
369
        />
370
        <!-- Required SDK核心功能-->
371
        <receiver
372
            android:name="cn.jpush.android.service.PushReceiver"
373
            android:enabled="true"
374
            android:exported="false">
375
            <intent-filter android:priority="1000">
376
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />   <!--Required  显示通知栏 -->
377
                <category android:name="com.ai.ipu.show" />
378
            </intent-filter>
379
            <intent-filter>
380
                <action android:name="android.intent.action.USER_PRESENT" />
381
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
382
            </intent-filter>
383
            <!-- Optional -->
384
            <intent-filter>
385
                <action android:name="android.intent.action.PACKAGE_ADDED" />
386
                <action android:name="android.intent.action.PACKAGE_REMOVED" />
387
388
                <data android:scheme="package" />
389
            </intent-filter>
390
        </receiver>
391
392
        <!-- Required SDK核心功能-->
393
        <receiver android:name="cn.jpush.android.service.AlarmReceiver" android:exported="false"/>
394
        
395
        <receiver
396
            android:name="com.ai.ipu.push.JPushMessageReceiver"
397
            android:exported="false"
398
            android:enabled="true">
399
            <intent-filter>
400
                <action android:name="cn.jpush.android.intent.REGISTRATION" /> <!--Required  用户注册SDK的intent-->
401
                <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> <!--Required  用户接收SDK消息的intent-->
402
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> <!--Required  用户接收SDK通知栏信息的intent-->
403
                <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> <!--Required  用户打开自定义通知栏的intent-->
404
                <action android:name="cn.jpush.android.intent.CONNECTION" /><!-- 接收网络变化 连接/断开 since 1.6.3 -->
405
                <category android:name="com.ai.ipu.show" />
406
            </intent-filter>
407
        </receiver>
408
        
409
        <receiver android:name="com.ai.ipu.push.JPushResultListener">
410
            <intent-filter>
411
                <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
412
                <category android:name="com.ai.ipu.show"></category>
413
            </intent-filter>
414
        </receiver>
415
        
416
        <!-- Required  . Enable it you can get statistics data with channel -->
417
        <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。-->
418
        <!-- 例如: -->
419
        <!-- 发到 Google Play 的APK可以设置为 google-play; -->
420
        <!-- 发到其他市场的 APK 可以设置为 xxx-market。 -->
421
        <meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
422
        <meta-data android:name="JPUSH_APPKEY" android:value="1a317ab3313d94412c949ab9" /> <!--  </>值来自开发者平台取得的AppKey-->
423
        
424
    <!-- 极光推送 end -->
300 425
    </application>
301 426
302 427
</manifest>

+ 11 - 1
show-server/src/main/webapp/biz/js/plugins/pageHandler/pageHandler.js

@ -21,7 +21,17 @@ require(["domReady!","wadeMobile","mobile","jcl","iScroll","util"], function(doc
21 21
	});
22 22
	// 被打开的url,不管停留在哪一层页面,按返回会提示退出
23 23
	$("#openUrl").click(function(){
24
		Mobile.openUrl("https://www.baidu.com");
24
		var url = "https://www.baidu.com";
25
		var title = "自定义主题";
26
		var style = ["azure","brown"];
27
		var buttons = ["share","refresh"];
28
		var shareData = Wade.DataMap();
29
		shareData.put("contentTitle","分享名");
30
		shareData.put("contentDes","分享描述");
31
		shareData.put("imgUrl","http://weixin.qq.com/zh_CN/htmledition/images/weixin/weixin_logo20f761.png");
32
		WadeMobile.openRemoteUrl(url,title,style,buttons,shareData,function(){
33
			
34
		});
25 35
	});
26 36
	// 被打开的url,不管停留在哪一层页面,直接退出至ipu主页面
27 37
	$("#loadUrl").click(function(){

+ 3 - 0
show-server/src/main/webapp/ipu/js/mobile/expand-mobile.js

@ -170,6 +170,9 @@ define(["require","jcl"],function(require,Wade) {
170 170
				execute("openBrowser",[url],err);
171 171
			},openIpuBrowser:function(url,hasTitle,err){
172 172
				execute("openIpuBrowser",[url,hasTitle],err);
173
			},openRemoteUrl:function(url,title,style,buttons,shareContent,callback){
174
				storageCallback("openRemoteUrl",callback);
175
				execute("openUrl",[url,title,style,buttons,shareContent]);
173 176
			},setSmsListener:function(callback,telString,err){
174 177
				storageCallback("setSmsListener", callback);
175 178
				execute("setSmsListener", [telString],err);