ITeye博客

android

共 38 篇文章

GDB调试精粹及使用实例

一:列文件清单 1. List (gdb) list line1,line2 二:执行程序 要想运行准备调试的程序,可使用run命令,在它后面可以跟随发给该程序的任何参数,包括标准输入和标准输出说明符(<和>)和外壳通配符(*、?、[、])在内。 如果你使用不带参数的run命令,gdb就再次使用你给予前一条run命令的参数,这是很有用的。 利用set args 命令就可以修改发送给程序的参数,而使用show args 命令就可以查看其缺省参数的列表。 (gdb)set args –b –x (gdb) show args backtrace命令为堆栈提供向后跟踪功能。 Backtrace 命…

2012-01-09 00:58 · linux · android · C/C++

gdb cannot exec /bin/sh on android local terminal

http://letsgoustc.spaces.live.com/Blog/cns!89AD27DFB5E249BA!943.entry Cross-compile GDB 6.8 for Android Step1: Download gdb and arm cross-compile toolchain. ftp://ftp.gnu.org/gnu/gdb/gdb-6.8.tar.gz http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3…

2012-01-08 23:52 · android · C/C++

android opengl lifecycle with ndk

http://www.brokenteapotstudios.com/android-game-development-blog/2011/05/opengl-es-20-integration-with-the-ndk-and-the-android-application-lifecycle.html

2012-01-04 10:29 · android

android ndk source code

http://android.yongbok.net/repository/frameworks/base/core/jni/

2011-12-30 00:12 · android

使用GDB调试Android NDK开发的程序

对于使用NDK编译出来的工具除了so库文件外,会会有gdbserver和gdb.setup文件,方法为 1. 在PC的命令提示符下进入ndk根目录,执行ndk-build NDK_DEBUG=1 这样,将会强制生成debug调试版的文件,将设我们NDK工程名为 cwj-test ,这里要说明的是编译出来的库文件在libs目录下是没有符号的,我们要obj下的文件,否则symbol无法正确加载。 2. 我们将生成的gdbserver和so库文件复制到/data目录下面,使用adb push命令,或者直接使用Eclipse中DDMS的File Explorer手动复制,不过对于真机可能没有这个列举…

2011-12-24 16:03 · android

更新Android SDK, 升级ADT遇到的问题总结

本文能解决的问题: 1.android sdk, ADT (Android SDK tools) 升级至16, SDK升级4.0 2.Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://10.159.192.62:8080 refused 3.Failed to rename directory *\android-sdk-windows\tools to *\android-sdk-windows\temp\ToolPa…

2011-12-24 15:18 · android

jmonkey sdk 3 support android

http://jmonkeyengine.org/groups/android/forum/topic/android-tutorials/

2011-12-05 00:29 · android · 3d mathematics

[转]adb shell 无法启动 (insufficient permissions for device)

使用adb shell出现错误: error: insufficient permissions for device 解决: [calvin@calvin-desktop ~ 23:31:18 ] $ sudo -s sudo -s:执行环境变数中的 SHELL 所指定的 shell ,或是 /etc/passwd 里所指定的 shell 即相当于 sudo /bin/bash [root@calvin-desktop ~ 23:31:22 ] $ adb kill-server [root@calvin-desktop ~ 23:31:35 ] $ adb start-server * …

2011-10-05 21:01 · android · Android · Motorola · Linux

3d资料记录

World, View and Projection Matrix Unveiled http://robertokoci.com/world-view-projection-matrix-unveiled/

2011-09-23 10:36 · 建模设计 · android

android emulator启动超级慢解决方法

手动写一个bat --》 emulator.exe -cpu-delay 0 -no-boot-anim -avd avd

2011-07-01 14:43 · android

opengl and blender in action

http://adampreble.net/blog/2011/02/from-blender-to-iphone/

2011-06-28 17:49 · android · Blog · .net

自定义 Theme 改变 系统全局样式

转自: http://www.androidworks.com/changing-the-android-edittext-ui-widget Changing the Android EditText UI Widget Summary: This article should be useful to people who want to customize the default UI EditText as well as TextView on the Android platform. Mostly, I mean the Orange skin that appears to …

2011-03-30 16:44 · android · UI · XML · Android

Recommend blog about android

http://letsgoustc.spaces.live.com/blog/

2011-03-28 16:20 · android · Blog · Android

ant 优化android 项目编译第二波,simple编译项目只需1分钟

由于第一次的脚本在改动java文件后仍需约五分钟,现进行第二次优化, 上片请进 http://liuqzan.iteye.com/blog/951995 分析:编译耗时主要在资源文件引用的生成和资源文件的打包与二进制处理流程中 对于一个只修改了java文件的项目而言,无需重新执行资源文件的打包与二进制流程 上一个ant 在只修改了java文件的时候编译仍需5mins因为重复生成 二进制 资源文件, 此步可以在没有资源文件更改的情况下,只需执行过一次,以后编译时可以省去 ant 脚本优化生成三个功能: 1:generate R: 更新R文件 耗时约4mins 2:package-resourc…

2011-03-15 13:58 · android · OS · XML · Ant · Android · 脚本

为TextView添加上下边框

In android 2.2 you could do the following. Create an xml drawable such as /res/drawable/textlines.xml and assign this as a TextView's background property. <TextView android:text="My text with lines above and below" android:background="@drawable/textlines" /> /res/drawable/textlines.xml <?xml versio…

2011-03-14 11:19 · android · XML · Android

在Eclipse中查看Android SDK源码

在SDK目录下面的platforms\android-X\ 建立sources 目录,从网上下载相应SDK源码于sources目录下。更新Eclipse中相关Android项目,即可查看SDK源码! 一个2.2 SDK源码传送门: http://www.down2mobile.net/down.php?fid=438

2011-03-14 10:34 · android · PHP · Eclipse · .net · Android

使用ant优化android项目编译速度,提高工作效率

在通常的Android大中型项目开发中,使用Eclipse进行android项目的开发有如下不便之处: 1、Android项目编译周期长,编译项目命令取消困难 2、在进行Android项目的编译的同时,Eclipse锁定工作区不能进行修改操作 3、在只进行资源文件的修改时,Eclipse对资源文件的修改会导致整个项目的编译,在无法打开自动编译模式下,极为不便 对项目进行分包处理后,android编译速度极慢。 对于我们现在的项目,在未进行分包时编译一次大约需要4、5分钟而有时候你只是简单的修改了一下java文件。。。 进行分包后,编译整个项目时长达到10分以上,有时甚至造成eclipse假死…

2011-03-10 12:09 · android · 工作 · Eclipse · XML · Ant · Android

box2d 文档及Physics 相关知识

http://www.box2d.org/manual.html http://chrishecker.com/Physics_References

2011-02-25 14:59 · android · HTML

极品Opengl ES 教程

http://duriansoftware.com/joe/An-intro-to-modern-OpenGL.-Table-of-Contents.html http://code.google.com/p/android-gl/source/checkout http://www.anddev.org/tut-sequence_android_gl_-_learning_opengl_from_scratch-t229.html http://www.zeuscmd.com/tutorials/opengles/06-Rendering.php http://paulyg.f2s.com…

2011-02-22 16:38 · android · HTML · Google · PHP · Android

使用Mercurial从Google Code获得 项目源代码

在Google Code上看到一个心动的项目源代码? 想要获得它。千万不要一个文件一文件的复制它!!因为你可以用Mercurial 轻松获得它们。。有每个项目源代码下面有使用Mercurial路径 hg clone https://andengine.googlecode.com/hg/ andengine

2011-02-18 10:58 · android · Google