- 博客(26)
- 收藏
- 关注
转载 APP消息推送测试点
APP消息推送测试点2019.03.15 17:38:39字数 190阅读 50消息推送对象1.单个推送2.多个推送3.及安卓和IOS渠道推送ps: 注意生产环境和测试环境的分开,避免问题消息内容测试1.消息长度2.消息类型(文字、图片、表情包、换行,空以及链接跳转,特殊字符等)消息推送场景(定时推送)1.设置时间(当前时间,过去时间,未来时间)2.未推送之前修改消息内...
2019-09-17 17:42:18
3825
1
原创 PyCharm 操作数据库
****Python3 操作数据库******一、准备导库**1、什么是 PyMySQL?PyMySQL 是在 Python3.x 版本中用于连接 MySQL 服务器的一个库,Python2中则使用mysqldb。2、PyMySQL 安装方式一: import pymysql方式二:点击file—setting——project—project Interpreter——...
2019-09-05 15:18:08
1804
转载 欢迎使用CSDN-markdown编辑器
转自:http://www.cnblogs.com/tester-hehehe/p/5437665.html 验证登录流程判断逻辑前端账户名、密码、验证码 是否为空?密码是否符合规则(特殊字符、大小写、数字、长度..)服务端验证码是否正确 (对应时间戳是否过期)账户是否存在 (未注册、已注销)密码是否正确 (记录连续输入错误次数,超过5次,账号锁定4小时。或提升验证等级,采取账号+密码+验证码+
2017-09-14 18:21:05
304
转载 Python3.x和Python2.x的区别
这个星期开始学习Python了,因为看的书都是基于Python2.x,而且我安装的是Python3.1,所以书上写的地方好多都不适用于Python3.1,特意在Google上search了一下3.x和2.x的区别。特此在自己的空间中记录一下,以备以后查找方便,也可以分享给想学习Python的friends.1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。G
2017-06-06 14:40:44
410
原创 城市列表
//布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match
2016-05-04 20:03:53
408
原创 PullToRefresh上拉加载,下拉刷新
//布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
2016-05-04 10:38:54
701
原创 AsyncTask+HttpUrlConnection网络请求解析XML且定位
package com.example.location;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.MalformedURLException;import java.net.URL;import java.util.Lis
2016-05-03 21:09:28
798
原创 App程序二次退出
long mExitTime;public boolean onKeyDown(int keyCode, KeyEvent event){ if (keyCode == KeyEvent.KEYCODE_BACK) { if ((System.currentTimeMillis() - mExitTime) > 2000) {
2016-05-03 19:48:18
372
原创 自定义View绘制圆形实现触发事件(单指移动,多指缩放)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa
2016-04-22 09:40:18
576
原创 自定义View实现图片缩放
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa
2016-04-22 09:28:24
472
原创 图片超链接
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa
2016-04-21 21:03:23
581
原创 两种方式实现文字超链接
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa
2016-04-21 20:39:01
1353
原创 SearchView搜索框
//布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match
2016-04-20 12:10:01
442
原创 生成文字的二维码
//此代码需要关于二维码的jar包<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout
2016-04-19 19:36:27
1035
原创 自定义实现圆头像
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa
2016-04-19 14:37:41
344
原创 自定义实现跑马灯
//主布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="ma
2016-04-19 12:18:43
449
原创 MediaRecorder录制视频
//布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="matc
2016-04-19 11:11:28
327
原创 几种播放视频的方式
//使用系统自带的播放器来播放,指定Action为ACTION_VIEW,Data为Uri,Type为其MIME类型。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:lay
2016-04-17 20:18:46
665
原创 自定义圆头像
//布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat
2016-04-16 09:03:55
449
原创 通过下标全选反选,删除
//主类package com.example.choose;import java.util.ArrayList;import java.util.List;import com.example.adapter.MyChooseAdapter;import com.example.adapter.MyChooseAdapter.ViewHolder;import android.app.
2016-04-16 08:46:02
356
原创 视频播放以及横竖屏切换保存播放状态
//布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat
2016-04-15 21:22:43
2051
原创 AsyncTask+HttpClient网络请求图片实现自动轮播+小圆点
//主布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
2016-04-15 10:34:05
912
原创 ScrollView与ListView的焦点问题,互相滑动互不影响
//布局<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_p
2016-04-15 09:46:58
1061
原创 ScrollView嵌套ListView高度计算
//方法一://此方法需在ListView外边嵌套一个线性布局 listview = (ListView) findViewById(R.id.mylist); 调用 setListViewHeight(listview); private void setListViewHeight(ListView listView) {
2016-04-15 09:35:15
399
原创 ellipsize实现跑马灯总结
首先我们要实现走马灯这样一个效果,通常来说都是在TextView这个控件中来实现的,而且其中的文字一定是单行显示,如果多行显示,那走马灯效果也就失去了存在的意义。另外,在EditText中使用走马灯没有必要,也不合理,实际上对于EditText来说android:ellipsize这个属性只有对于设置在android:hint中的文字的时候是有用的,而且android:ellipsize="marq
2016-04-14 19:22:29
528
原创 ContentResolver读取音乐文件
//读取音乐封装类package com.bwei.utils;import java.util.ArrayList;import java.util.List;import android.content.ContentResolver;import android.content.Context;import android.database.Cursor;import androi
2016-04-14 15:05:06
1269
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人