- 博客(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
广告轮播eclipse+AS ConvenientBanner
2016-11-23
hprof-conv.rar
2016-07-13
Java SQLite JDBC驱动
2016-01-28
Android Studio failed to find build tools revision 19.1.0
2015-12-03
android AIDL简单例子
2015-10-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人