
android 开发
游离于移动互联网边缘
从业7年有余,从事java、android、ruby、arduino 、python 的开发,讨厌重复,喜欢创新,简单明快,自己定位:游离于移动互联网边缘
展开
-
android.os.BinderProxy cannot be cast to com.android.server.am.Activit 解决办法
安卓开发在使用百度地图的过程中,试图通过百度地图获取当前经纬度 控制台报错:Bad activity token: android.os.BinderProxyjava.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.android.server.am.ActivityRecord$To原创 2014-04-15 15:14:22 · 8474 阅读 · 0 评论 -
android Notification 进度条
package com.ljc.Notification; import android.app.Activity;import android.app.Notification;import android.app.NotificationManager;import android.app.PendingIntent;import android.content.Int原创 2014-04-02 15:42:42 · 587 阅读 · 0 评论 -
解决打开 layout下布局文件时eclipse死掉原因
解决打开 layout下布局文件时eclipse死掉原因在eclipse中直接打开android的布局文件时 eclipse会死掉。真正原因是jdk的问题 ,我的jdk是1.5的 更新成1.6的就没问题了。原创 2014-04-02 15:40:00 · 933 阅读 · 0 评论 -
TextView 加链接所有方法
android textView 加入连接方式:1:使用android:autoLink="all" 只需在textview中加入这个属性 在里面写的文字中包含网址、电话、email的会自动加入连接地址。如: android:id="@+id/text1" android:layout_width="match_parent" android:layout_height="mat原创 2014-04-02 15:39:55 · 701 阅读 · 0 评论 -
android 安卓TabActivity 两次返回键退出
private long firstBackKeyDown; @Override public boolean dispatchKeyEvent(KeyEvent event) { if(event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEY转载 2014-04-03 10:02:44 · 1256 阅读 · 0 评论 -
TextView添加Onclick点击无效没反应解决办法
再给TextView添加Onclick事件时,发现点击无效没反应,原因是还需要配置android:clickable="true"。 <TextView android:id="@id/group" style="@style/BottomTab" android:layout_width="0.0dip" andr原创 2014-04-02 15:50:37 · 5684 阅读 · 0 评论 -
【解决Android2.2开发时 在eclipse 中 file explorer视图不显示sdcard】
解决android2.2 开发时 在eclipse 中的 视图file explorer 中不显示sdcard现象。这个问题让我郁闷了很久最终发现时版本不兼容问题。如果各位遇到了这样的问题不妨更新一下ddms 插件。哦不要忘了 1.6 以后对sdcard 的读写要加上权限啊就是这个原创 2014-04-02 15:39:45 · 893 阅读 · 0 评论 -
android 百度地图使用tabhost 无法定位,解决办法
在 tabhost 中使用百度地图居然无法定位,而单独运行activity ji原创 2014-07-16 13:01:58 · 1039 阅读 · 0 评论 -
android listview 有 checkbox 时点击没反应 解决办法
现象:ListView的Item上有一个CheckBox,点击ListView无响应原创 2014-06-11 17:31:34 · 4313 阅读 · 0 评论 -
java ArrayList 转 string 便捷方法
使用:org.apache.commons.lang 的 lei原创 2014-06-11 18:37:35 · 4142 阅读 · 0 评论 -
android 实现指定wifi切换
import java.util.ArrayList;import java.util.List;import android.content.Context;import android.net.wifi.ScanResult;import android.net.wifi.WifiConfiguration;import android.net.wifi.WifiInfo;imp转载 2014-07-09 11:48:25 · 2485 阅读 · 0 评论 -
小米手机短信拦截转发失败原因
小米手机短信拦截转发失败原因,小米手机短信拦截转发失败原因短信的设置里面有个“系统短信优先”,要把这个关闭才能你的程序才能正常监听到短信。原创 2014-04-02 15:50:16 · 2404 阅读 · 2 评论 -
emulator-arm.exe 已停止工作解决办法
win7 emulator-arm.exe 已停止工作解决办法 在创建avd的时候,它的name就像是java中创建class一样,首字母一定要大写,要不然系统就不能识别出来,就会出现无法写入的情况 netstat -aon|findstr "5037" tasklist|findstr "4808"原创 2014-04-02 15:50:32 · 1923 阅读 · 0 评论 -
arduino uno 连接 tp-link wr703n 实例
arduino uno 连接 tp-link wr703n 实例,arduino 连接wr703n 实例最近应公司需求,需要做个小东西来实时反馈服务器机房温度,会上一提到这个事情脑袋里马上想起了我搁置很久的老家伙 ardino uno 板子。计划通过它加速个路由器搞得这个需求。步骤 : (1): arduino + 传感器 进行机房温度数据采集。 (2)原创 2014-04-02 15:50:27 · 2086 阅读 · 0 评论 -
基于android和arduino 的小车控制
基于android和arduino 的小车控制,小车部分采用的是 arduino 开源硬件实现,arduino 学起来比较简单,看看文档在看几个例子基本就会了。官网是http://arduino.cc/我是在某宝上购买的一组套件,最终发现很多都没有用上,有点眼高手低。android 和 arduino 通信 是通过蓝牙。小车控制比较简单,前、后、左、右、向左转圈、向右转圈。以下是源码;原创 2014-04-02 15:50:05 · 3110 阅读 · 1 评论 -
显式intent和隐式intent区别
android当中显式intent和隐式intent的区别定义:Intent定义:Intent是一种在不同组件之间传递的请求消息,是应用程序发出的请求和意图。作为一个完整的消息传递机制,Intent不仅需要发送端,还需要接收端。 显式Intent定义:对于明确指出了目标组件名称的Intent,我们称之为显式Intent。 隐式Intent定义:对于没有明确指出原创 2014-04-02 15:42:54 · 714 阅读 · 0 评论 -
获取屏幕宽度
Display display = getWindowManager().getDefaultDisplay(); Log.i("view", "height:" + display.getHeight()); Log.i("view", "width:" + display.getWidth());原创 2014-04-02 15:42:29 · 980 阅读 · 0 评论 -
android 弹出窗口
new AlertDialog.Builder(this).setTitle("提示").setMessage(R.string.about).setIcon( R.drawable.play_radio).setNegativeButton("返回", new DialogInterface.OnClickListener() { public void onClick原创 2014-04-02 15:42:27 · 816 阅读 · 0 评论 -
使用SimpleAdapter 适配器时显示网络上图片方法
SimpleAdapter listItemAdapter = new SimpleAdapter(this, listItem, R.layout.items_list, new String[] { "imagePath", "name", "njname", "length", "id" }, new int[] { R.id.imagePath, R.id.name, R原创 2014-04-02 15:42:19 · 1645 阅读 · 1 评论 -
TextView 实现 滚动条
第一步:设置xml文件 android:layout_height="262px" android:text="@+id/TextView01" android:layout_x="11px" android:layout_y="160px" android:scrollbars="vertical" android:singleLine="false" android:max原创 2014-04-02 15:42:17 · 628 阅读 · 0 评论 -
SDL_app:emulator.exe应用程序错误
启动模拟器时 出现:弹出:SDL_app:emulator.exe 应用程序错误 解决办法: 删除sd 卡的大学设置 即可. 大小: 25.3 KB 查看图片附件原创 2014-04-02 15:42:12 · 681 阅读 · 0 评论 -
软键盘默认输入模式是数字模式
EditText et = (EditText) findViewById(R.id.et); et.setInputType(InputType.TYPE_CLASS_NUMBER);原创 2014-04-02 15:40:10 · 1829 阅读 · 0 评论 -
[置顶] 安卓手机软件开发
安卓手机软件开发 netstat -aon|findstr "5037" tasklist|findstr "4808" http://blog.youkuaiyun.com/feng4656/article/details/9198161原创 2014-04-02 15:51:01 · 1013 阅读 · 0 评论 -
android tabhost 只执行一次问题
使用tabhost做底部菜单时,发现多次切换tabhost 所调用的activity只执行一次。原创 2014-08-14 14:23:57 · 818 阅读 · 0 评论