安卓第十一天笔记-Intent与inter-filter配置 Intent与inter-filter配置 1.Intent对象简述 Android应用中有包含三种重要组件:Activity,Service,BroadcastReceiver(另外还有一个ContextProvider)应用程序采用了一致的方式来启动它们---都是依靠Intent来启动的,Intent就是封装了程序想要启动的程序的意图,不仅如些,Intent还可用于与被启动组件交换信息 Activity: startActivit…
Logstash之filter: json filter: input{ stdin{ } } filter{ json{ source => "message" } } output{ stdout{ codec => json } 输入: {"name": "CSL", "age": 20} 输出: Grok filter: pattern: https://github.com/logstash-plugin…
安卓第十三天笔记-服务(Service) Servcie服务 1.服务概念 服务 windows 服务没有界面,一直运行在后台, 运行在独立的一个进程里面 android 服务没有界面,一直运行在后台,默认是运行当前的应用程序进程里面. 2.建立服务 建立一个类继承Service类 public class ServiceDemo extends Service { 在清单文件中注册service <service android:name="com.ithiema.servicequic…
安卓第十天笔记-fragment Fragment(片段) 一.Fragment简介 *Fragment是3.0引入的API,主要为了解决平板,大屏幕手机显示问题 *Fragment代表了Activity的子模块,因此可以把fragment理解成Activity的片段 *Fragment必须被嵌入Activity中使用 二.创建Fragment的步骤 创建一个类继承Fragment类或者其子类 重写Fragment中的一些onxxx方法 一般有三个方法要重写 .onCreate()系统创建Fra…
安卓第四天笔记-Sqlite 1.数据库的创建运行与更新 1.1.创建一个类继承SqliteOpenHelper 1.2.创建构造方法 /** * 数据库创建类 * @author 刘楠 * * 2016-2-20上午10:04:34 */ public class DbSqliteOpenHelper extends SQLiteOpenHelper { /** * * @param context 上下文 * @param name 数据库的名字如: students.db * @param…
[基于spark IM 的二次开发笔记]第一天 各种配置 http://juforg.iteye.com/blog/1870487 http://www.igniterealtime.org/downloads/source.jsp…
每日笔记---使用@ConfigurationProperties读取yml配置 参考地址  https://www.cnblogs.com/mycs-home/p/8352140.html 1.添加pom依赖 1 2 3 4 5 <dependency>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-configuration-processor<…
笔记-python-centos环境下安装配置 1.      准备工作 环境准备 centos6.5 mini,已有python 2.6.6 下载源码包 Python官网下载Gzipped source tarball(版本3.6.5) tar –xvf …… 安装环境 mkdir /usr/local/python3.6.5 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readl…
<!doctype html>[MyBatis笔记]mapper文件的配置以及说明 figure:last-child { margin-bottom: 0.5rem; } #write ol, #write ul { position: relative; } img { max-width: 100%; vertical-align: middle; } button, input, select, textarea { color: inherit; font: inherit; } i…
今天在学习安卓的过程中,遇到一个问题,就是用intent进行多次传值的话, 他永远是第一次的值 后来发现,intent接收数据被写到了onCreat();方法中,这时候finish();到上一个Activity的话,再进行intent传值回到被传值的Activity不会执行onCreat();方法. 所以如果要实现intent值的更新,需要将接收方法再写到onResume();这样即可完成对intent值的更新.…