- 博客(14)
- 资源 (34)
- 收藏
- 关注
原创 Android Studio上编译JNI程序
1. 添加native接口在需要使用Jni的类中添加native接口。public class JniActivity extends Activity { private TextView tvJniTest = null; static{ System.loadLibrary("JniTest"); } public native String get
2015-12-19 00:05:24
2842
原创 Android:手机做服务器控制多个手机客户端同时播放音乐(含源码)
朋友要求婚,请我帮忙做个小软件,希望他能控制周边朋友的手机,同时播放求婚用的歌曲。想法挺好的,奈何时间紧急,花了几个小时,帮他实现了一个粗糙的版本,可以控制连接上的手机同时播放、暂停、停止放歌。
2014-11-06 15:23:51
4969
2
原创 Android AlertDialog 动态更新弹出框中的内容
Android 的AlertDialog中的Message一旦设置,在Dialog弹出后,显示过程中,不能改变其中的Msg值,其中如果你使用mAlertDialog.setMessage(“New Value”);它不会生效。
2014-09-26 18:30:00
26147
2
原创 LRU Cache --- LeetCode 面试题
题目原文: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) o
2014-05-28 11:39:01
1220
原创 Max Points on a Line --- LeetCode 面试题
题目原文:Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
2014-05-28 10:04:30
1006
原创 Two Sum --- LeetCode 面试题
题目原文:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the ta
2014-05-27 17:33:39
860
原创 C++ 模板(template)
C++中提供了模板(template)机制,方便程序员对代码进行复用。例如C++中,你定义一个函数printArray,传入一个数组,然后将数组中的元素输出。虽然你可以用函数重载,但是每一种情况你都要编写一个函数,造成代码的冗余;模板机制只需要你编写一个函数,就可以实现对所有基本类型的数组元素进行输出,使得程序更为精简、美观。模板包括函数模板和类模板:函数模板使程序员能够用单段代码指定相关
2013-11-28 15:09:33
940
转载 win7、ubuntu双系统,重装win7后,修复ubuntu启动项
在win7和ubuntu双系统下,ubuntu使用光盘安装,当重装win7后,会覆盖ubuntu的grub启动项,这时可以通过ubuntu光盘来修复grub启动项,重新进入前面的ubuntu系统,操作如下(均为我自己的系统信息:版本为ubuntu11.04):1、用ubuntu11.04光盘启动后,进入“试用ubuntu”。 2、打开终端,首先创建root用户,输入命令sudo p
2013-05-10 23:59:32
1034
原创 android通过org.apache.tools.zip解压zip压缩文件,支持中文名
由于java自带的解压缩包不能在压缩文件中存在中文名,使用apache的开发包可以支持中文。 首先需要下载org.apache.tools.zip的jar包【下载地址在此】,将此jar包复制到工程的libs目录下,在代码头部需要导入下面的包:import org.apache.tools.zip.ZipEntry;import org.apache.tools.zip.ZipF
2013-03-07 12:39:46
3665
原创 android4.0 中设置网络出错com.android.settings.WirelessSettings没有在AndroidManifest.xml中声明
我的程序在启动的时候需要检测是否有网络,没有网络时打开网络设置界面,代码如下: Intent intentToNetwork = new Intent("/"); ComponentName componentName = new ComponentName( "com.android.settings", "com.android.settings.WirelessSett
2013-02-23 10:58:43
4248
转载 Matlab使用Java的数据结构类型
转自:http://zhiqiang.org/blog/it/use-java-object-in-matlab.html Matlab 2008b才开始引入containers.Map,这是Matlab唯一的数据结构(这里的数据结构是指自带一定逻辑性的数据结构,不包括普通数据类型)。如果要有其它,比如Queue、Set等数据结构,只能自己编写一个。File Exchange
2013-01-06 20:06:09
1291
转载 手机开发各类服务对应的UUID
转:http://blog.youkuaiyun.com/super005/article/details/6435189 ServiceDiscoveryServerServiceClassID_UUID: TGUID = '{00001000-0000-1000-8000-00805F9B34FB}'; BrowseGroupDescriptorServiceClass
2013-01-04 16:42:48
882
原创 Android 蓝牙 java.io.IOException: Connection refused 异常
做的一个Android程序,需要调用手机上的BlueTooth与一个蓝牙模块连接,以接受北斗模块的数据并解析。 本来在一个开发手机HTC Desire HD A9191(Android 2.3.5)上可以连接成功,并且可以接收到数据,软件没有问题,但是在自己的手机Lenovo S899t(Android 4.0.3)上却一直连接不成功,查看Error 报错提示如下:
2013-01-04 16:16:19
3354
Sublime Text Dev Build 3156 Serial Key(注册码)
2017-12-10
Mastering Machine Learning With scikit-learn(中文版-带书签)
2016-11-23
(android)服务器控制多个客户端播放音乐+源码
2014-11-06
Three.js 入门指南(带书签)
2014-04-21
codelite-5.3-mingw4.7.1.exe.7z
2013-11-05
C++ for Programmers - Code
2013-11-05
30天自制操作系统
2013-10-09
小米清除密码工具
2013-09-30
Android apk反编译
2013-02-23
Canon Digital EOS SDK (ED-SDK v2.10).rar
2012-12-13
vclskin2.zip
2012-12-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人