摘要:
Android中Notification通知的实现步骤: 1.获取NotificationManager对象NotificationManager的三个公共方法:①cancel(int id) 取消以前显示的一个通知.假如是一个短暂的通知,试图将隐藏,假如是一个持久的通知,将从状态条中移走。②can 阅读全文
摘要:
package com.ch.services; import com.ch.utils.NetWorkUtils; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.util.Log; //这是后台 Service public clas... 阅读全文
摘要:
现在android项目values下打 attrs.xml style.xml layout下activity_main MainActivity 阅读全文
摘要:
下载数据: 阅读全文
摘要:
//本文为转载 Fiddler是一个http调试代理,它能 够记录所有的你电脑和互联网之间的http通讯,Fiddler 可以也可以让你检查所有的http通讯,设置断点,以及Fiddle 所有的“进出”的数据(指cookie,html,js,css等文件,这些都可以让你胡乱修改的意思)。 Fiddl 阅读全文
摘要:
SimpleDateFormat formatter = new SimpleDateFormat ("yyyy年MM月dd日 HH:mm:ss "); Date curDate = new Date(System.currentTimeMillis());//获取当前时间 String str = 阅读全文
摘要:
很多APP都有侧滑菜单的功能,部分APP左右都是侧滑菜单~SlidingMenu 这个开源项目可以很好帮助我们实现侧滑功能,如果对SlidingMenu 还不是很了解的童鞋,可以参考下本篇博客。 本片博客只是SlidingMenu的简单用法适合新手使用,谢谢支持。 首先得先导个第三方包:slidin 阅读全文
摘要:
由于listview的一些特性,刚开始写这种需求的功能的时候都会碰到一些问题,重点就是存储每个checkbox的状态值,在这里分享出了完美解决方法: 布局文件: [html] <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:a 阅读全文
摘要:
import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; 阅读全文
摘要:
sharedPreferences = getSharedPreferences("zhuce", 0); if(!sharedPreferences.getBoolean("text",false)){ sharedPreferences.edit().putBoolean("text",true 阅读全文