
Android
儿大不由爷
这个作者很懒,什么都没留下…
展开
-
Android SDK 下载 链接
Release 10, 没有安装过SDK的相应平台版本,解压或者安装后,用AVD Manager下载相应版本的SDK。如果已经安装过SDK直接用AVD Manager更新SDK就行了。Linux: http://dl.google.com/android/android-sdk_r10-linux_x86.tgzMac: http://dl.google.com/android/android-sdk_r10-mac_x86.zipWindows:http://dl.google.com/android原创 2011-03-02 16:37:00 · 804 阅读 · 0 评论 -
android 监听联系人数据库
android 监听联系人数据库 代码 stackoverflow转载 2011-03-08 11:07:00 · 2413 阅读 · 0 评论 -
在Android 的Camera 预览上执行 Drawing 操作
在Android 的Camera 预览上执行 Drawing 操作转载 2011-03-06 10:47:00 · 750 阅读 · 0 评论 -
Android SDK R11 下载地址
<br />windows zip:http://dl.google.com/android/android-sdk_r11-windows.zip<br />windows exe:http://dl.google.com/android/installer_r11-windows.exe<br />Mac OS: http://dl.google.com/android/android-sdk_r11-mac_x86.zip<br />Linux(x86): http://dl.google.com原创 2011-05-11 12:37:00 · 2091 阅读 · 0 评论 -
Android 获取已安装应用使用的Permission
<br />Cut from stackoverflow<br /> <br /> <br />PackageManager p = this.getPackageManager(); <br />final List<PackageInfo>appinstall =p.getInstalledPackages(PackageManager.GET_PERMISSIONS|PackageManager.GET_RECEIVERS| PackageManager.GET_SERVICES|PackageMa转载 2011-03-29 15:47:00 · 1935 阅读 · 0 评论 -
修改 Android 标题栏(Title Bar)
<br />stack over flow<br /> <br />This thread will get you started with building your own title bar in a xml file and using it in your activities<br />Edit<br />Here is a brief summary of the content of the link above - This is just to set the color of the转载 2011-03-31 22:10:00 · 2309 阅读 · 0 评论 -
Android 限制启动应用最大使用内存,可供极限测试时使用
<br />from stackoverflow<br /> <br />通过shell 调用ulimit 命令<br /> <br />ulimit -Sv10000<br /><br />这个将对当前shell启动的应用设置使用内存的上限为10 000 Kb。<br />转载 2011-04-01 09:01:00 · 1123 阅读 · 0 评论 -
Android SD 卡上创建 SQLite 数据库
<br /><br />from stackoverflow<br />File dbfile = new File("/sdcard/mydb.sqlite"); <br />SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbfile,null); <br />转载 2011-03-31 22:13:00 · 1511 阅读 · 0 评论 -
Android OEM USB 驱动
Android OEM USB DriversSee alsoDeveloping on a DeviceGoogle USB Driver<br />If you are developing on Windows and would like to connect an Android-powered device to test your applications, then you need to install the appropriate USB driver. This document p转载 2011-05-30 14:10:00 · 2626 阅读 · 0 评论 -
安装 ADT 插件
Installing the ADT Plugin<br />The sections below provide instructions on how to download and install ADT into your Eclipse environment. If you encounter problems, see the Troubleshooting section.Preparing Your Development Computer<br />ADT is a plugin for转载 2011-05-30 14:05:00 · 981 阅读 · 0 评论 -
Android 将Back 模拟或者转换为按Home键一样的效果
<br /><br />当收到back键消息时,调用moveTaskToBack,这样的效果和按Home一样,程序并没有退出,而是在后台。<br /><br />@Override<br />publicboolean onKeyDown(int keyCode,KeyEventevent){<br /> if(keyCode ==KeyEvent.KEYCODE_BACK){<br /> moveTaskToBack(true);<br /> returntrue;<br原创 2011-05-30 17:55:00 · 1322 阅读 · 0 评论 -
获取Android 唯一标识
<br />1.使用ANDROID_IDimport android.provider.Settings.Secure;<br />privateString android_id =Secure.getString(getContext().getContentResolver(),<br /> Secure.ANDROID_ID);<br />这个值应该是在系统第一次启动后计算出来的,设原创 2011-06-01 18:05:00 · 792 阅读 · 0 评论 -
Android 字符串资源中定义显示样式
<br /><br />在字符串资源的xml文件中可以添加, HTML 标签 <b></b>,<i></i> 和<u></u>.<resource><br /> <stringname="your_string_here">This is an <u>underline</u>.</string><br /></resources><br /><br />在代码使用:TextView textView =(TextView) view.findViewById(R.id.textview);<br /转载 2011-04-11 11:36:00 · 955 阅读 · 0 评论 -
Android 开机自动启动应用
You need to declare a broadcast listener that listens for RECEIVE_BOOT_COMPLETED android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>In your listener:Intent myStarterIn转载 2011-06-03 15:12:00 · 570 阅读 · 0 评论 -
Android ADT 11.0.0
The sections below provide notes about successive releases ofthe ADT Plugin, as denoted by revision number. ADT 11.0.0 (June 2011) Dependencies:ADT 11.0.0 is designed for转载 2011-06-07 10:36:00 · 667 阅读 · 0 评论 -
windows vista 下安装 Android USB 驱动
Windows VistaTo install the Android USB driver on Windows Vista for the first time:Connect your Android-powered device to your computers USB port. Windows will detect the device and launch t转载 2011-06-27 10:48:00 · 1242 阅读 · 0 评论 -
Android NDK r5c 下载链接
latform Package Size MD5 Checksum Windows android-ndk-r5c-windows.zip 61627716 bytes2c7423842fa0f46871eab118495d4b45Mac OS X (intel) androi原创 2011-06-27 10:43:00 · 2448 阅读 · 0 评论 -
Android OEM 厂商提供的 USB驱动
OEM Driver URLAcerhttp://www.acer.com/worldwide/support/mobile.html alcatel one touchhttp://www.alcatel-mobilephones.com/global/Android-DownloadsAsushttp://su转载 2011-06-27 10:50:00 · 1310 阅读 · 0 评论 -
Android 限定 Activity 转向
在AndroidManifest.xml文件中,添加 android:screenOrientation="portrait" 或者 android:screenOrientation="landscape" 即可限定Activity 转向。例如: and原创 2011-07-05 13:38:16 · 405 阅读 · 0 评论 -
Android drawable 目录下 创建子目录问题
Android Framework 的drawable 目录中不能创建子目录,如果创建了,编译器不能正确生成R.java中的ID。原创 2011-07-05 13:28:02 · 3775 阅读 · 0 评论 -
Android 判断 Service 是否已经运行
private boolean isServiceRunning() { ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); for (原创 2011-07-05 13:33:56 · 687 阅读 · 0 评论 -
Android SDK 历史版本
SDK Archives This page provides a full list of archived and obsolete SDK releases,including non-current versions of active releases转载 2011-07-08 09:40:47 · 1915 阅读 · 0 评论 -
Android SDK tools R12, ADT 12.0.0 发布了
这个两个是配套使用的,是用SDK Manager更新 SDK Tools, 然后用exlipse 更新ADTADT 12.0.0 (July 2011)Dependencies: ADT 12.0.0 is designed for use with SDK Tools r原创 2011-07-08 09:36:20 · 915 阅读 · 0 评论 -
Android 加载图片文件 函数
private Bitmap decodeFile(File f){ Bitmap b = null; try { //Decode image size BitmapFactory.Options o = new BitmapFa转载 2011-07-08 09:47:37 · 447 阅读 · 0 评论 -
Android 垂直的Slidebar 代码
http://560b.sakura.ne.jp/android/VerticalSlidebarExample.zip原创 2011-07-20 22:37:07 · 1465 阅读 · 0 评论 -
Android 下载 断点续传
Android 断点续传转载 2011-07-22 09:13:52 · 484 阅读 · 0 评论 -
Android 使用FTP上传文件
Try using apache commons ftpftpClient.connect(InetAddress.getByName(server));ftpClient.login(user, password);ftpClient.changeWorkingDirect转载 2011-07-21 21:08:56 · 1354 阅读 · 0 评论 -
Android 多附件 eMail
Android 多附件 eMail转载 2011-07-22 09:20:00 · 785 阅读 · 0 评论 -
Android 加速器(accelerometer) 使用,判断设备移动
public class Test extends Activity implements SensorEventListener{public static float swRoll;public static float swPitch;public static转载 2011-07-14 11:28:26 · 2446 阅读 · 0 评论 -
Android 屏幕 尺寸 单位
px Pixels - corresponds to actual pixels on the screen. in Inches - based on the physical size of the screen. mm Millimeters -转载 2011-07-14 13:57:55 · 515 阅读 · 0 评论 -
Android 捕获Activity 返回
To capture actions performed on one Activity within another requires three steps.Launch the secondary Activity (your 'camera Activity') as a转载 2011-07-15 15:30:57 · 510 阅读 · 0 评论 -
Android 在Camera 的 SurfaceView添加控制面板
Put your SurfaceView inside of aFrameLayout or RelativeLayout inyour layout XML file, since both ofthose allow stacking of widgets onthe Z-a原创 2011-07-22 09:28:11 · 774 阅读 · 0 评论 -
设置Listview item 的分隔线
可以在Layout文件中使用android:divider 属性 xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:l转载 2011-07-15 16:52:08 · 598 阅读 · 0 评论 -
Android 模拟器支持的分辨率
Low density (120), ldpi Medium density (160), mdpi High density (240), hdpi Extra high density (320), xhdpi转载 2011-07-14 14:30:50 · 1005 阅读 · 0 评论 -
Android NDK r6 下载链接
Platform Package Size MD5 Checksum Windows android-ndk-r6-windows.zip 67642809 bytes 9c7d5ccc02151a3e5e950c70转载 2011-07-16 10:48:36 · 2101 阅读 · 0 评论 -
Android 3.2 Platform 发布
API Level: 13Welcome to Android 3.2!Android 3.2 is an incremental platform release that adds newcapabilities for users and developers. This转载 2011-07-16 10:51:24 · 604 阅读 · 0 评论 -
何为NDK ?
What is the NDK?The Android NDK is a toolset that lets you embed components that make use of native code in your Android applications. And转载 2011-07-16 11:08:27 · 575 阅读 · 0 评论 -
Android 拷贝/粘贴(Copy/Paste)
Android provides a powerful clipboard-based framework for copying and pasting. It supports both simple and complex data types, including转载 2011-07-16 11:12:23 · 1536 阅读 · 0 评论 -
Android 音频视频媒体框架
The Android multimedia framework includes support for encoding and decoding avariety of common media types, so that you can easily integrate转载 2011-07-16 11:15:10 · 1387 阅读 · 0 评论 -
Android 近场通信(NFC)
Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less. NFC operates a转载 2011-07-16 11:18:29 · 1212 阅读 · 0 评论