自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(376)
  • 资源 (8)
  • 收藏
  • 关注

转载 Support NDK in Android studio.

http://ph0b.com/new-android-studio-ndk-support/

2016-07-29 05:07:19 671

转载 Android点击通知栏信息后返回正在运行的程序,而不是一个新Activity

From http://blog.sina.com.cn/s/blog_80a855370101hqr5.html很多网上关于 通知栏的例子都是打开一个新的Activity,代码也很多。根据那些代码如下    public void shownotification(String tab)    {        NotificationManager barman

2016-07-16 04:48:40 2475 2

原创 改善侧滑菜单Fragment切换速度(解决Fragment切换加载慢的问题)

1.现状:在做项目的时候很多时候需要使用侧滑菜单。侧滑菜单项一般都是用Fragment。一般设计上是在Home page的layout中使用FrameLayout 作为一个container 如:content_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

2016-06-19 12:32:51 3902 1

转载 Android tablayout and toolbar

Adroid tablayout and toolbarhttp://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/Toolbar back button.You can add your own 'up' button in toolbar, after all it is j

2016-06-13 05:29:33 1238

原创 Unsupported major.minor version 52.0

编译Andorid 工程的时候,有时候出现gradle 报下面的错误。Error:(1, 0) Cause: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0这个错误的原因是在 工程的build.gradle文件中的gradle 工具配置使用了gradle:+将它classpath

2016-05-20 23:38:38 20785 3

转载 Understand Android Activity's launchMode: standard, singleTop, singleTask and singleInstance

Activity is one of the most brilliant concept on Android from its well-design architecture on memory management which lets Multitasking works perfectly on this most popular mobile operating system.

2016-05-14 11:21:41 659

转载 Best Practice: SharedPreferences

From http://stackoverflow.com/questions/8855069/android-sharedpreferences-best-practicesAndroid provides many ways of storing application data. One of those ways leads us to theSharedPreferenc

2016-05-14 03:03:22 490

转载 Android 5.0 notification icon is blank square

In Android 5.0, the small notification icon must be the size below. Otherwise the icon will be displayed as a blank square.18px(ldpi)24px(mdpi)36px(hdpi)48px(xhdpi)72px(xxhdpi) 96px(xxxhdpi)

2016-05-11 11:39:03 566

转载 SQLiteOpenHelper 中什么时候调用 onCreate() , 什么时候调用 onUpgrade() ?

http://stackoverflow.com/questions/21881992/when-is-sqliteopenhelper-oncreate-onupgrade-run

2016-04-30 10:29:10 2320

翻译 Android中怎样使用计步器传感器 "TYPE_STEP_DETECTOR"

在Android 4.4以后的版本已经可以直接支持计步器sensor,参考下面的文章。http://developer.android.com/about/versions/android-4.4.html#UserInputhttp://motzcod.es/post/82515321689/part-1-my-stepcounter-android-step-sensors

2016-04-27 04:19:02 9955 5

原创 jGraphX 绘图总结,增加大量节点和边的效率问题。

参考jGraphx手册:http://jgraph.github.io/mxgraph/docs/manual_javavis.html#1.6.1JGraphX的核心是JGraphX Model几乎所有的修改动作,都需要调用model的方法:下面是核心方法:mxGraphModel.beginUpdate() - starts a new transact

2016-04-21 00:19:33 4310 3

转载 Android: 使用JitPack发布你的Github开源库

From http://www.open-open.com/lib/view/open1453255452526.html一般来说,想在Android Studio使用Gradle依赖,有几种方法:jCenterMaven Central使用其他自定义的仓库使用jCenter和MavenCentral的一般流程是,注册、登陆、配置参数、Bui

2016-04-15 03:14:32 687

翻译 在github上发布自己的compile 依赖库

1. 首先在github上创建自己的代码库,例如: https://github.com/yuxiaohui78/SimpleBarcodeScan2.在库内的build.gradle 中增加 android maven plugin。 yourlibrary/build.gradle:buildscript {   repositories { jcenter() }

2016-04-15 03:06:45 5072

转载 Android 正确的闪屏方式。

From https://www.bignerdranch.com/blog/splash-screens-the-right-way/The very idea of the splash screen makes me a little angry. Just saying the phrase makes me cringe.Splash screens just

2016-04-01 04:12:53 1743

转载 Swing界面布局之代码手写二, 山寨Netbean layout实现

From:   http://www.iteye.com/topic/868882上篇文章写了简单的layout后, 这次来个复杂的, 在找素材时, 左看右看没有合眼的, 最后, 直接把眼光放在正在coding的Netbean上 先旨声明, 这个demo, 只注重layout的架构布局的学习研究, 界面细微之处, 跟真正的netbean, 相差那是相当远的 目前的最终效果图

2016-02-04 06:31:22 1314

转载 Broadcast内部机制讲解

From http://my.oschina.net/youranhongcha/blog/226274#OSC_h2_31 概述        我们在编写Android程序时,常常会用到广播(Broadcast)机制。从易用性的角度来说,使用广播是非常简单的。不过,这个不是本文关心的重点,我们希望探索得再深入一点儿。我想,许多人也不想仅仅停留在使用广播的阶段,而是希望了解一些广播

2016-01-27 23:59:32 3383

转载 Passing Objects Between Android Activities

转自: http://www.stevenmarkford.com/passing-objects-between-android-activities/IntroductionIt is sometimes convenient to pass through a java object (POJO) from one activity to another as

2016-01-22 03:44:53 615

转载 资深谷歌安卓工程师对安卓应用开发的建议

转自: https://realm.io/cn/news/romain-guy-chet-haase-developing-for-android/?utm_source=tuicool&utm_medium=referralAbout the Speaker: Romain GuyRomain是谷歌的安卓工程师。在加入Robotics之前,他在安卓Framwork组参

2016-01-21 06:34:44 1783

转载 App工程结构搭建:几种常见Android代码架构分析

转自 http://mobile.51cto.com/abased-386212.htm关于Android架构,因为手机的限制,目前我觉得也确实没什么大谈特谈的,但是从开发的角度,看到整齐的代码,优美的分层总是一种舒服的享受的。从艺术的角度看,其实我们是在追求一种美。本文先分析几个当今比较流行的android软件包,最后我们汲取其中觉得优秀的部分,搭建我

2016-01-19 11:29:06 3286

转载 从零开始搭建架构实施Android项目

转自: http://www.cnblogs.com/lao-liang/p/5122425.html  我们先假设一个场景需求:刚有孩子的爸爸妈妈对用照片、视频记录宝宝成长有强烈的意愿,但苦于目前没有一款专门的手机APP做这件事。A公司洞察到市场需求,要求开发团队尽快完成Android客户端的开发。以下模拟团队和工作开展。团队情况:产品经理1人,Android

2016-01-18 13:05:52 990

原创 使用Volley实现Https请求, Volley SSL 双向自认证证书请求。

From http://code.tutsplus.com/tutorials/an-introduction-to-volley--cms-23800Volley is a networking library developed by Google and introduced during Google I/O 2013. It was developed because

2015-12-29 03:17:56 5522

原创 No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse

E:\myWorks\XXX_project\Android\XXX\app\build\intermediates\res\merged\debug\values-v23\values-v23.xmlError:(3) Error retrieving parent for item: No resource found that matches the given name 'android

2015-12-29 01:26:14 4311 3

转载 How to create a library for Android Application

From http://www.vogella.com/tutorials/AndroidLibraryProjects/article.htmlTable of Contents1. Android library projects and Java libraries2. Using JAR files in Android2.1. How to use

2015-12-25 01:24:36 1524

转载 Android Shell command to send broadcast.

有时候调试程序的时候,需要测试广播接收部分的代码。如测试BOOT_COMPLETED 完成时候的接收函数。可以使用下面的命令。adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n com.mypackage/.boot.OnBootReceiver

2015-12-24 05:41:53 724

转载 Chrome 插件,Andriod 手机和电脑同步显示。

From http://inthecheesefactory.com/blog/mirror-android-phone-screen-gain-full-control-with-vysor/enLooking for a tool that could mirror non-rooted android phone's screen and allow user to gain a

2015-12-23 03:26:01 6491

转载 Introduction to Glide, Image Loader Library for Android, recommended by Google

From http://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/enIn the passed Google Developer Summit Thailand, Google introduced us an Image Loader Library for Android developed

2015-12-23 01:43:57 667

转载 Android 添加Calendar 事件。问题

1.Google 官方文档例子http://developer.android.com/guide/topics/providers/calendar-provider.htmlGoogle的demo程序添加calendar event在我的Nexus 5上无法成功。Android 版本5.1和6.0下现象一样。会报下面的错误。Failed to get type for: con

2015-12-03 01:30:50 2341

转载 JavaServer Face Study

http://exadel.com/tutorial/jsf/jsftags-guide.html

2015-11-13 00:26:12 680

转载 java中接口interface用法小结

From http://blog.sina.com.cn/s/blog_48c0812c0101alaz.html相对abstract class(抽象类)来讲,interface则造出了“完全抽象的class”,丝毫不带半点实现的内容。且interface中的所有methods都是空的,当然,编译器也强迫你这样做。在接口使用时需注意以下几点: 1.接口一般定义的是常量和一些抽象方

2015-11-07 05:38:14 2155

原创 Android Studio, Change the package name of App

1.  AndroidManifest.xml     Change the package name in AndroidManifest.xml .2.  build.grade    Change the package name in build.grade3.  left click the package of the project. "Refactor" -> "R

2015-11-07 03:00:43 555

原创 Jsoup 抓取网页信息(2) 需要Login的网页信息抓取

有时候抓取网页信息的时候,有些网页需要先登录才能查看到真正的内容。这样用我们上一篇文章的方法是无法直接抓取数据的。Jsoup 抓取网页信息(1) 抓取 国际疾病码例如抓取网页:http://www.findacode.com/code-set.php?set=CPT 上的 CPT codes登录前,显示如下:登录后显示:我们要抓取的信息是登录后显示的内容。

2015-10-13 05:46:02 5444 2

原创 Jsoup 抓取网页信息(1) 抓取 国际疾病码

Jsoup Java 库是一款非常好用的网页数据抓取工具。 API非常简单。功能强大。官方网站为:http://jsoup.org/下面举个例子,怎样抓取网页数据。下面网页是ICD-9-CM (International Classification of Diseases, Ninth Revision, Clinical Modification)  国际疾病分类码http:/

2015-10-13 05:17:41 928

转载 Good de-compiler of jar

Try taking a look at Bytecode Viewer https://github.com/Konloch/bytecode-viewer It has the option to decompile using 5 different decompilers:FernFlower   -- very good for decompiling jar. It don't

2015-09-25 05:24:55 391

转载 Customizing Your Build With Gradle

From http://toastdroid.com/2014/03/28/customizing-your-build-with-gradle/

2015-09-23 02:01:01 610

转载 Android Image 倒影

public static Bitmap createReflectedImage(Bitmap originalImage) {          // The gap we want between the reflection and the original image           final int reflectionGap = 4;          

2015-09-08 03:26:57 390

转载 Android 通知栏Notification的整合 全面学习 (一个DEMO让你完全了解它)

From http://blog.csdn.net/vipzjyno1/article/details/25248021在android的应用层中,涉及到很多应用框架,例如:Service框架,Activity管理机制,Broadcast机制,对话框框架,标题栏框架,状态栏框架,通知机制,ActionBar框架等等。下面就来说说经常会使用到通知机制中的通知栏框架(Notificai

2015-09-05 02:43:07 1112

转载 Android 测试BOOT_COMPLETED 广播

From http://stackoverflow.com/questions/11325920/how-to-test-boot-completed-broadcast-receiver-in-emulatoradb shell am broadcast -a android.intent.action.BOOT_COMPLETED -p com.example.package

2015-09-05 00:52:12 2439

转载 Android面试题目及其答案

From http://blog.csdn.net/wwj_748/article/details/88686401、Android dvm的进程和Linux的进程, 应用程序的进程是否为同一个概念   DVM指dalivk的虚拟机。每一个Android应用程序都在它自己的进程中运行,都拥有一个独立的Dalvik虚拟机实例。而每一个DVM都是在Linux中的一个进程,所

2015-09-04 22:04:39 2670

转载 Android Canvas绘图详解

http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2012/1212/703.htmlAndroid中使用图形处理引擎,2D部分是android SDK内部自己提供,3D部分是用Open GL ES 1.0。今天我们主要要了解的是2D相关的,如果你想看3D的话那么可以跳过这篇文章。大部分2D使用的api都在android

2015-08-25 22:21:17 919

转载 App Material Design.

http://materialdesignblog.com/

2015-08-19 06:02:20 352

NavigationBar

侧滑菜单例子,切换速度慢的例子。

2016-06-19

java android apk 反编译

反编译jar or android apk文件。可以查看源代码。

2015-07-16

Android file upload with progress bar

Android 上传文件到服务器,服务器接收 code,客户端有进度条更新。

2015-01-28

AsyncTask 并行,串行操作测试

在新版本Android SDK中AsyncTask,应该注意在默认情况下AsyncTask是在一个单线程中调用队列中的Task。例如:有多个AsyncTask任务同时开始调用。但是执行的时候是串行的。 这个例子用作测试。

2015-01-23

Mac 地址厂商分配表

Mac 地址厂商分配表, 各个厂商申请的Mac地址头信息。

2013-01-31

随机产生MAC地址,符合IEEE标准。芯片公司可查询。

随机产生MAC地址,符合IEEE标准。每个mac地址都可以查询到指定的芯片公司。内部集成了1200家在IEEE申请过MAC 地址的公司。 源代码为java。

2013-01-31

YY0319-2008医用电气设备 第 2部分 医疗诊断用磁共振设备安全专用要求版.pdf

YY0319-2008医用电气设备 第 2部分 医疗诊断用磁共振设备安全专用要求版.pdf

2010-06-21

遗传算法 5个实例程序

遗传算法5个程序,函数,神经网络等!!!!

2009-09-30

空空如也

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

TA关注的人

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