07 2016 档案
摘要:1.简介依赖注入和控制反转,目的是为了使类与类之间解耦合,提高系统的可扩展性和可维护性,下面通过一个例子来引入这一概念。 2.案例1)一般情况下的类耦合Main.javapublic class Main { public static void main(String[] args) { /***
阅读全文
摘要:bug描述: 经常在网络上下载一些实例,自己研究 ,运行时不时会出现这个bug: Installation error: INSTALL_FAILED_NO_MATCHING_ABIS bug解决方案: 这个问题的出现说明你的项目中使用了与当前CPU架构不一致的native libraries
阅读全文
摘要:bug描述: 经常在网络上下载一些实例,自己研究 ,运行时不时会出现这个bug: Installation error: INSTALL_FAILED_NO_MATCHING_ABIS bug解决方案: 这个问题的出现说明你的项目中使用了与当前CPU架构不一致的native libraries
阅读全文
摘要:转 :http://redstarofsleep.iteye.com/blog/2123752 Nginx本身是一个非常出色的HTTP服务器,FFMPEG是非常好的音视频解决方案.这两个东西通过一个nginx的模块nginx-rtmp-module,组合在一起即可以搭建一个功能相对比较完善的流媒体服
阅读全文
摘要:ffmpeg使用语法ffmpeg [[options][`-i' input_file]]... {[options] output_file}... 如果没有输入文件,那么视音频捕捉(只在Linux下有效,因为Linux下把音视频设备当作文件句柄来处理)就会起作用。作为通用的规则,选项一 般用于下
阅读全文
摘要:首先要安装各种解码器 1、lame lame-3.99.5.tar.gz Url:http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309 安装方法如下: 1 tar -zxvf lame-3.99.5.tar.
阅读全文
摘要:主要参考:1、http://www.ozbotz.org/opencv-installation/2、http://www.ozbotz.org/opencv-install-troubleshooting/开发环境:VMware下Ubuntu+OpenCV2.4.7安装过程:The Install
阅读全文
摘要:bug描述:Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher seekbar_thumb_normal.png failed, see logs 解决方法: 1.在build.gradle
阅读全文
摘要:应用场景:用于安卓的短信发送功能 异常名称:Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND } 源码如下
阅读全文
摘要:链接:http://www.zhihu.com/question/19788650/answer/60771437来源:知乎Google 官方[Android Developers Blog](Android Developers Blog) [Android Official Blog](Offi
阅读全文
摘要:Manifest.permission 官方API说明: http://developer.android.com/reference/android/Manifest.permission.html http://developer.android.com/guide/topics/manifes
阅读全文
摘要:在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、Tex
阅读全文
摘要:Toast在手机屏幕上向用户显示一条信息,一段时间后信息会自动消失。 1.默认用法 [html] view plain copy print?Toast.makeText(getApplicationContext(), "默认Toast样式",Toast.LENGTH_SHORT).show();
阅读全文
摘要:APKtool 用途:获取mainifest.xml res等资源文件 下载:http://ibotpeaches.github.io/Apktool/install/ 使用:apktool d test.apk dex2jar 用途:获取项目源码的jar包 下载:https://github.co
阅读全文
摘要:nohup 用途:LINUX命令用法,不挂断地运行命令。 语法:nohup Command [ Arg ... ] [ & ] 描述:nohup 命令运行由 Command 参数和任何相关的 Arg 参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要
阅读全文
摘要:在运行自己修改默认的MainActivety,运行自己的Mainactivety时,碰到这个问题Could not identify launch activity: Default Activity not found这个错误可能出现在run之后的Run的信息框中: 或者 在这里可以看到关于运行的
阅读全文