jubincn

导航

2014年5月15日 #

在Android Studio 0.5.2中使用ArcGIS Android SDK

摘要: 环境操作系统:Mac OSX 10.8.5Android Studio: 0.5.2ArcGIS Android SDK: 10.2.3操作步骤在Android Studio中新建一个Module,例如:HelloArcGIS打开ArcGIS Android SDK所在文件夹,将libs目录下的所有... 阅读全文

posted @ 2014-05-15 18:32 jubincn 阅读(380) 评论(0) 推荐(0) 编辑

2014年2月17日 #

SlidingMenu Demo

摘要: 参考:http://www.krislq.com/2013/03/android_case_slidingmenu_fragment/我下载了它的例子,然后自己重写了一下,运行时总报错,原来是support package v4的配置问题。下面是两个需要注意的配置问题:1. 将library项目添加到自己的项目中:2. 使用library中的support package v4 阅读全文

posted @ 2014-02-17 16:48 jubincn 阅读(170) 评论(0) 推荐(0) 编辑

MacOS下JDK6源码配置

摘要: 参考:http://www.mkyong.com/mac/how-to-download-jdk-source-code-for-mac-os-x/系统默认的JDK是没有源码的,据说这是因为此JDK是Apple的而不是Oracle官方,从JDK7开始Oracle才提供Mac上的官方JDK。因此,我们可以下载Apple的JDK for developer,然后使用里面的src.jar。1. 从Apple Developer下载JDK访问https://developer.apple.com/downloads/index.action,使用你的Apple ID登录。下载Java for OS X 阅读全文

posted @ 2014-02-17 10:24 jubincn 阅读(735) 评论(0) 推荐(0) 编辑

2014年1月22日 #

查看Java文件对应的字节码

摘要: 1. 编译为class文件:javac 2. 使用javap查看bytecode:javap -v 阅读全文

posted @ 2014-01-22 13:17 jubincn 阅读(213) 评论(0) 推荐(0) 编辑

2014年1月21日 #

Octave中调用hist出现broken pipe some output may be lost octave的解决(Mac)

摘要: 参考:http://octave.1599824.n4.nabble.com/Mac-OS-X-Mountain-Lion-Octave-can-not-execute-sombrero-td4643502.htmlOctave版本:3.4.0Mac版本:10.8.5前提:装好了X11It works perfectly on 10.8 and the solution is pretty simple.The problem is in gnuplot.Instead of using bundledlibfreetype, it should use the one that comes 阅读全文

posted @ 2014-01-21 20:56 jubincn 阅读(505) 评论(0) 推荐(0) 编辑

2014年1月16日 #

Android 4 学习(21):对话框

摘要: 对话框创建Dialog的两种方式:1.使用Dialog类或其子类,包括DialogFragment2.在Activity中使用Dialog主题(theme)下面是使用Dialog类的一个例子:// Create the new Dialog.Dialog dialog = new Dialog(MyActivity.this); // Set the title. dialog.setTitle(“Dialog Title”); // Inflate the layout.dialog.setContentView(R.layout.dialog_view); // Update the Di 阅读全文

posted @ 2014-01-16 14:55 jubincn 阅读(274) 评论(0) 推荐(0) 编辑

Android 4 学习(20):ActionBar

摘要: 参考《ProAndroid4.0》ActionBar11.0之后,ActionBar在Activity中默认存在,可以在代码中设置其显示与否:ActionBar actionBar = getActionBar(); // Hide the Action Bar actionBar.hide(); // Show the Action Bar actionBar.show(); 也可以在Manifest中设置是否显示ActionBar: 创建一个不显示ActionBar的Theme: ActionBar的其他设置:ActionBar actionBar = getActionBar()... 阅读全文

posted @ 2014-01-16 14:45 jubincn 阅读(569) 评论(0) 推荐(0) 编辑

2014年1月15日 #

Android 4 学习(19):Services

摘要: 参考《ProfessionalAndroid4Development》ServicesService是invisible的,因此其优先级不高于visible的Activity,之所以说不高于,是因为我们可以设置Service为在前台运行。创建ServiceAndroid提供了Service抽象类,继承它便可以创建一个Service类:import android.app.Service;import android.content.Intent;import android.os.IBinder;public class MyService extends Service { @Overri. 阅读全文

posted @ 2014-01-15 20:23 jubincn 阅读(491) 评论(1) 推荐(1) 编辑

Android 4 学习(18):搜索

摘要: 参考《ProfessionalAndroid4Development》搜索通过下面这几种方式可以给应用程序添加搜索功能:SearchBarSearchViewQuickSearchBox可搜索的ContentProvider首先,要在res./xml目录下创建一个xml文件,例如: 其中,Label一般是应用程序的名称。为应用程序创建SearchActivitySearchActivity和普通的Activity不同,它是一直在backstack的栈顶,每次有新的searchactivity创建时,不会有将其简单的入栈,因为用户是不会希望按返回键时返回自己前面的查询结果。为了表明该Activ. 阅读全文

posted @ 2014-01-15 19:39 jubincn 阅读(543) 评论(0) 推荐(0) 编辑

Android 4 学习(17):使用Content Resolver

摘要: ContentResolver简介每个应用程序都有一个ContentResolver实例,通过getContentResolver()方法可以获取:ContentResolver cr = getContentResolver();与ContentProvider对应,ContentResolver用于使用ContentProvider发布的数据。使用ContentResolver查询ConentProvider提供的数据:// Get the Content Resolver.ContentResolver cr = getContentResolver();// Specify the r 阅读全文

posted @ 2014-01-15 15:41 jubincn 阅读(899) 评论(0) 推荐(0) 编辑