<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[专注Android 开发 300 年]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/mimitracely</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; mimitracely]]></copyright><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（八） 添加/删除好友]]></title><link>https://blog.csdn.net/mimitracely/article/details/8103894</link><guid>https://blog.csdn.net/mimitracely/article/details/8103894</guid><author>mimitracely</author><pubDate>Tue, 23 Oct 2012 17:40:17 +0800</pubDate><description><![CDATA[国际惯例，先上图：


代码比较简单，只需给listview设置Listener就OK，
当点击删除后，这里没有做提示，会直接删除，删除后应当给服务器发送一个删除好友的包，服务器端更新数据库中的数据。
然后客户端要做的就是更新下好友列表。
具体看代码吧：

private void setListViewListener() {
		listView.setOnItemClickL]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ 《更新》（源码下载）]]></title><link>https://blog.csdn.net/mimitracely/article/details/8067644</link><guid>https://blog.csdn.net/mimitracely/article/details/8067644</guid><author>mimitracely</author><pubDate>Sat, 13 Oct 2012 16:23:21 +0800</pubDate><description><![CDATA[Android
 开发即时聊天工具 YQ 


开发环境：Eclipse + JDK 1.7 + SDK 2.2
服务器端不能运行的请检查你的JDK版本 ：）
源码已上传：

点击下载源码（带数据库以及数据库脚本）
更新
http://blog.csdn.net/vestigge/article/details/8183564




有些*航班网，转载都不注明出处的]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（七） 气泡聊天]]></title><link>https://blog.csdn.net/mimitracely/article/details/8067329</link><guid>https://blog.csdn.net/mimitracely/article/details/8067329</guid><author>mimitracely</author><pubDate>Sat, 13 Oct 2012 15:55:55 +0800</pubDate><description><![CDATA[首先看看效果：




实现方式还是listview自定义adapter，只不过用了两个布局文件，左边的一种布局，右边的一种布局，在消息实体类中添加一个变量，用来判断是发出的消息还是收到的消息，从而在adapter的getView()中，决定采用哪种布局。


chat_listview_item_left.xml


<RelativeLayout xmlns:android]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（六） 最近会话列表]]></title><link>https://blog.csdn.net/mimitracely/article/details/8061265</link><guid>https://blog.csdn.net/mimitracely/article/details/8061265</guid><author>mimitracely</author><pubDate>Fri, 12 Oct 2012 10:31:44 +0800</pubDate><description><![CDATA[实现的效果如图：


RecentActivity：

public class RecentActivity extends Activity{
	ListView listView;
	List chatEntityList=new ArrayList();
	String[] mes;
	
	protected void onCreate(Bundle savedInstanceS]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（五） 发送消息]]></title><link>https://blog.csdn.net/mimitracely/article/details/8057654</link><guid>https://blog.csdn.net/mimitracely/article/details/8057654</guid><author>mimitracely</author><pubDate>Wed, 10 Oct 2012 19:01:52 +0800</pubDate><description><![CDATA[服务器端转发消息功能上节已经实现，只需将消息转发给消息包中的接收人即可，

if(m.getType().equals(YQMessageType.COM_MES)){//如果是普通消息包  
   //取得接收人的通信线程  
   ServerConClientThread scc=ManageServerConClient.getClientThread(m.getReceiver())]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（四） 获取好友列表]]></title><link>https://blog.csdn.net/mimitracely/article/details/8052555</link><guid>https://blog.csdn.net/mimitracely/article/details/8052555</guid><author>mimitracely</author><pubDate>Tue, 09 Oct 2012 15:36:15 +0800</pubDate><description><![CDATA[在Android 开发即时聊天工具 YQ ：（三） 实现登陆功能中已经实现了登陆功能，离能聊天又近了一步了 ：）
在实现聊天之前还有一个重要的东西，？没错，就是好友列表，没的好友你和谁聊呀，是吧，
嘿嘿，一切从简，早点实现基本的聊天目标的说，所以代码很懒(or 烂？)，为什么呢？看完就知道了，
在服务器端当登陆成功后，新开一个线程，用来服务器和该账号通信，这样服务器端就可以处理别的登陆请求了]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（三） 实现登陆功能]]></title><link>https://blog.csdn.net/mimitracely/article/details/8047759</link><guid>https://blog.csdn.net/mimitracely/article/details/8047759</guid><author>mimitracely</author><pubDate>Mon, 08 Oct 2012 13:37:30 +0800</pubDate><description><![CDATA[前面socket基本通信完了，登陆界面也已经完成，下面就是重点了，实现登陆功能
服务器和客户端的代码当然不肯能用那个控制台的那个了，所以全部得重写，不过原理都一样，代码也差不多，都有注释，一看就明白。
先是登陆的Activity：

public class LoginActivity extends Activity {
	protected void onCreate(Bundle s]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（二） 完成登陆界面]]></title><link>https://blog.csdn.net/mimitracely/article/details/8044062</link><guid>https://blog.csdn.net/mimitracely/article/details/8044062</guid><author>mimitracely</author><pubDate>Sat, 06 Oct 2012 22:18:59 +0800</pubDate><description><![CDATA[话说放假人都玩去了，咱还在写代码，唉，，，还得慢慢学，，，废话不多了，进入主题
先上图：


界面是仿QQ 安卓客户端的，参考了网上的代码，图片素材直接解压安卓手机QQ就有了，话说没做商业用途，不算侵权吧？
代码很简单就一个布局文件，

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"]]></description><category></category></item><item><title><![CDATA[Android 开发即时聊天工具 YQ ：（一） Socket 初步]]></title><link>https://blog.csdn.net/mimitracely/article/details/8043995</link><guid>https://blog.csdn.net/mimitracely/article/details/8043995</guid><author>mimitracely</author><pubDate>Sat, 06 Oct 2012 21:51:46 +0800</pubDate><description><![CDATA[这段时间在学习Android网络编程，习惯一边写个简单的项目一边学习，所以就有了这个简易的简易的，，，项目，
类似于手机QQ等等的即时聊天工具，当然功能及其简单，跟那些没法比，只是学习，实现简单功能就OK，


听说QQ是有自己的协议的，貌似挺复杂，，，
只为学习交流之用，而且本人也是Android小菜鸟一枚，错误或不足在所难免，请大家多多指正，3Q~


先看看socket通信基]]></description><category></category></item><item><title><![CDATA[Java Socket 通信中传递Object对象注意的问题]]></title><link>https://blog.csdn.net/mimitracely/article/details/8036961</link><guid>https://blog.csdn.net/mimitracely/article/details/8036961</guid><author>mimitracely</author><pubDate>Tue, 02 Oct 2012 17:59:32 +0800</pubDate><description><![CDATA[Java Socket通信中传递自定义对象时，出现了

java.lang.ClassNotFoundException
网上查了半天，原因是 客户端和服务端传递的对象所在包的路径不一致，
也有人说必须添加serialVersionUID，并且一致，测试后发现不用添加也可以通信，]]></description><category></category></item><item><title><![CDATA[Android App Widget 设计]]></title><link>https://blog.csdn.net/mimitracely/article/details/8020282</link><guid>https://blog.csdn.net/mimitracely/article/details/8020282</guid><author>mimitracely</author><pubDate>Wed, 26 Sep 2012 12:29:04 +0800</pubDate><description><![CDATA[App Widget是一种UI组件，可以嵌入到手机桌面上。
比如天气的widget：


App Widget的实现流程：

1.App Widget的UI，xml布局文件


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://sch]]></description><category></category></item><item><title><![CDATA[Java UI 可视化设计工具 windowbuilder 的安装]]></title><link>https://blog.csdn.net/mimitracely/article/details/8000696</link><guid>https://blog.csdn.net/mimitracely/article/details/8000696</guid><author>mimitracely</author><pubDate>Thu, 20 Sep 2012 16:31:28 +0800</pubDate><description><![CDATA[在Eclipse下，在线安装windowbuilder的方法：
选择help->install new software：
点击add添加地址：
http://dl.google.com/eclipse/inst/d2wbpro/latest/4.2

下载对应eclipse版本的插件 ，我的eclispe是4.2版本，如果是3.6将4.2改成3.6即可，


选择设计UI的类型，]]></description><category></category></item><item><title><![CDATA[Android 漂浮的Activity]]></title><link>https://blog.csdn.net/mimitracely/article/details/7969755</link><guid>https://blog.csdn.net/mimitracely/article/details/7969755</guid><author>mimitracely</author><pubDate>Tue, 18 Sep 2012 12:44:35 +0800</pubDate><description><![CDATA[漂浮


非常简单只需要在 AndroidManifest.xml 设置



android:theme="@android:style/Theme.Dialog"




半透明



android:theme="@android:style/Theme.Translucent"]]></description><category></category></item><item><title><![CDATA[Android 数据存储与读取：SQLite]]></title><link>https://blog.csdn.net/mimitracely/article/details/7982976</link><guid>https://blog.csdn.net/mimitracely/article/details/7982976</guid><author>mimitracely</author><pubDate>Sat, 15 Sep 2012 20:36:54 +0800</pubDate><description><![CDATA[在Android平台上，集成了一个嵌入式关系型数据库—SQLite。如果你想要开发 Android 应用程序，一定需要在 Android 上存储数据，使用SQLite 数据库是一种非常好的选择。
下面介绍的基本使用：
是一个抽象类不能直接实例化，所以新建一个类DBOpenHelper继承自SQLiteOpenHelper ：
public class DBOpenHelper extends]]></description><category></category></item><item><title><![CDATA[Android 解析 json]]></title><link>https://blog.csdn.net/mimitracely/article/details/7981274</link><guid>https://blog.csdn.net/mimitracely/article/details/7981274</guid><author>mimitracely</author><pubDate>Sat, 15 Sep 2012 09:38:00 +0800</pubDate><description><![CDATA[要解析的json数据：
{"data":
		{"info":[
		         		{"id":"01","name":"张三","年龄":"22","地址":"成都"},
		         		{"id":"02","name":"李四","年龄":"23","地址":"北京"},
		         		{"id":"03","name":"王五","年龄":"24","地址"]]></description><category></category></item><item><title><![CDATA[Android 自定义 ListView]]></title><link>https://blog.csdn.net/mimitracely/article/details/7980871</link><guid>https://blog.csdn.net/mimitracely/article/details/7980871</guid><author>mimitracely</author><pubDate>Fri, 14 Sep 2012 22:50:03 +0800</pubDate><description><![CDATA[先上图：




ListView的布局文件listview.xml


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    and]]></description><category></category></item><item><title><![CDATA[【Android 腾讯微博】-- Oauth2.0认证以及登录]]></title><link>https://blog.csdn.net/mimitracely/article/details/7974160</link><guid>https://blog.csdn.net/mimitracely/article/details/7974160</guid><author>mimitracely</author><pubDate>Thu, 13 Sep 2012 11:09:44 +0800</pubDate><description><![CDATA[申请AppKey，AppSecret

必须到微博开放平台官方网站申请应用的AppKey和AppSecret后，才能完成微博登录。

SDK（Android_SDK_v1.2.jar）适用的开发环境


JAVA SDK v5 及以上
Android SDK 2.2（level8） 及以上
依赖包：httpmime-4.1.3.jar

特别说明： Android SDK 2]]></description><category></category></item><item><title><![CDATA[Andorid 自定义标题栏]]></title><link>https://blog.csdn.net/mimitracely/article/details/7968944</link><guid>https://blog.csdn.net/mimitracely/article/details/7968944</guid><author>mimitracely</author><pubDate>Tue, 11 Sep 2012 21:41:59 +0800</pubDate><description><![CDATA[效果如图：


先在strings.xml 中定义主题

    
    	@drawable/title_bg
	
    
	
	    40dp 
	    @style/customTitlebg 
	
在AndroidManifest.xml，application标签中改为使用我们自定义的主题


<application
        android:icon=]]></description><category></category></item><item><title><![CDATA[【Android 新浪微博】--底部Tab的实现]]></title><link>https://blog.csdn.net/mimitracely/article/details/7968743</link><guid>https://blog.csdn.net/mimitracely/article/details/7968743</guid><author>mimitracely</author><pubDate>Tue, 11 Sep 2012 20:44:48 +0800</pubDate><description><![CDATA[国际惯例先上图：


tabhost布局文件，注意tabhost，tabcontent和tabs这三个id一定要正确


<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="mat]]></description><category></category></item><item><title><![CDATA[Android 强制横屏]]></title><link>https://blog.csdn.net/mimitracely/article/details/7959613</link><guid>https://blog.csdn.net/mimitracely/article/details/7959613</guid><author>mimitracely</author><pubDate>Sun, 09 Sep 2012 09:53:41 +0800</pubDate><description><![CDATA[方法一：在AndroidManifest.xml文件中，Activity元素中加入

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
方法二：


requestWindowFeature(Window.FEATURE_NO_TITLE);/]]></description><category></category></item></channel></rss>