forked from huyongli/huyongli.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html
689 lines (515 loc) · 36.8 KB
/
基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
<!DOCTYPE html>
<html lang=zh>
<head>
<meta charset="utf-8">
<title>基于openfire+smack开发Android即时聊天应用[一]—openfire安装部署 | 老胡</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="Java领域的即时通信解决方案可以考虑基于xmpp协议的openfire+smack+spark来实现,都是开源的。最近一直在研究这个,也做了一个简单的Android即时聊天客户端,支持文本、图片、语音消息。
Demo地址请见此系列文章最后一篇">
<meta property="og:type" content="article">
<meta property="og:title" content="基于openfire+smack开发Android即时聊天应用[一]—openfire安装部署">
<meta property="og:url" content="http://ittiger.cn/基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html">
<meta property="og:site_name" content="老胡">
<meta property="og:description" content="Java领域的即时通信解决方案可以考虑基于xmpp协议的openfire+smack+spark来实现,都是开源的。最近一直在研究这个,也做了一个简单的Android即时聊天客户端,支持文本、图片、语音消息。
Demo地址请见此系列文章最后一篇">
<meta property="og:image" content="http://ittiger.cn/img/openfire_0.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_1.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_2.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_3.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_4.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_5.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_6.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_7.png">
<meta property="og:image" content="http://ittiger.cn/img/openfire_8.png">
<meta property="og:updated_time" content="2016-08-04T07:50:08.150Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="基于openfire+smack开发Android即时聊天应用[一]—openfire安装部署">
<meta name="twitter:description" content="Java领域的即时通信解决方案可以考虑基于xmpp协议的openfire+smack+spark来实现,都是开源的。最近一直在研究这个,也做了一个简单的Android即时聊天客户端,支持文本、图片、语音消息。
Demo地址请见此系列文章最后一篇">
<meta name="twitter:image" content="http://ittiger.cn/img/openfire_0.png">
<link rel="alternate" href="atom.xml" title="老胡" type="application/atom+xml" />
<link rel="stylesheet" href="/libs/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/libs/open-sans/styles.css">
<link rel="stylesheet" href="/libs/source-code-pro/styles.css">
<link rel="stylesheet" href="/css/style.css">
<script src="/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="/libs/lightgallery/css/lightgallery.min.css">
<link rel="stylesheet" href="/libs/justified-gallery/justifiedGallery.min.css">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?5e886c0a11c8dce0abbe888faadd1000";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="container">
<header id="header">
<div id="header-main" class="header-inner">
<div class="outer">
<a href="/" id="logo">
<i class="logo"></i>
<span class="site-title">老胡</span>
</a>
<nav id="main-nav">
<a class="main-nav-link" href="/.">主页</a>
<a class="main-nav-link" href="/archives">归档</a>
<a class="main-nav-link" href="/categories">分类</a>
<a class="main-nav-link" href="/tags">标签</a>
<a class="main-nav-link" href="/about">关于</a>
<a class="main-nav-link" href="/website">干货</a>
</nav>
<nav id="sub-nav">
<div class="profile" id="profile-nav">
<a id="profile-anchor" href="javascript:;">
<img class="avatar" src="/css/images/avatar.png" />
<i class="fa fa-caret-down"></i>
</a>
</div>
</nav>
<div id="search-form-wrap">
<form class="search-form">
<input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
<button type="submit" class="search-form-submit"></button>
</form>
<div class="ins-search">
<div class="ins-search-mask"></div>
<div class="ins-search-container">
<div class="ins-input-wrapper">
<input type="text" class="ins-search-input" placeholder="想要查找什么..." />
<span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
</div>
<div class="ins-section-wrapper">
<div class="ins-section-container"></div>
</div>
</div>
</div>
<script>
(function (window) {
var INSIGHT_CONFIG = {
TRANSLATION: {
POSTS: '文章',
PAGES: '页面',
CATEGORIES: '分类',
TAGS: '标签',
UNTITLED: '(未命名)',
},
ROOT_URL: '/',
CONTENT_URL: '/content.json',
};
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>
</div>
</div>
</div>
<div id="main-nav-mobile" class="header-sub header-inner">
<table class="menu outer">
<tr>
<td><a class="main-nav-link" href="/.">主页</a></td>
<td><a class="main-nav-link" href="/archives">归档</a></td>
<td><a class="main-nav-link" href="/categories">分类</a></td>
<td><a class="main-nav-link" href="/tags">标签</a></td>
<td><a class="main-nav-link" href="/about">关于</a></td>
<td><a class="main-nav-link" href="/website">干货</a></td>
<td>
<div class="search-form">
<input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
</div>
</td>
</tr>
</table>
</div>
</header>
<div class="outer">
<aside id="profile">
<div class="inner profile-inner">
<div class="base-info profile-block">
<img id="avatar" src="/css/images/avatar.png" />
<h2 id="name">老胡</h2>
<h3 id="title">Android Developer</h3>
<span id="location"><i class="fa fa-map-marker"></i>WuHan, China</span>
<a id="follow" target="_blank" href="https://github.com/huyongli/">关注我</a>
</div>
<div class="article-info profile-block">
<div class="article-info-block">
49
<span>文章</span>
</div>
<div class="article-info-block">
47
<span>标签</span>
</div>
</div>
<div class="profile-block social-links">
<table>
<tr>
<td>
<a href="http://github.com/huyongli" target="_blank" title="github" class=tooltip>
<i class="fa fa-github"></i>
</a>
</td>
<td>
<a href="http://weibo.com/aclaohu" target="_blank" title="weibo" class=tooltip>
<i class="fa fa-weibo"></i>
</a>
</td>
<td>
<a href="/atom.xml" target="_blank" title="rss" class=tooltip>
<i class="fa fa-rss"></i>
</a>
</td>
</tr>
</table>
</div>
</div>
</aside>
<section id="main"><article id="post-基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 class="article-title" itemprop="name">
基于openfire+smack开发Android即时聊天应用[一]—openfire安装部署
</h1>
<div class="article-meta">
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html">
<time datetime="2015-10-30T07:24:10.000Z" itemprop="datePublished">2015-10-30</time>
</a>
</div>
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Android/">Android</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Android/">Android</a>, <a class="tag-link" href="/tags/IM/">IM</a>, <a class="tag-link" href="/tags/Openfire/">Openfire</a>, <a class="tag-link" href="/tags/smack/">smack</a>
</div>
</div>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Java领域的即时通信解决方案可以考虑基于xmpp协议的openfire+smack+spark来实现,都是开源的。最近一直在研究这个,也做了一个简单的Android即时聊天客户端,支持文本、图片、语音消息。</p>
<p>Demo地址请见此系列文章最后一篇</p>
<a id="more"></a>
<h3 id="XMPP协议"><a href="#XMPP协议" class="headerlink" title="XMPP协议"></a>XMPP协议</h3><p>大家自行到百度google上去补脑吧。</p>
<h3 id="openfire、smack、spark"><a href="#openfire、smack、spark" class="headerlink" title="openfire、smack、spark"></a>openfire、smack、spark</h3><ul>
<li>openfire是基于XMPP 协议的即时通信的服务器端的一个实现,如果你要实现一个简单的点对点通信或是简单的群聊,你完全可以使用该服务openfire本身提供的服务而不需要编写一行服务端的代码,非常方便。同时openfire还支持插件的扩展,如果你需要丰富增加服务端的功能,你可以基于openfire进行插件二次开发,或者直接修改openfire的源码实现。</li>
<li>smack是XMPP传输协议的Java实现,提供了一套API接口(类似于JDK中的HttpUrlConnection提供Http连接请求),它是连接openfire服务、发送通信信息的桥梁。</li>
<li>spark是基于smack实现的一个XMPP即时通信客户端(PC端的),spark貌似也是可以进行插件扩展的。<br>官网:<a href="http://www.igniterealtime.org/,我目前用的都是最新版本的openfire3.10.2,smack4.1.4" target="_blank" rel="external">http://www.igniterealtime.org/,我目前用的都是最新版本的openfire3.10.2,smack4.1.4</a><br>在smack4.1版本之前,smack本身是不支持Android平台的,不过当时有一个替代品asmack,github地址:<a href="https://github.com/flowdalic/asmack,在smack4.1之前我们可以通过asmack来配合openfire来实现Android端的即时通信应用,asmack和smack貌似api都差不多(我没看过asmack)。smack4.1之后就开始支持Android平台了,所以现在可以放弃asmack了。" target="_blank" rel="external">https://github.com/flowdalic/asmack,在smack4.1之前我们可以通过asmack来配合openfire来实现Android端的即时通信应用,asmack和smack貌似api都差不多(我没看过asmack)。smack4.1之后就开始支持Android平台了,所以现在可以放弃asmack了。</a><h3 id="Windows下的Openfire安装部署"><a href="#Windows下的Openfire安装部署" class="headerlink" title="Windows下的Openfire安装部署"></a>Windows下的Openfire安装部署</h3>去官网上下载最新的Openfire安装包,我下载的是不包含JDK的压缩包(Does not include Java JRE),解压就可以用了,前提是你已经装了JDK了,而且JDK版本必须是1.7或以上的版本,Openfire不支持JDK6,解压之后在Openfire的根目录bin目录下执行openfire.exe即可,启动之后如下图</li>
</ul>
<p><img src="/img/openfire_0.png" alt=""></p>
<p>在启动服务配置之前,先在你的数据库中创建一个名为openfire的数据库(支持多种数据库),点击图中的Launch Admin即会在浏览器上打开Openfire的配置界面,如下图:</p>
<p><img src="/img/openfire_1.png" alt=""></p>
<p>上图中选择简体中文,然后继续:</p>
<p><img src="/img/openfire_2.png" alt=""></p>
<p>上图中配置域,最好配置为你的服务器ip地址或者是域名,其他的默认不管,然后继续:</p>
<p><img src="/img/openfire_3.png" alt=""></p>
<p>上图中选择标准数据库连接,继续:</p>
<p><img src="/img/openfire_4.png" alt=""></p>
<p>上图中选择你的数据库类型,然后在数据库URL中填写正确的连接字符串,再填上你的数据库用户名和密码,然后继续</p>
<p><img src="/img/openfire_5.png" alt=""></p>
<p>上图中直接默认选择初始设置,然后继续:</p>
<p><img src="/img/openfire_6.png" alt=""></p>
<p>上图中填上管理员账户admin的邮件地址,然后填上该管理员账户的密码,然后继续:</p>
<p><img src="/img/openfire_7.png" alt=""></p>
<p>到上图即表示你的Openfire服务安装配置完成,然后点击登录后进入到管理员登录界面:</p>
<p><img src="/img/openfire_8.png" alt=""></p>
<p>Openfire默认的管理员账户为admin,秘密即为上面你设置的密码,登录成功之后,你可以通过这个Openfire管理平台管理该服务商所有的账户信息,服务器信息等。</p>
<h3 id="Linux环境下Openfire的安装部署"><a href="#Linux环境下Openfire的安装部署" class="headerlink" title="Linux环境下Openfire的安装部署"></a>Linux环境下Openfire的安装部署</h3><p>在官网上下载最新的源码安装包(如: openfire_3_10_2.tar.gz ),我选择的也是不包含jdk的源码安装包,将该包上传至服务器某个目录下,在该目录下执行命令 tar -zxvf openfire_3_10_2.tar.gz,解压完成后切换到Openfire/bin目录下执行命令: ./openfire start 启动Openfire服务,然后在你自己的pc机浏览器上打开<a href="http://服务器ip:9090,即会进入Openfire的配置界面,前提是必须准备好一个数据库,配置过程与Windows下的配置过程一样,请参考上面的操作步骤。" target="_blank" rel="external">http://服务器ip:9090,即会进入Openfire的配置界面,前提是必须准备好一个数据库,配置过程与Windows下的配置过程一样,请参考上面的操作步骤。</a></p>
<p>OK,Openfire服务的安装配置就介绍完了,下面一篇我就开始介绍smack的用法。</p>
<p>write by laohu</p>
<p>2015-10-30 15:59:54</p>
<hr>
<p>原创文章,本文采用<a href="https://creativecommons.org/licenses/by/2.5/cn/" target="_blank" rel="external">知识共享署名 2.5(中国大陆许可协议)</a>进行许可,欢迎转载,但转载请注明来自<a href="ittiger.cn">ittiger.cn</a>,并保证转载后文章内容的完整性。本人(laohu)保留所有版权相关权利。</p>
</div>
<!-- 打赏 -->
<!-- css -->
<style type="text/css">
.center {
text-align: center;
}
.hidden {
display: none;
}
.donate_bar a.btn_donate{
display: inline-block;
width: 82px;
height: 82px;
background: url("http://7xsl28.com1.z0.glb.clouddn.com/btn_reward.gif") no-repeat;
_background: url("http://7xsl28.com1.z0.glb.clouddn.com/btn_reward.gif") no-repeat;
<!-- http://img.t.sinajs.cn/t5/style/images/apps_PRF/e_media/btn_reward.gif
因为本 hexo 生成的博客所用的 theme 的 a:hover 带动画效果,
为了在让打赏按钮显示效果正常 而 添加了以下几行 css,
嵌入其它博客时不一定要它们。 -->
-webkit-transition: background 0s;
-moz-transition: background 0s;
-o-transition: background 0s;
-ms-transition: background 0s;
transition: background 0s;
<!-- /让打赏按钮的效果显示正常 而 添加的几行 css 到此结束 -->
}
.donate_bar a.btn_donate:hover{ background-position: 0px -82px;}
.donate_bar .donate_txt {
display: block;
color: #9d9d9d;
font: 14px/2 "Microsoft Yahei";
}
.bold{ font-weight: bold; }
</style>
<!-- /css -->
<!-- Donate Module -->
<div id="donate_module">
<!-- btn_donate & tips -->
<div id="donate_board" class="donate_bar center">
<br>
<br>
<a id="btn_donate" class="btn_donate" target="_self" href="javascript:;" title="Donate 打赏"></a>
<span class="donate_txt">
对你有帮助?求鼓励,求支持!
</span>
</div>
<!-- /btn_donate & tips -->
<!-- donate guide -->
<div id="donate_guide" class="donate_bar center hidden">
<br>
<br>
<a href="http://ittiger.cn/img/weixinpay.png" title="用微信扫一扫哦~" class="fancybox" rel="article0">
<img src="http://ittiger.cn/img/weixinpay.png" title="微信打赏 Colin" height="200px" width="auto"/>
</a>
<a href="http://ittiger.cn/img/alipay.png" title="用支付宝扫一扫即可~" class="fancybox" rel="article0">
<img src="http://ittiger.cn/img/alipay.png" title="支付宝打赏 Colin" height="200px" width="auto"/>
</a>
<span class="donate_txt">
对你有帮助?求鼓励,求支持!
</span>
</div>
<!-- /donate guide -->
<!-- donate script -->
<script type="text/javascript">
document.getElementById('btn_donate').onclick = function() {
$('#donate_board').addClass('hidden');
$('#donate_guide').removeClass('hidden');
}
function donate_on_web(){
$('#donate').submit();
}
var original_window_onload = window.onload;
window.onload = function () {
if (original_window_onload) {
original_window_onload();
}
document.getElementById('donate_board_wdg').className = 'hidden';
}
</script>
<!-- /donate script -->
</div>
<br>
<br>
<!-- /Donate Module -->
<!-- 打赏 -->
<footer class="article-footer">
<div class="share-container">
<div class="bdsharebuttonbox">
<a href="#" class="bds_more" data-cmd="more">分享到:</a>
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a>
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a>
<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a>
</div>
<script>
window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>
<style>
.bdshare_popup_box {
border-radius: 4px;
border: #e1e1e1 solid 1px;
}
.bdshare-button-style0-16 a,
.bdshare-button-style0-16 .bds_more {
padding-left: 20px;
margin: 6px 10px 6px 0;
}
.bdshare_dialog_list a,
.bdshare_popup_list a,
.bdshare_popup_bottom a {
font-family: 'Microsoft Yahei';
}
.bdshare_popup_top {
display: none;
}
.bdshare_popup_bottom {
height: auto;
padding: 5px;
}
</style>
</div>
<a href="http://ittiger.cn/基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html#comments" class="article-comment-link ds-thread-count" data-thread-key="http://ittiger.cn/基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html">评论</a>
</footer>
</div>
<nav id="article-nav">
<a href="/基于openfire-smack开发Android即时聊天应用-二-用户注册、登陆、修改密码、注销等.html" id="article-nav-newer" class="article-nav-link-wrap">
<strong class="article-nav-caption">上一篇</strong>
<div class="article-nav-title">
基于openfire+smack开发Android即时聊天应用[二]-用户注册、登陆、修改密码、注销等
</div>
</a>
<a href="/Android开发问题汇总–持续更新.html" id="article-nav-older" class="article-nav-link-wrap">
<strong class="article-nav-caption">下一篇</strong>
<div class="article-nav-title">Android开发问题汇总–持续更新</div>
</a>
</nav>
</article>
<section id="comments">
<div class="ds-thread" data-thread-key="基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html" data-title="基于openfire+smack开发Android即时聊天应用[一]—openfire安装部署" data-url="http://ittiger.cn/基于openfire-smack开发Android即时聊天应用-一-—openfire安装部署.html"></div>
<style>
#ds-thread #ds-reset .ds-textarea-wrapper {
background: none;
}
#ds-reset .ds-avatar img {
box-shadow: none;
}
#ds-reset .ds-gradient-bg {
background: #f7f7f7;
}
#ds-thread #ds-reset li.ds-tab a {
border-radius: 3px;
}
#ds-thread #ds-reset .ds-post-button {
color: white;
border: none;
box-shadow: none;
background: #d32;
text-shadow: none;
font-weight: normal;
font-family: 'Microsoft Yahei';
}
#ds-thread #ds-reset .ds-post-button:hover {
color: white;
background: #DE594C;
}
#ds-thread #ds-reset .ds-post-button:active {
background: #d32;
}
#ds-smilies-tooltip ul.ds-smilies-tabs li a.ds-current {
color: white;
background: #d32;
box-shadow: none;
text-shadow: none;
font-weight: normal;
}
</style>
</section>
</section>
<aside id="sidebar">
<div class="widget-wrap">
<h3 class="widget-title">最新文章</h3>
<div class="widget">
<ul id="recent-post" class="no-thumbnail">
<li>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/小程序/">小程序</a></p>
<p class="item-title"><a href="/weixin-xcx-data-binding-and-params-transfer.html" class="title">微信小程序之页面数据绑定及页面跳转传参</a></p>
<p class="item-date"><time datetime="2017-07-17T09:50:02.000Z" itemprop="datePublished">2017-07-17</time></p>
</div>
</li>
<li>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/小程序/">小程序</a></p>
<p class="item-title"><a href="/weixin-xcx-tabbar-switch.html" class="title">微信小程序之Tab切换</a></p>
<p class="item-date"><time datetime="2017-07-17T09:44:58.000Z" itemprop="datePublished">2017-07-17</time></p>
</div>
</li>
<li>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/小程序/">小程序</a></p>
<p class="item-title"><a href="/weixin-xcx-first-project.html" class="title">微信小程序之入门项目</a></p>
<p class="item-date"><time datetime="2017-07-17T09:40:39.000Z" itemprop="datePublished">2017-07-17</time></p>
</div>
</li>
<li>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/Android/">Android</a></p>
<p class="item-title"><a href="/TextSwitcher-ViewSwitcher.html" class="title">TextSwitcher与ViewSwitcher学习笔记</a></p>
<p class="item-date"><time datetime="2017-07-12T09:36:51.000Z" itemprop="datePublished">2017-07-12</time></p>
</div>
</li>
<li>
<div class="item-inner">
<p class="item-category"><a class="article-category-link" href="/categories/Media-Apps/">Media Apps</a></p>
<p class="item-title"><a href="/MediaBrowserService.html" class="title">关于媒体浏览器服务(MediaBrowserService)</a></p>
<p class="item-date"><time datetime="2017-04-30T13:45:04.000Z" itemprop="datePublished">2017-04-30</time></p>
</div>
</li>
</ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">分类</h3>
<div class="widget">
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Android/">Android</a><span class="category-list-count">34</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Blog/">Blog</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/JavaScript/">JavaScript</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Linux/">Linux</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Material-Design/">Material Design</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Media-Apps/">Media Apps</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/小程序/">小程序</a><span class="category-list-count">3</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">归档</h3>
<div class="widget">
<ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">七月 2017</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">四月 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">三月 2017</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/">二月 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">十一月 2016</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">十月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">九月 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/">八月 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">七月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/06/">六月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">五月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">一月 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">十一月 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">十月 2015</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">九月 2015</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/03/">三月 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/12/">十二月 2014</a><span class="archive-list-count">1</span></li></ul>
</div>
</div>
<div class="widget-wrap">
<h3 class="widget-title">标签云</h3>
<div class="widget tagcloud">
<a href="/tags/9-png/" style="font-size: 12px;">9.png</a> <a href="/tags/Activity/" style="font-size: 10px;">Activity</a> <a href="/tags/Android/" style="font-size: 20px;">Android</a> <a href="/tags/AndroidStudio/" style="font-size: 10px;">AndroidStudio</a> <a href="/tags/Apache/" style="font-size: 10px;">Apache</a> <a href="/tags/Behavior/" style="font-size: 14px;">Behavior</a> <a href="/tags/Hexo/" style="font-size: 10px;">Hexo</a> <a href="/tags/IM/" style="font-size: 18px;">IM</a> <a href="/tags/IndexStickyView/" style="font-size: 10px;">IndexStickyView</a> <a href="/tags/JSONP/" style="font-size: 10px;">JSONP</a> <a href="/tags/Java/" style="font-size: 10px;">Java</a> <a href="/tags/JavaScript/" style="font-size: 10px;">JavaScript</a> <a href="/tags/Linux/" style="font-size: 18px;">Linux</a> <a href="/tags/Lucene/" style="font-size: 10px;">Lucene</a> <a href="/tags/Material-Design/" style="font-size: 14px;">Material Design</a> <a href="/tags/MediaBrowserService/" style="font-size: 10px;">MediaBrowserService</a> <a href="/tags/MediaControllerCompat/" style="font-size: 10px;">MediaControllerCompat</a> <a href="/tags/MySQL/" style="font-size: 10px;">MySQL</a> <a href="/tags/ORM/" style="font-size: 10px;">ORM</a> <a href="/tags/OkHttp/" style="font-size: 12px;">OkHttp</a> <a href="/tags/Openfire/" style="font-size: 18px;">Openfire</a> <a href="/tags/RecyclerView/" style="font-size: 16px;">RecyclerView</a> <a href="/tags/Retrofit/" style="font-size: 14px;">Retrofit</a> <a href="/tags/RxJava/" style="font-size: 10px;">RxJava</a> <a href="/tags/SQLite/" style="font-size: 10px;">SQLite</a> <a href="/tags/Shape/" style="font-size: 10px;">Shape</a> <a href="/tags/SpannableStringBuilder/" style="font-size: 10px;">SpannableStringBuilder</a> <a href="/tags/TableLayout/" style="font-size: 10px;">TableLayout</a> <a href="/tags/TextSwitcher/" style="font-size: 10px;">TextSwitcher</a> <a href="/tags/TextView/" style="font-size: 10px;">TextView</a> <a href="/tags/TigerDB/" style="font-size: 10px;">TigerDB</a> <a href="/tags/TigerOkHttp/" style="font-size: 10px;">TigerOkHttp</a> <a href="/tags/Tips/" style="font-size: 10px;">Tips</a> <a href="/tags/ViewSwitcher/" style="font-size: 10px;">ViewSwitcher</a> <a href="/tags/WordPress/" style="font-size: 18px;">WordPress</a> <a href="/tags/Zip解压/" style="font-size: 10px;">Zip解压</a> <a href="/tags/smack/" style="font-size: 18px;">smack</a> <a href="/tags/vsftpd/" style="font-size: 10px;">vsftpd</a> <a href="/tags/导航/" style="font-size: 10px;">导航</a> <a href="/tags/小程序/" style="font-size: 14px;">小程序</a> <a href="/tags/崩溃/" style="font-size: 10px;">崩溃</a> <a href="/tags/生命周期/" style="font-size: 10px;">生命周期</a> <a href="/tags/百度地图/" style="font-size: 10px;">百度地图</a> <a href="/tags/相机/" style="font-size: 12px;">相机</a> <a href="/tags/资源适配/" style="font-size: 10px;">资源适配</a> <a href="/tags/退出App/" style="font-size: 10px;">退出App</a> <a href="/tags/阿里云/" style="font-size: 18px;">阿里云</a>
</div>
</div>
<div class="widget-wrap widget-list">
<h3 class="widget-title">链接</h3>
<div class="widget">
<ul>
<li>
<a href="https://ashui.site/" rel="external nofollow">番羽土啬</a>
</li>
</ul>
</div>
</div>
<div id="toTop" class="fa fa-angle-up"></div>
</aside>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2017 老胡<br>
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>. Theme by <a href="http://github.com/ppoffice">PPOffice</a>
</div>
</div>
</footer>
<script type="text/javascript">
var duoshuoQuery = {short_name:'ittiger'};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<script src="/libs/lightgallery/js/lightgallery.min.js"></script>
<script src="/libs/lightgallery/js/lg-thumbnail.min.js"></script>
<script src="/libs/lightgallery/js/lg-pager.min.js"></script>
<script src="/libs/lightgallery/js/lg-autoplay.min.js"></script>
<script src="/libs/lightgallery/js/lg-fullscreen.min.js"></script>
<script src="/libs/lightgallery/js/lg-zoom.min.js"></script>
<script src="/libs/lightgallery/js/lg-hash.min.js"></script>
<script src="/libs/lightgallery/js/lg-share.min.js"></script>
<script src="/libs/lightgallery/js/lg-video.min.js"></script>
<script src="/libs/justified-gallery/jquery.justifiedGallery.min.js"></script>
<!-- Custom Scripts -->
<script src="/js/main.js"></script>
</div>
</body>
</html>