自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

燃烧那滴泪的专栏

学习是一种态度

  • 博客(537)
  • 资源 (38)
  • 收藏
  • 关注

原创 com.thoughtworks.xstream.converters.ConversionException:

08-15 10:22:35.935: E/XMLParseHelper(18082): com.thoughtworks.xstream.converters.ConversionException: Cannot construct xxxxx as it does not have a no-args constructor : Cannot construct com.xz.jyapp.m

2016-08-16 09:06:17 9766

原创 XStream Mode

XStream支持对象序列化和反序列化,对象引用,包括循环引用。XStream可以表示引用XML使用相对/绝对XPath或id。模式可以改变使用setMode():xstream.setMode(XStream.XPATH_RELATIVE_REFERENCES);(默认)使用XPath相对引用表示重复引用。这产生XML最少的杂乱。xstream.s

2016-08-14 15:21:45 1627 1

原创 android -android Multiple dex files define Lorg/xmlpull/v1/XmlPullParser

今天遇到个奇葩问题。jar冲突。真是气死了 。找了好久是因为xpp3_min-1.1.4c.jar与ksoap2-android-assembly-2.4-jar-with-dependencies.jar冲突,找了还就才找到。我估计也有人遇到。。在这里只需要把xpp3_min-1.1.4c.jar删除就可以了。如果单独解析xml还是需要这个文件的。

2016-08-14 14:37:24 1594

转载 XStream解析复杂XML(一)

http://my.oschina.net/kalo/blog/540852在项目中遇到一个需求,需要解析接口中获取的xml文件,该xml文件如下:xml version='1.0' encoding='UTF-8' ?>PDMDataFile forceSend = "N" containerName = "Test_PRC1">    Part PartID = "VCI_20

2016-08-14 12:10:59 4438

原创 Notification中setLatestEventInfo(),Builder.getNotification()过时

关于setLatestEventInfo(),Builder.getNotification()过时,Android developer提供的原文解决方案:Notification(int icon, CharSequence tickerText, long when)This constructor was deprecated in API level 11. Use Notif

2016-08-09 10:01:30 1562

转载 关于notification.setLatestEventInfo()的替代方法

自从notification.setLatestEventInfo()不再让用之后,百度后发现了新的解决办法,直接贴代码NotificationManager manager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);//新建一个Notification管理器;//API 

2016-08-09 09:37:29 4482 2

转载 【Android开源项目分析】android轻量级开源缓存框架——ASimpleCache(ACache)源码分析

转载请注明出处:http://blog.csdn.net/zhoubin1992/article/details/46379055ASimpleCache框架源码链接https://github.com/yangfuhai/ASimpleCache 杨神作品,大家最熟悉他的应该是afinal框架吧官方介绍ASimpleCache 是一个为Android制

2016-08-08 15:29:24 541

原创 android 布局别名的应用

大部分使用别名都会用在布局上,现在写一个示例【简单易懂】,视屏不同屏幕的布局文件,是做适配的一种重要方法。1.新建2个布局、一个是小屏幕的【5寸一下】b.xml,一个是大屏幕的【5寸以上】a.xmla.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layo

2016-08-08 09:20:15 1395

转载 Android实现全屏显示的方法

我们都知道在Android中某些功能的实现往往有两种方法:一种是在xml文件中设置相应属性,另一种是用代码实现。同样Android实现全屏显示也可以通过这两种方法实现:1、在AndroidManifest.xml的配置文件里面的标签添加属性:android:theme="@android:style/Theme.NoTitleBar.Fullscreen"2、在Activi

2016-08-05 14:15:12 767

翻译 android-NotificationManager

NotificationManagerpublic class NotificationManager extends Object java.lang.Object   ↳android.app.NotificationManagerClass to notify the user of events that

2016-07-25 22:24:07 4362

翻译 android-Notification.Style

Notification.Stylepublic static abstract class Notification.Style extends Object java.lang.Object   ↳android.app.Notification.StyleKnown Direct Subclass

2016-07-25 22:23:19 1267

翻译 android-Notification.InboxStyle

Notification.InboxStylepublic static class Notification.InboxStyle extends Notification.Style java.lang.Object   ↳android.app.Notification.Style    ↳android.a

2016-07-25 22:22:24 1444

翻译 android-Notification.Builder

Notification.Builderpublic static class Notification.Builder extends Object java.lang.Object   ↳android.app.Notification.BuilderBuilder class for Notification obj

2016-07-25 22:21:37 5114

翻译 android-Notification.BigTextStyle

Notification.BigTextStylepublic static class Notification.BigTextStyle extends Notification.Style java.lang.Object   ↳android.app.Notification.Style    ↳andro

2016-07-25 22:18:54 3380

翻译 android-Notification.BigPictureStyle

Notification.BigPictureStylepublic static class Notification.BigPictureStyle extends Notification.Style java.lang.Object   ↳android.app.Notification.Style    ↳

2016-07-25 22:17:32 2187

翻译 android-Notification.Action

Notification.Actionpublic static class Notification.Action extends Object implements Parcelablejava.lang.Object   ↳android.app.Notification.ActionStructure to

2016-07-25 22:14:03 2464

翻译 android-Notification

Notificationpublic class Notification extends Object implements Parcelablejava.lang.Object   ↳android.app.NotificationA class that represents how a persistent

2016-07-25 22:10:40 2248

翻译 android-Parcelable

Parcelablepublic interface Parcelable android.os.ParcelableKnown Indirect SubclassesAbsSavedState, AbsoluteSizeSpan, AccessibilityEvent, AccessibilityNodeInfo, 

2016-07-25 22:04:26 705

转载 Android中Parcelable接口用法

1. Parcelable接口Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must also have a static field called CREATOR, which i

2016-07-25 21:38:36 390

原创 海康威视API-单帧数据捕获并保存成JPEG图片NET_DVR_CaptureJPEGPicture

函 数: BOOL NET_DVR_CaptureJPEGPicture(LONG lUserID, LONG lChannel, LPNET_DVR_JPEGPARAlpJpegPara, char *sPicFileName)参 数: [in]lUserID NET_DVR_Login_V30的返回值[in]lChannel 通道号[in]lpJpegPara JPEG图像参数[in

2016-07-25 10:47:46 21838 4

原创 android -广播是内部类注册注意事项

我在注册一个网络监听时报了这个错:07-22 09:30:06.411: E/AndroidRuntime(25736): FATAL EXCEPTION: main07-22 09:30:06.411: E/AndroidRuntime(25736): Process: xxxxxxxx, PID: 2573607-22 09:30:06.411: E/AndroidRuntime(25

2016-07-22 09:45:36 2280

转载 遍历Map的四种方法

public static void main(String[] args) { Map map = new HashMap(); map.put("1", "value1"); map.put("2", "value2"); map.put("3", "value3"); //第一种:普遍使用,二次取值 System.out.println("通过Map.key

2016-07-21 17:24:08 444

翻译 android-CountDownTimer

CountDownTimerpublic abstract class CountDownTimer extends Object java.lang.Object   ↳android.os.CountDownTimerSchedule a countdown until a time in the future, wi

2016-07-20 17:55:55 930

原创 androidone -小插件倒计时

接口类:/* ShengDao Android Client, DownTimerListener Copyright (c) 2014 ShengDao Tech Company Limited */package com.sd.one.widget.downtime;/** * [倒计时监听类] * * @author devin.hu * @versio

2016-07-20 17:06:29 612

翻译 android-BluetoothServerSocket

BluetoothServerSocketpublic final class BluetoothServerSocket extends Object implements Closeablejava.lang.Object   ↳android.bluetooth.BluetoothServerSocketA

2016-07-19 13:45:29 2190

翻译 android-BluetoothSocket

BluetoothSocketpublic final class BluetoothSocket extends Object implements Closeablejava.lang.Object   ↳android.bluetooth.BluetoothSocketA connected or conne

2016-07-19 13:40:13 3906

翻译 android-BluetoothManager

BluetoothManagerpublic final class BluetoothManager extends Object java.lang.Object   ↳android.bluetooth.BluetoothManagerHigh level manager used to obtain an

2016-07-19 11:33:51 6491

翻译 android-BluetoothDevice

BluetoothDevicepublic final class BluetoothDevice extends Object implements Parcelablejava.lang.Object   ↳android.bluetooth.BluetoothDeviceRepresents a remote

2016-07-19 11:10:00 7927

翻译 android-UUID

UUIDpublic final class UUID extends Object implements Serializable, ComparableUUID>java.lang.Object   ↳java.util.UUIDA class that represents an immutable univ

2016-07-19 10:34:48 2495

翻译 android-createRfcommSocketToServiceRecord

createRfcommSocketToServiceRecordAdded in API level 5BluetoothSocket createRfcommSocketToServiceRecord (UUID uuid)Create an RFCOMM BluetoothSocket ready to start a secure outgoing connection

2016-07-19 10:31:07 8249

转载 控件EditText的setOnEditorActionListener方法的理解

需要注意的是 setOnEditorActionListener这个方法,并不是在我们点击EditText的时候触发,也不是在我们对EditText进行编辑时触发,而是在我们编辑完之后点击软键盘上的回车键才会触发。当我们定义一个可编辑控件EditText时EditText ET_phone = (EditText) findViewById(R.id.ET_ph

2016-07-19 09:09:48 1088

转载 详细解析BluetoothAdapter的详细api

一 BluetoothAdapter简介1.继承关系该类仅继承了Object类;2.该类作用BluetoothAdapter代表了移动设备的本地的蓝牙适配器, 通过该蓝牙适配器可以对蓝牙进行基本操作, 例如 : 启动设备发现(startDiscovery), 获取已配对设备(getBoundedDevices), 通过mac蓝牙地

2016-07-18 18:00:02 2414

转载 Android 应用程序窗体显示状态操作(requestWindowFeature()的应用)

我们在开发程序是经常会需要软件全屏显示、自定义标题(使用按钮等控件)和其他的需求,今天这一讲就是如何控制Android应用程序的窗体显示.  首先介绍一个重要方法那就是requestWindowFeature(featrueId),它的功能是启用窗体的扩展特性。参数是Window类中定义的常量。一、枚举常量1.DEFAULT_FEATURES:系统默认状态,一般不需要指定

2016-07-18 17:15:05 354

原创 android蓝牙-isMultipleAdvertisementSupported(API21)判断支持不支持BLE Peripheral

isMultipleAdvertisementSupportedAdded in API level 21boolean isMultipleAdvertisementSupported ()Return true if the multi advertisement is supported by the chipsetReturns

2016-07-18 12:08:41 4235

翻译 android-BluetoothAdapter

BluetoothAdapterpublic final class BluetoothAdapter extends Object java.lang.Object   ↳android.bluetooth.BluetoothAdapterRepresents the local device Bluetooth ada

2016-07-17 23:08:54 3714

翻译 android-BluetoothA2dp

BluetoothA2dppublic final class BluetoothA2dp extends Object implements BluetoothProfilejava.lang.Object   ↳android.bluetooth.BluetoothA2dpThis class provides the

2016-07-17 23:07:20 3702

翻译 android-BluetoothProfile.ServiceListener

BluetoothProfile.ServiceListenerpublic static interface BluetoothProfile.ServiceListener android.bluetooth.BluetoothProfile.ServiceListenerAn interface for notifying Blue

2016-07-17 23:06:21 2787 1

翻译 android-BluetoothProfile

BluetoothProfilepublic interface BluetoothProfile android.bluetooth.BluetoothProfileKnown Indirect SubclassesBluetoothA2dp, BluetoothGatt, BluetoothGattServer, 

2016-07-17 23:05:05 2716 1

翻译 android-startLeScan

startLeScanAdded in API level 18boolean startLeScan (UUID[] serviceUuids, BluetoothAdapter.LeScanCallback callback)This method was deprecated in API level 21.use , andro

2016-07-17 12:59:43 4746

翻译 android-BluetoothAdapter.LeScanCallback

BluetoothAdapter.LeScanCallbackpublic static interface BluetoothAdapter.LeScanCallback android.bluetooth.BluetoothAdapter.LeScanCallbackCallback interface used to deliver

2016-07-17 12:52:43 5411

netty-all-5.0.0 包含Alpha1 Alpha2

Android netty-all

2022-06-10

netty-all-4.1.39.Final.jar

android netty

2022-06-10

OpenGL 中英文+代码.zip

里面也是其他网站下载的 我只是分享一下...

2021-12-01

鸿蒙初学集,适合初学者

鸿蒙初学集 https://developer.harmonyos.com/cn

2021-06-17

Android音视频开发学习思路.pdf

Android音视频开发学习思路

2020-12-26

android studio初始化报错

解决引入报错 OpenCV error: Cannot load info library for OpenCV

2019-02-21

NDK配置及安装、生成.实例应用

NDK配置及安装、生成.实例应用,里面参考博文实现。遇到很多坑,里面是完整的代码...有疑问的可以多评论

2017-09-28

jdom2-2.0.6

android7.0解析报错 (2-2.0.5) http://www.jdom.org/downloads/index.html 官网

2017-08-28

gpuimage-sample-1.1.1.jar

gpuimage-sample-1.1.1.jar

2016-12-23

gradle-2.2-all.zip

gradle-2.2-all.zip

2016-12-16

log4j_all.rar

包含日志框架里面的全部jar

2016-11-23

广告轮播eclipse+AS ConvenientBanner

根据https://github.com/saiwu-bigkoo/Android-ConvenientBanner 开源 修改... 提取代码到eclipse。。赚点辛苦分。。。有什么问题请参照GItHub上面的代码...

2016-11-23

ksoap2-android-assembly-2.6.5-jar-with-dependencies.ja

解决这个异常:java.io.EOFException

2016-11-04

过滤功能的下拉菜单[类似美团,58同城]

过滤功能的下拉菜单[类似美团,58同城] 里面包含eclipse和AS的代码,亲测。。可用。

2016-08-11

android 布局别名的应用

android 布局别名的应用

2016-08-08

海康威视网络HCNetSDKV5.2.1.3_最新

里面包含所有的示例程序和文档

2016-07-25

hprof-conv.rar

DDMS files not found:hprof-conv.exe的解决办法 ,先找一下在sdk\tools目录下是否有hprof-conv.exe,如果有将tools下面的所有文件都复制到platform-tools即可。如果没有就下载一个新的安卓SDK,用同样的方法就可以了。

2016-07-13

View.java原码

View.java原码

2016-06-30

ZipUtils.rar

android 解压和压缩

2016-06-23

AutoInstallationAPPAccessibilityServices

静默安装APP,里面包含三种方法。

2016-06-23

BuildingAccessibilityServices

里面是已谷歌ClockBackService 项目为基础写的一个demo,里面有详细注释

2016-06-22

BoolAttribute

里面包含了xml的一些属性详解

2016-06-21

android-22

android-22

2016-04-10

android-20

android-20

2016-04-10

android-23

android-23

2016-04-10

android-19

android-19

2016-04-10

android-17

android-17

2016-04-10

最新OKhttp-3.1.2.jar

最新OKhttp-3.1.2.jar 官网:http://square.github.io/okhttp/#download

2016-02-24

最新 universal-image-loader

最新 universal-image-loader

2016-02-22

Java SQLite JDBC驱动

connection = DriverManager.getConnection("jdbc:sqlite:D:/people.db"); Statement statement = connection.createStatement(); statement.setQueryTimeout(30); // set timeout to 30 sec.ResultSet rs = statement.executeQuery("select * from peoples"); while (rs.next()) { // read the result set System.out.println("name = " + rs.getString("name")); System.out.println("id = " + rs.getInt("id")); }

2016-01-28

android 使用 SoundPool 播放音效

使用 SoundPool 播放音效,SoundPool 还支持自行设置声音的品质、音量、 播放比率等参数

2016-01-28

Android Studio failed to find build tools revision 19.1.0

Android Studio failed to find build tools revision 19.1.0 问题

2015-12-03

自定义带分隔符输入框CustomEditText

自定义带分隔符输入框CustomEditText

2015-12-03

android 自定义多选dialog+圆角弹窗

android 自定义多选dialog+圆角弹窗 无错乱现象

2015-12-02

数字进度条NumberProgressBa

超炫酷的效果,直接拿来用,demo很完整....来自github,但是那上面的不好使,自己拿来动了一点点

2015-11-26

android AIDL简单例子

http://blog.csdn.net/zhou452840622/article/details/49010181 我转载的然后测试了一哈... 版权归原版主,我只是借鉴和补充

2015-10-09

ProgressWait

里面有2种方式实现这种效果,一个是用帧动画,另一个是使用线程来实现,个人感觉帧动画直观明了

2015-07-14

listview刷新

listview刷新

2014-05-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除