TODO: Android; Linux; Cloud;

吾尝终日而思矣,不如须臾之所学也

排序:
默认
按更新时间
按访问量

Android: LOCAL_SDK_VERSION := current

Android.mk里添加 LOCAL_SDK_VERSION := current 后不能使用@hide API

2013-06-17 11:13:29

阅读数:5150

评论数:0

Android: 判断service运行状态

public static boolean isServiceRunning(Context context) { ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_...

2013-05-29 10:55:48

阅读数:5963

评论数:0

Android: project UrlImageViewHelper

https://github.com/koush/UrlImageViewHelper Usage UrlImageViewHelper will automatically download and manage all the web images and ImageV...

2013-05-28 13:39:17

阅读数:3136

评论数:0

Android: Bitmap OutOfMemory

//decodes image and scales it to reduce memory consumption private Bitmap decodeFile(File f){ try { //Decode image size ...

2013-05-23 17:41:29

阅读数:2305

评论数:0

Android: 判断网络状态

判断当前Wifi或Ethernet连接状态: public static boolean isNetworkConnected(Context context) { ConnectivityManager cm = (ConnectivityManager) context .ge...

2013-04-27 17:51:18

阅读数:2639

评论数:0

Android: ImageView animations

ImageView view = ((ImageView) getView().findViewById(R.id.image)); view.startAnimation(AnimationUtils.loadAnimation(getActivity(), R.anim.fade_in))...

2013-04-27 17:35:50

阅读数:2324

评论数:0

Git: 修改提交记录

git rebase -i xxx pick xxxx 修改为 edit xxxx git commit --amend 修改提交记录 git rebase --continue 搞定,重新push

2013-04-27 17:33:57

阅读数:2132

评论数:0

Android: 通过URL下载文件

URL url = new URL(urlString); File tempFile = null; tempFile = File.createTempFile("cache", ".tmp", new File(Environment.getExter...

2013-04-11 17:18:06

阅读数:3075

评论数:0

Android: ImageView and Bitmap

imageView.setImageBitmap(bitmap) 从res获得Bitmap: Bitmap bitmap= BitmapFactory.decodeResource(getResources(), R.drawable.xxx); 从ByteArray获得...

2013-04-11 17:12:01

阅读数:2561

评论数:0

Android: ApiHelper

/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...

2013-04-08 16:31:19

阅读数:3462

评论数:0

Android: notifications

android-sdk/docs/guide/topics/ui/notifiers/notifications.html Notifications IN THIS DOCUMENT Notification Display Elements ...

2013-04-08 16:13:33

阅读数:3068

评论数:0

Android: SharedPreferences OP

SharedPreferences prefs = Utils.getSharedPreferences(context); boolean autostart = prefs.getBoolean(SettingsPreferences.KEY_BOOT_CFG, false); pub...

2013-04-08 16:09:41

阅读数:2355

评论数:0

Android: android 如何预置APK

ZZ: http://blog.csdn.net/sergeycao/article/details/8198205 一、如何将带源码的APK预置进系统? 1)     在 packages/apps 下面以需要预置的 APK的 名字创建一个新文件夹,以预制一个名为Test的APK 为例 2...

2013-03-19 09:43:02

阅读数:2232

评论数:0

Android: API Levels

import android.os.Build; private static final int SDK_VERSION = Build.VERSION.SDK_INT; Platform Version API Level VERSION_CODE N...

2013-03-18 15:29:49

阅读数:1931

评论数:0

Android: 监听解锁事件

Intent.ACTION_USER_PRESENT "android.intent.action.USER_PRESENT"

2013-03-15 16:18:28

阅读数:2671

评论数:0

Android: DroidAirPlay Project

https://github.com/pentateu/DroidAirPlay DroidAirPlay =========== Rafael Almeida (rafael@iswe.co.nz) July 2012 Overview --------------- Th...

2013-03-15 14:22:28

阅读数:3643

评论数:0

Android: AirReceiver Project

https://github.com/fgp/AirReceiver AirReceiver =========== Florian G. Pflug May 2011 Overview -------- AirReceiver is an AirPort Ex...

2013-03-15 14:17:15

阅读数:3019

评论数:0

Git: 合并几个commit为一个commit

git log: Commit A Commit B Commit C Commit D Commit O 比如要合并 A B C D 为一个commit git rebase -i Commit O 在里面把 B C D 前面设s 退出rebase, 编辑commit ...

2013-02-22 18:50:43

阅读数:24591

评论数:0

Android: 百度个人云存储

http://developer.baidu.com/wiki/index.php?title=docs/pcs 百度个人云存储(PCS) 免费大空间、海量存储。支持文件、目录及缩略图管理。支持结构化数据存储 。多终端自动同步。轻松的文件分享功能。专业的技术支持团队。基于多种平台提供丰富的...

2013-01-31 18:33:24

阅读数:4734

评论数:0

Linux: hrtimer 用法

hrtimer = high res timer 内核为高精度定时器重新设计了一套软件架构,它可以为我们提供纳秒级的定时精度,以满足对精确时间有迫切需求的应用程序或内核驱动,例如多媒体应用,音频设备的驱动程序等等。以下的讨论用hrtimer(high resolution timer)表示高精度...

2013-01-30 16:04:15

阅读数:4604

评论数:1

提示
确定要删除当前文章?
取消 删除
关闭
关闭