摘要:
添加一个apk都需要将LOCAL_PACKAGE_NAME的值添加到PRODUCT_PACKAGES才行。
而PRODUCT_PACKAGES一般在build/target/product/目录下的文件里都有定义 阅读全文
posted @ 2013-10-31 15:10
安卓吧
阅读(1946)
评论(0)
推荐(1)
摘要:
import android.os.storage.StorageManager;
String fileDir = null;
StorageManager storageManager = (StorageManager)mContext.getSystemService(Context.STORAGE_SERVICE);
if (null == storageManager) {
fileDir = Environment.getExternalStorageDirectory().getPath();
} else {
fileDir = storageManager.getDefaultPath();
}
if(fileDir.equals("/storage/sdcard1")){
showString = getString( 阅读全文
posted @ 2013-10-31 13:19
安卓吧
阅读(707)
评论(0)
推荐(0)
摘要:
在Android开发中如果用eclipse开发的话,在配置的时候会有一个选项,Is library一直没有研究明白,经过上网查找,有人归纳了用法,归纳的很好作为保留。解决了我多个项目共享资源的好方法。 阅读全文
posted @ 2013-10-31 13:15
安卓吧
阅读(4263)
评论(0)
推荐(0)
摘要:
android组件的事件处理有2种方式:
1、基于监听器的事件处理方式:先定义组件,然后为组件设定监听器。
详见http://blog.csdn.net/jediael_lu/article/details/11555497
2、基于回调的事件处理方式:让每一个组件继承UI类,并重写该类的事件处理方法。当该组件遇到某事件时,即会触发相应的事件处理方法。 阅读全文
posted @ 2013-10-31 13:14
安卓吧
阅读(4217)
评论(0)
推荐(0)
摘要:
以上方法均通过测试,tv_result为自设定的TextView。 阅读全文
posted @ 2013-10-31 12:35
安卓吧
阅读(5125)
评论(0)
推荐(0)
摘要:
一:Notification
1.NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
2. notification.setLatestEventInfo(this, "国安部给你发短信!", "你被通辑啦~~~", contentIntent);
2.1: PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, 0);
2.1.1: Intent intent = new Intent();
intent.setAction(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:110"));
3.nm.notify(0,notification);
3.1:Notification notification = new
Notification(R.drawab 阅读全文
posted @ 2013-10-31 07:53
安卓吧
阅读(3898)
评论(0)
推荐(0)

浙公网安备 33010602011771号