最近想弄个能访问 Internet 的 Android 应用,因为求快所以用了 Ruby on
Rails 来提供 HTTP 资源。这方面的资料还是比较少的,所以把尝试的过程记录下来。1 使用 Ruby on Rails构建 Web
Application1.1 新建 Web Application...
分类:
移动开发 时间:
2014-06-19 13:09:55
阅读次数:
427
Activity类:import java.util.List;import
android.app.Activity;import android.app.PendingIntent;import
android.content.Intent;import android.os.Bundle;im...
分类:
移动开发 时间:
2014-06-12 18:19:50
阅读次数:
307
在OSGi环境中,在Bundle内部代码中要得到自己Bundle的ClassLoader就很简单,在自己Bundle的代码中,直接写this.getClass().getClassLoader()就得到了自己Bundle的ClassLoader了。但怎么在其他Bundle或外部代码中得到任意一个Bu...
分类:
其他好文 时间:
2014-06-12 17:45:48
阅读次数:
176
OS X的执行程序一般分为两种。一种是控制台程序,一种是带有GUI的OS
X应用程序。控制台程序往往就一个文件构成executable,而GUI应用通常是一个包(即文件夹),里面除了executable之外还有其它资源。对于一个GUI程序来说,我们可以通过读取Bundle来获得资源文件。那么对于控制...
分类:
其他好文 时间:
2014-06-12 14:11:47
阅读次数:
252
Execute shell commandsThere are a number of
different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces
the current process and r...
分类:
其他好文 时间:
2014-06-12 06:50:15
阅读次数:
281