![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
apwy111
这个作者很懒,什么都没留下…
展开
-
语音识别代码记录
public class RecognizerIntentActivity extends Activity { private Button btnReconizer; private static final int VOICE_RECOGNITION_REQUEST_CODE = 1234; @Override protected void onC原创 2013-08-08 11:24:33 · 992 阅读 · 0 评论 -
关于android中的定位
目前主流的Android定位有如下几种:1.通过GPS模块GPS方式准确度是最高的,但是它的缺点也非常明显:1,比较耗电;2,绝大部分用户默认不开启GPS模块;3,从GPS模块启动到获取第一次定位数据,可能需要比较长的时间;4,室内几乎无法使用。这其中,缺点2,3都是比较致命的。需要指出的是,GPS走的是卫星通信的通道,在没有网络连接的情况下也能用。2.基站定位大致思路就是采集到手原创 2013-08-08 11:45:23 · 595 阅读 · 0 评论 -
onStartCommand 的返回值 .
在android中,我们使用startService启动服务。在Service的派生类里,会调用onStartCommand(Intent,int,int)来启动服务。onStartCommand有三种返回值:START_STICKY:sticky的意思是“粘性的”。使用这个返回值时,我们启动的服务跟应用程序"粘"在一起,如果在执行完onStartCommand后,服务被异常kill掉转载 2013-08-08 10:33:32 · 738 阅读 · 0 评论 -
android 一些路径的标准写法
一些路径的标准写法 Environment.getDataDirectory() = /data Environment.getDownloadCacheDirectory() = /cache Environment.getExternalStorageDirectory() = /mnt/sdcard Environment.getRootDirectory() = /sy原创 2013-09-24 14:29:38 · 599 阅读 · 0 评论