
android
木华立
这个作者很懒,什么都没留下…
展开
-
android蓝牙自动配对
之前做的蓝牙自动配对,现在整理一下。免得忘记。首页一定要注意权限问题[html] view plaincopyuses-permission android:name="android.permission.BLUETOOTH" /> //使用蓝牙的权限 uses-permission android:name="and转载 2013-11-29 22:09:04 · 13887 阅读 · 12 评论 -
android蓝牙(二)——接收数据
android和蓝牙通信接收数据原创 2014-04-27 14:28:26 · 24764 阅读 · 6 评论 -
android网络框架Volley(一)
一、什么是Volley androi网络通信开发,我们经常使用的东西莫过于AsyncTaskLoader,HttpURLConnection,AsyncTask,HTTPClient。Google I/O 2013上,发布了Volley。Volley是Android平台上的网络通信库,能使网络通信更快,更简单,更健壮。git 地址git clone https://android原创 2014-04-10 09:58:23 · 2340 阅读 · 1 评论 -
android蓝牙开发(一)——蓝牙设置种常用的Intent
private boolean initBluetoothAPI() { mIntentFilter =// 跟远端蓝牙设备连接上时返回来的intentnew IntentFilter(BluetoothIntent.REMOTE_DEVICE_CONNECTED_ACTION);// 跟远端蓝牙设备断开时返回来的intent mIntentFilter.addAction原创 2014-03-24 17:13:31 · 3071 阅读 · 0 评论 -
android解决gridview只显示一半
gridview在ScrollView中使用 android:layout_height="wrap_content" 发现并没有显示全部,而只是显示了一半。为了解决这个问题,打算重写了GridView。 public class MyGridView extends GridView{ public MyGridView(Context context, Attribute原创 2014-03-21 09:31:31 · 10446 阅读 · 1 评论 -
android自动更新
软件的自动更新一般都与Splash界面绑定在一起, 由于需要维护的软件界面很复杂, 一个Activity中嵌入ViewPager, 并且逻辑比较复杂, 索性重新写一个Activity, 现在的软件都很流行使用Splash界面, 正好与自动更新配套在一起;在这个自动更新Splash中, 使用到了 动画设置 ,SharedPerference ,pull解析 ,dialog对话框转载 2013-12-01 21:17:40 · 987 阅读 · 0 评论 -
Android SwipeRefreshLayout 、RecyclerView 下拉刷新冲突
好久没写android了,发现5.0之后更新很大。在项目中SwipeRefreshLayout和RecyclerView一起使用,发现一些手机RecyclerView没有滑动到顶部,手指向下滑动时,触发了SwipeRefreshLayout的刷新事件,造成了冲突。 根据多年经验,首先想到的是判断item目前是否在第一位置.代码如下: rvFeed.setOnScrollListe原创 2016-04-13 11:19:11 · 2019 阅读 · 0 评论