摘要: EditText mTextInput=(EditText)findViewById(R.id.input);//EditText对象int index = mTextInput.getSelectionStart();//获取光标所在位置String text="I want to input s... 阅读全文
posted @ 2014-12-10 11:10 dongweiq 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1 package com.sixin.view; 2 3 import com.sixin.utile.FaceDataUtil; 4 import android.annotation.SuppressLint; 5 import android.content.Context; 6 imp... 阅读全文
posted @ 2014-12-10 10:45 dongweiq 阅读(543) 评论(0) 推荐(0) 编辑
摘要: Android开发的过程中,每次调用startService(Intent)的时候,都会调用该Service对象的onStartCommand(Intent,int,int)方法,然后在onStartCommand方法中做一些处理。然后我们注意到这个函数有一个int的返回值,这篇文章就是简单地讲讲i... 阅读全文
posted @ 2014-12-10 10:19 dongweiq 阅读(200) 评论(0) 推荐(0) 编辑