摘要:// htmlText = "This is test"; public String fixDoubleSpaceIssue(String htmlText) { htmlText= text.replace(" ", " "); htmlText= text.r
阅读全文
摘要:解决办法,可能是manifest 太长 工具无法识别 修改manifest 先只保留一个启动的acitivity 让Androidstudio 识别manifest。然后在恢复正常的manifest <activity android:name=".view.activity.adver.Adver
阅读全文
摘要:int imageWidth=px2dip(context,65);RoundedCorners roundedCorners= new RoundedCorners(50);Glide.with(context) .load(item.getAvatar()).apply(new RequestO
阅读全文
摘要:Android 模拟MotionEvent事件 触发输入法 android输入法layoutbutton文本编辑encoding 关键词:MotionEvent,模拟按键,模拟点击事件,主动弹出输入法,弹出软键盘。 欢迎转载并说明转自:http://blog.csdn.net/aminfo/arti
阅读全文
摘要:/** * 用来判断服务是否运行. * @param context * @param className 判断的服务名字 * @return true 在运行 false 不在运行 */ public static boolean isServiceRunning(Context mContext
阅读全文
摘要:本来想着用handlerpostdelay就可以实现,没想到演示后关闭应用居然报错。 后来想到是没有了activity。 ((Activity)context).isFinishing() 可以传入context,再强转成activity。判断此acitvity是否存在,之后就可有去放心的弹出了。
阅读全文