摘要: 1.引用地址 //微信支付 compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+' 2.注册 private IWXAPI api; api = WXAPIFactory.createWXAPI(this, appid); 3.  阅读全文
posted @ 2017-10-03 22:57 宇悟行 阅读(328) 评论(0) 推荐(0)
摘要: /** * 工厂模式的测试 * <p> * 工厂方法模式 * 工厂方法模式是简单工厂模式的进一步抽象化和推广,工厂方法模式里不再只由一个工厂类决定那一个产品类应当被实例化,这个决定被交给抽象工厂的子类去做。 * 来看下它的组成: * 1)抽象工厂角色: 这是工厂方法模式的核心,它与应用程序无关。是具 阅读全文
posted @ 2017-07-12 15:23 宇悟行 阅读(259) 评论(0) 推荐(0)
摘要: 源码地址:https://github.com/yylxy/JavaAnnotationTest.git java Annotation 注解的使用 ,代码中有详细的注释。是用AndroidStudio写的 /** * 说明:注解创建类 * 作者: 杨阳; 创建于: 2017-06-02 16:10 阅读全文
posted @ 2017-07-12 11:38 宇悟行 阅读(303) 评论(0) 推荐(0)
摘要: android 连接蓝牙打印机 BluetoothAdapter 源码下载地址:https://github.com/yylxy/BluetoothText.git public class PrintActivity extends AppCompatActivity { //设备列表 priva 阅读全文
posted @ 2017-07-12 11:19 宇悟行 阅读(11990) 评论(3) 推荐(2)
摘要: 各种drawable 小的例子, 开源中国地址:https://git.oschina.net/lyxs916/drawable-test.git bitmap bitmap xmlns:android="http://schemas.android.com/apk/res/android" and 阅读全文
posted @ 2017-03-12 19:18 宇悟行 阅读(964) 评论(0) 推荐(0)