日本《豚鼠系列》一共六部: 1、Devil’s Experiment 恶魔实验 1985 2、Flowers Of Flesh And Blood 血肉之花 1985 3、He Never Dies 他不会死 1986 4、Mermaid In A Manhole 地窖人鱼 1988 ( 下水道的美人鱼 ) 5、Android Of Notre Dame 圣母机器人 1988 6、Devil Woman Doctor 恶魔女医生 1990 下载地址: http://www.yimuhe.com/file-3068416.html
1 Android Android 的主题思想:随时随地为每个人提供信息。 1.1 Android 与 iPhone 之间的对比 1.1 Android 四层架构体系 说明:(从上往下调用) Application 关键应用程序 Android 平台的应用程序有两个来源,一是本身包含的关键应用程序,如短信收发程序、网页浏览、日历等;二是由开发者自行开发的具有特色的应用程序。 ApplicationFramework 应用程序框架及组件(提供手机开发的基本 API ) 框架和组件是开发 Android 应用程序的基础。开发者在使用 Android 开发应用程序时,可以调用 Android 框架中本身已经存在的组件,也可以在开发过程中开发新的组件,并将此新组件存入 Android 的应用程序框架,以备应用程序进行调用。 Librariesand Android Runtime C/C++ 函数库和 Java 程序运行环境 Libraries: C/C++ 函数库由标准 C 函数库、媒体功能库、浏览器引擎、 2D 和 3D 图形库及 SQLite 引擎等组成,位于 Android 应用程序框架之下。开发者不能直接使用这套函数库的功能,必须通过 Android 应用程序的相关组件间接调用。 Java 程序运行环境: Android 下 Java 程序的运行过程得到了优化,这完全得益于程序运行环境中的一组 Java 核心函数库及 Dlavik 虚拟机。 LinuxKernel Linux 内核 Android 系统平台基于优化的 Linux 内核,它提供诸如内存管理、进程管理、设备驱动 等服务,同时也是手机软硬件的连接层。 1.2 Android 应用程序组成 Android 平台下所有的应用程序都由两部分构成:功能代码和资源 1.3 Android 系统的四个重要组件 Activity (构造界面) Intent ( Activity 之间,应用程序之间传递数据,消息) Service (后台运行,为整个应用程序运行提供服务支持) ContentProvider (为应用程序提供数据,数据接口) 所有的组件都要在 AndroidManifest.xml 文件中进行声明,它负责将这些组件有机的组合在一起。各组件的结构关系如下图: 1.4 Android 开发使用的开发工具 Android SDK , Eclipse 以及 Google 专门为开发 Android 应用程序的插件 ADT 。 2 GoogleMap API for Android 2.1 GoogleMap API 的使用 Creating anew Android application that uses the Google Maps Android API v2 requiresseveral steps. Many of the steps outlined in this section will only have to beperformed once, but some of the information will be a handy reference forfuture applications. The overall process of adding a map to an Androidapplication is as follows: Download and configure the Google Play servicesSDK. The Google Maps Android API is distributed as part of this SDK. Obtain an API key. To do this, you will need toregister a project in the Google APIs Console, and get a signing certificatefor your app. Specify settings in the Application Manifest. Add a map to a new or existing Android project. Publish your application! GooglePlay Service 下载、 Key 获取、 Google 类简介可参照官方的开发者指南 https://developers.google.com/maps/documentation/android/start 部分中文翻译参照博客: http://www.cnblogs.com/mengdd/archive/2013/01/01/2841390.html 2.2 GoogleMap API 开发 Google Maps API 提供的最重要的类是 GMap, 它代表页面上的地图对象,用户可以根据需要在页面上使用多个 GMap 的实例。开发包提供给用户的动态函数库让开发者可以为每个实例提供一些指定的事件,并利用静态方法 GEvent.addListener 或 GEvent.bind 监视这些事件。此外 API 还提供 GMarker 、 GIcon 、 GPolyline 、 GLargeMapControl 等类来分别实现标注、标记、折线、控件等功能。 因为 Google 地图服务缺乏专业制图、空间分析和空间查询等 WebGIS 必备功能 , 故并不是严 格意义上的专业 WebGIS, 暂时只能称为网络地图服务。反过来如果可以将 GIS 知识与 GoogleMap 、 Android 的移动便携以及 GPS 的随时定位结合起来,将有可能形成具有更高价值的地图服务。为生活提供更加准确、便捷专业的移动服务。 3 参考资料 公磊 , 周聪 . 基于 Android 的移动终端应用程序开发与研究 . 计算机与现代化 ,2008,08:85-89. 耿庆斋 , 缪纶 , 段媛媛 , 李江华 . 基于 GoogleMaps API 的 Web 地图服务系统研究及应用 . 中国水利水电科学研究院学报 ,2009,01:62-66. 彭璇 , 吴肖 .GoogleMap API 在网络地图服务中的应用 . 测绘信息与工程 ,2010,01:25-27. 吴肖 , 彭璇 , 朱明磊 . 基于 GoogleMap API 的校园电子地图开发 . 测绘工程 ,2010,03:35-38. 曲桂婷 . 基于 Android 移动式地理信息终端的开发与研究 . 导师 : 袁赣南 ; 罗维 . 哈尔滨工程大学 ,2012. 隆志坚 .Android 平台基于 GoogleMap API 的导航应用技术研究和实现 . 办公自动化 ,2011,16:46-48+57. http://developer.android.com/index.html https://developers.google.com/maps/documentation/android/ http://www.apkbus.com/
How Google Retooled Android With Help From Your Brain BY ROBERT MCMILLAN02.18.136:30 AM http://www.wired.com/wiredenterprise/2013/02/android-neural-network/ A picture of the human voice, courtesy the AndroSpectro app. Photo: Ariel Zambelich/Wired When Google built the latest version of its Android mobile operating system, the web giant made some big changes to the way the OS interprets your voice commands. It installed a voice recognition system based on what’s called a neural network — a computerized learning system that behaves much like the human brain. For many users, says Vincent Vanhoucke, a Google research scientist who helped steer the effort, the results were dramatic. “It kind of came as a surprise that we could do so much better by just changing the model,” he says. Vanhoucke says that the voice error rate with the new version of Android — known as Jelly Bean — is about 25 percent lower than previous versions of the software, and that this is making people more comfortable with voice commands. Today, he says, users tend to use more natural language when speaking to the phone. In other words, they act less like they’re talking to a robot. “It really is changing the way that people behave.” It’s just one example of the way neural network algorithms are changing the way our technology works — and they way we use it. This field of study had cooled for many years, after spending the 1980s as one of the hottest areas of research, but now it’s back, with Microsoft and IBM joining Google in exploring some very real applications. When you talk to Android’s voice recognition software, the spectrogram of what you’ve said is chopped up and sent to eight different computers housed in Google’s vast worldwide army of servers. It’s then processed, using the neural network models built by Vanhoucke and his team. Google happens to be very good at breaking up big computing jobs like this and processing them very quickly, and to figure out how to do this, Google turned to Jeff Dean and his team of engineers, a group that’s better known for reinventing the way the modern data center works. Neural networks give researchers like Vanhoucke a way analyzing lots and lots of patterns — in Jelly Bean’s case, spectrograms of the spoken word — and then predicting what a brand new pattern might represent. The metaphor springs from biology, where neurons in the body form networks with other cells that allow them to process signals in specialized ways. In the kind of neural network that Jelly Bean uses, Google might build up several models of how language works — one for English language voice search requests, for example — by analyzing vast swaths of real-world data. “People have believed for a long, long time — partly based on what you see in the brain — that to get a good perceptual system you use multiple layers of features,” says Geoffrey Hinton, a computer science professor at the University of Toronto. “But the question is how can you learn these efficiently.” Android takes a picture of the voice command and Google processes it using its neural network model to figure out what’s being said. Google’s software first tries to pick out the individual parts of speech — the different types of vowels and consonants that make up words. That’s one layer of the neural network. Then it uses that information to build more sophisticated guesses, each layer of these connections drives it closer to figuring out what’s being said. Neural network algorithms can be used to analyze images too. “What you want to do is find little pieces of structure in the pixels, like for example like an edge in the image,” says Hinton. “You might have a layer of feature-detectors that detect things like little edges. And then once you’ve done that you have another layer of feature detectors that detect little combinations of edges like maybe corners. And once you’ve done that, you have another layer and so on.” Neural networks promised to do something like this back in the 1980s, but getting things to actually work at the multiple levels of analysis that Hinton describes was difficult. But in 2006, there were two big changes. First, Hinton and his team figured out a better way to map out deep neural networks — networks that make many different layers of connections. Second, low-cost graphical processing units came along, giving the academics had a much cheaper and faster way to do the billions of calculations they needed. “It made a huge difference because it suddenly made things go 30 times as fast,” says Hinton. Google’s Jeff Dean did the computing work to spruce up Android’s voice recognition. Photo: Ariel Zambelich/Wired Today, neural network algorithms are starting to creep into voice recognition and imaging software, but Hinton sees them being used anywhere someone needs to make a prediction. In November, a University of Toronto team used neural networks to predict how drug molecules might behave in the real world. Jeff Dean says that Google is now using neural network algorithms in a variety of products — some experimental, some not — but nothing is as far along as the Jelly Bean speech recognition software. “There are obvious tie-ins for image search,” he says. “You’d like to be able to use the pixels of the image and then identify what object that is.” Google Street View could use neural network algorithms to tell the difference between different kinds of objects it photographs — a house and a license plate, for example. And lest you think this may not matter to regular people, take note. Last year Google researchers, including Dean, built a neural network program that taught itself to identify cats on YouTube. Microsoft and IBM are studying neural networks too. In October, Microsoft Chief Research Officer Rick Rashid showed a live demonstration of Microsoft’s neural network-based voice processing software in Tianjin, China. In the demo, Rashid spoke in English and paused after each phrase. To the audience’s delight, Microsoft’s software simultaneously translated what he was saying and then spoke it back to the audience in Chinese. The software even adjusted its intonation to make itself sound like Rashid’s voice. “There’s much work to be done in this area,” he said. “But this technology is very promising, and we hope in a few years that we’ll be able to break down the language barriers between people. Personally, I think this is going to lead to a better world.”
Android下结束进程的方法 http://blog.csdn.net/ramondlee/article/details/6840161 2011-10-02 10:35 337人阅读 评论 (0) 收藏 举报 Android下结束进程的方法 最近在做一个类似与任务管理器的东西,里面有个功能,可以通过这个管理器结束掉其他的进程。 在Android平台下,结束进程的方法还是比较多的。首先指明,此处的“结束进程”,包含了结束自身进程和结束其他进程两个方面。通过查阅SDK文档和网上的一些资料,自己找到一些结束进程的方法。在这里做一些归纳和总结,文章的部分信息有可能来自网上已有的文章和帖子,由于过了比较长时间,所以若发现本文与其他文章雷同,请谅解。 一、结束一个活动Activity 要主动的结束一个活动Activity,( 先强调一下,是结束一个活动,而不是进程 )众所周知,肯定是finish方法啦,这个就毋庸置疑了,而且这个方法最后会调用Activity的生命周期函数onDestroy方法,结束当前的Activity,从任务栈中弹出当前的Activity,激活下一个Activity。当然其他的finish系列方法,我们不在这里做详细讨论,有兴趣的同学可以自己查阅一下SDK 的文档。 二、强制结束当前的进程 强行结束当前进程有两个方法。(呵呵,这里就是结束进程了) 1、killProcess(int pid) 例子: android.os.Process.killProcess(android.os.Process.myPid()); 对于这个方法,需要详细解释一下。在SDK的文档中,解释如下: Kill the process with the given PID. Note that, though this API allows us to request to kill any process based on its PID, the kernel will still impose standard restrictions on which PIDs you are actually able to kill. Typically this means only the process running the caller's packages/application and any additional processes created by that app; packages sharing a common UID will also be able to kill each other's processes. 英语不好,不能准确翻译,所以希望大家自己理解,免得对大家造成误解。我个人对这句话的解释就是,这个方法使用是有条件的: a、将被杀掉的进程 和 当前进程 处于同一个包或者应用程序中; b、将被杀掉的进程 是由当前应用程序所创建的附加进程; c、将被杀掉的进程 和 当前进程 共享了普通用户的UID。(这里的普通用户,是相对于Root权限的用户来说的) 2、 System.exit(int code) 例子: System.exit( 0 ); 该方法只能用于结束当前进程自身,个人觉得在程序遇到异常,无法正常执行时,可以通过这个方法强制退出。 需要注意的是,这两个方法,会导致进程非正常退出,就是说,进程退出时不会去执行onPause、onStop和onDestroy方法,那么进程很有可能错过了保存数据的机会。因此,这两个方法最好使用在出现异常的时候! 三、结束另一个进程 要通过一个进程去结束另一个进程。在之前的SDK版本中,一直使用方法restartPackage(packageName)方法,但是在Android的开发文档中介绍说,这个函数会导致一些问题( the previous behavior here is no longer available to applications because it allows them to break other applications by removing their alarms, stopping their services, etc. ),所以建议大家使用一个新的方法: void killBackgroundProcesses ( String packageName) 由于这个方法没有返回值,所以我们也不知道我们的目标进程是否真的退出了。但是,我目前只发现了这个可以结束另一个进程的方法。 四、退出到主屏幕(记得是对当前进程的处理) 这个方法,也是退出当前进程的一个方法。如果我们在进程中创建了很多的Activity,但是又不想关闭时去退出不在任务栈顶的Activity,那么就可以直接使用这个方法了。这个方法是通过查阅网上资料看到的。在此先感谢 追梦人 了(他的博客地址: http://www.cnblogs.com/yunfei181/archive/2011/01/24/1943128.html ,欢迎大家去看看他的博客)。 功能:当按下返回键时,就返回到主屏幕,并带有参数FLAG_ACTIVITY_CLEAR_TOP,会清理掉当前的活动。 1 @Override 2 public boolean onKeyDown( int keyCode, KeyEvent event) { 3 if (keyCode == KeyEvent.KEYCODE_BACK event.getRepeatCount() == 0 ) { // 按下的如果是BACK,同时没有重复 4 Intent home = new Intent(Intent.ACTION_MAIN); 5 home.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 6 home.addCategory(Intent.CATEGORY_HOME); 7 startActivity(home); 8 } 9 return super .onKeyDown(keyCode, event); 10 } 此方法确实结束了当前进程,但是通过Android平台的App Manager工具去查看的话,使用2.3.3的模拟器,会发现刚刚被结束的进程会以Cached background Process的形式存在,并且模拟器给出了解释,说是为了下一次更快捷的启动这个进程。
现在的手机配置高啊,CPU动不动就上G,内存上G,想想当年的Windows98、Windows Me、WindowsXP刚发行的时候电脑配置可能还没这么高,那么在手机上运行这些系统是否可行?答案是确定的。方式如下: Win 95/98/XP and Linux OSs (Knoppix/Ubuntu/Redhat etc) on your Android!!! Yes ! Now you can run x86 based operating systems on your ARM device. Now you can have full desktop windows/linux experience on your Android smartphones. The windows 95 works great on my EVO3D All credits to their respective developers..... Instructions : 1.Download and install Bochs2_5_1.apk (stable but slower) or QEMU.apk (unstable but faster) 2.Download SDL(BOCHS).zip for Bochs2_5_1.apk and SDL(QEMU).zip for QEMU.apk and extract on root of sdcard , so path should be sdcard/SDL/*.* 3.Put a disk image of type ".img" of any operating system in SDL folder and rename it to "c.img" (tested : win 95/98/XP ----------------Linux OSs like Ubuntu/Knoppix/redhat etc can also be used) 4.Run Bochs or LibSDL from appdrawer. Let it boot (takes a while) and enjoy. How to Create .IMG from .VHD disk image in Second Post ---------------------------------------------------------------------- Instructions (BOCHS) : (i forgot to post the instructions so thanks to HDD_x8 for posting this) - The screen works as touchpad to control the mouse cursor and volume up/down works as left/right click. - You can also tap the screen to generate left click.(this does not work everytime) - Back = BackSpace, Menu = Enter, left-upper corner click generates TAB - left-lower corner click popups keyboard ( For a desktop like experience use this keyboard - Hackers Keyboard ) -Create a folder called "HDD" on the root of your SDcard and put your softwares/files or anything in there. When you boot windows, then in "My Computer" you will see "d" drive which will have the "HDD" folder contents. So you can install/use them in Windows. ----------------------------------------------------------------------- ---------------------------------------------------------------------- Instructions (QEMU): - The screen works as touchpad to control the mouse cursor. - You can also tap the screen to generate left click (right click is not possible AFAIK) . - Back = BackSpace, Holding Menu = popups keyboard ( For a desktop like experience use this keyboard - Hackers Keyboard ) - No custom files can be used as of now, will find a way and post here again. ---------------------------------------------------------------------- MHL to HDMI out tested and confirmed working (thanks to HDD_x8 again.) Some freeware disk images can be found here or here (not sure if any of them will work as i have not tested , only win 95/98/XP are tested.) win98磁盘镜像:115.com/file/dpy6g3eq# winxp磁盘镜像:115.com/file/c2bqgit0#
The Royal Society of Chemistry has launched a free mobile app that is now available on iTunes. RSC Mobile provides readers with access to search RSC journal content from the RSC Publishing Platform. Users at any institution or organisation that currently subscribe to RSC journals can access the same content on the RSC Mobile app using its wireless network. The benefits of RSC Mobile include: Up-to-the-minute access to RSC journals; Full text HTML and PDF access via wireless networks for subscribing institutions/organisations; The latest news from the RSC Publishing Platform; Saving articles for offline reading; Share your favourite content via email, Twitter or Facebook. Notes for editors: · The RSC Mobile app is available for iPad, iPhone and iPod and the Royal Society of Chemistry is currently developing the Android version, which will be available early 2012. More information, please see: http://www.rsc.org/AboutUs/News/PressReleases/2011/Mobileapp.asp