Android
iteye_11969
这个作者很懒,什么都没留下…
展开
-
android
android2009-06-02 17:51:21 · 62 阅读 · 0 评论 -
基于android和arduino 的小车控制
基于android和arduino 的小车控制,小车部分采用的是 arduino 开源硬件实现,arduino 学起来比较简单,看看文档在看几个例子基本就会了。官网是http://arduino.cc/我是在某宝上购买的一组套件,最终发现很多都没有用上,有点眼高手低。android 和 arduino 通信 是通过蓝牙。小车控制比较简单,前、后、左、右、向左转圈、向右转圈。以下是源码;...原创 2013-03-17 21:03:08 · 568 阅读 · 0 评论 -
TextView添加Onclick点击无效没反应解决办法
再给TextView添加Onclick事件时,发现点击无效没反应,原因是还需要配置android:clickable="true"。 <TextView android:id="@id/group" style="@style/BottomTab" android:layout_width="0.0dip" ...原创 2013-10-29 15:59:24 · 293 阅读 · 0 评论 -
emulator-arm.exe 已停止工作解决办法
win7 emulator-arm.exe 已停止工作解决办法 在创建avd的时候,它的name就像是java中创建class一样,首字母一定要大写,要不然系统就不能识别出来,就会出现无法写入的情况 netstat -aon|findstr "5037" tasklist|findstr "4808" ...原创 2013-10-28 13:44:42 · 250 阅读 · 0 评论 -
安卓手机软件开发
安卓手机软件开发 netstat -aon|findstr "5037" tasklist|findstr "4808" http://blog.csdn.net/feng4656/article/details/9198161原创 2013-07-05 09:05:32 · 319 阅读 · 0 评论 -
SDL_app:emulator.exe应用程序错误
启动模拟器时 出现:弹出:SDL_app:emulator.exe 应用程序错误 解决办法: 删除sd 卡的大学设置 即可.原创 2011-05-15 21:21:30 · 79 阅读 · 0 评论 -
android 重力感应初步认识
android 重力感应初步认识,写了个测试demo,来认识android 的重力感应。上代码:import android.app.Activity;import android.hardware.Sensor;import android.hardware.SensorEvent;import android.hardware.SensorEventListener;...原创 2012-02-12 23:33:25 · 80 阅读 · 0 评论 -
软键盘默认输入模式是数字模式
EditText et = (EditText) findViewById(R.id.et); et.setInputType(InputType.TYPE_CLASS_NUMBER);2010-07-15 21:50:05 · 191 阅读 · 0 评论 -
解决打开 layout下布局文件时eclipse死掉原因
解决打开 layout下布局文件时eclipse死掉原因在eclipse中直接打开android的布局文件时 eclipse会死掉。真正原因是jdk的问题 ,我的jdk是1.5的 更新成1.6的就没问题了。...2010-07-08 15:48:28 · 137 阅读 · 0 评论 -
TextView 加链接所有方法
android textView 加入连接方式:1:使用android:autoLink="all" 只需在textview中加入这个属性 在里面写的文字中包含网址、电话、email的会自动加入连接地址。如: 2:uses a string resource containing explicit tags to specify links. 如: t...2010-07-08 13:45:15 · 71 阅读 · 0 评论 -
【解决Android2.2开发时 在eclipse 中 file explorer视图不显示sdcard】
解决android2.2 开发时 在eclipse 中的 视图file explorer 中不显示sdcard现象。这个问题让我郁闷了很久最终发现时版本不兼容问题。如果各位遇到了这样的问题不妨更新一下ddms 插件。哦不要忘了 1.6 以后对sdcard 的读写要加上权限啊就是这个...原创 2010-07-08 11:49:08 · 179 阅读 · 0 评论 -
显式intent和隐式intent区别
android当中显式intent和隐式intent的区别定义:Intent定义:Intent是一种在不同组件之间传递的请求消息,是应用程序发出的请求和意图。作为一个完整的消息传递机制,Intent不仅需要发送端,还需要接收端。 显式Intent定义:对于明确指出了目标组件名称的Intent,我们称之为显式Intent。 隐式Intent定义:对于没有明确指出...原创 2011-06-17 14:47:29 · 747 阅读 · 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....原创 2011-06-12 16:29:07 · 119 阅读 · 0 评论 -
获取屏幕宽度
Display display = getWindowManager().getDefaultDisplay(); Log.i("view", "height:" + display.getHeight()); Log.i("view", "width:" + display.getWidth());原创 2011-05-29 22:36:58 · 117 阅读 · 0 评论 -
android 弹出窗口
new AlertDialog.Builder(this).setTitle("提示").setMessage(R.string.about).setIcon( R.drawable.play_radio).setNegativeButton("返回", new DialogInterface.OnClickListener() { public void onClick...原创 2011-05-24 22:15:47 · 70 阅读 · 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, ...原创 2011-05-22 23:43:21 · 369 阅读 · 0 评论 -
TextView 实现 滚动条
第一步:设置xml文件<TextView android:id="@+id/title" android:layout_width="293px" android:layout_height="262px" android:text="@+id/TextView01" android:layout_x="11px" android:layout_y="160px" a原创 2011-05-22 22:43:28 · 61 阅读 · 0 评论 -
小米手机短信拦截转发失败原因
小米手机短信拦截转发失败原因,小米手机短信拦截转发失败原因短信的设置里面有个“系统短信优先”,要把这个关闭才能你的程序才能正常监听到短信。...原创 2013-04-28 15:58:38 · 232 阅读 · 0 评论