android四大组件学习总结以及各个组件示例(1)
>什么是生命周期?
对象从创建到销毁的阶段,必须会执行的方法,这些方法就是生命周期的回调
Activity的7个方法以及作用:
* oncreate() activity被创建的时候调用的方法
> ui界面的初始化 setContentView()
* onDestroy() activity被销毁的时候调用的方法
> 界面退出之前的扫尾操作,短信发送器,退出前数据的保存。
* onStart() activity的界面用户可见
> 更新ui的操作,播放视频
* onStop() activity的界面用户不再可见
> 界面不可见,暂停视频播放
* onResume()
> 界面获取到了焦点,按钮可以相应点击事件
* onPause()
> 界面失去了焦点,按钮就不可以相应点击事件
* onRestart()
>activity被最小化了,并没有销毁,如果下次再去打开这个activity
>重新用户界面可见
Activity的生命周期:
###完整生命周期(entire lifetime)
onCreate-->onStart-->onResume-->onPause-->onStop-->onDestory
###可视生命周期(visible lifetime)
onStart-->onResume-->onPause-->onStop
###前台生命周期(foreground lifetime)
onResume-->onPause 以一个打怪的小游戏实现Activity的七种方法为例: 1.首先建立一个项目工程文件:这个项目工程要实现三个作用:演示Activty的七种方法、背景透明、锁定横竖屏; aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAIoCAIAAADYxfGuAAAgAElEQVR4nO2dfXgUx53n5588udvbu+PJZS/LbrL2Zr2EDT4IGMhl4nDZ5/aMs3t7cbxWjLxmIYndCbF9tokT41cERmSMSdxni7cQxEssIrBkCwMjYSOLF0u8GgvMy1iDXkbvLzOj0duohUB1f/RMT3V1VU+PRjPTVf37PPXwzPRUd9cwn6mpHtV3yoUAwDKvbX7bvEzusHsfmzbesWXvY9PSb6Er/UMAQJrsfWzalNiMQGhAMEBoQChAaEAoQGiAbxRFaWtr6+rqCoVC/f39IDTAN4qinDt3rqysbNu2bdu2bcuB0I++Ngsv2W8AIBKKopSVlbW3t0ej0Wg0mm2hCYNBaCBNFEXZsmWLavPIyEjGhb5Y/pxaEE3fHAjtl90ut+xP8SFKVbwmcdeAV3JJXvMjeiWXi3J2v+x2sYnVTxzeK7llP7FXsjPzjSr0yMjIy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sPPDx0Ust19r6TMp755seLz7Z3hfJdXv5IsUeGhvV2NZmZHOhR5Sxq+2hoiOX11dcfOWd+pfLPnlh/4Vn9338zB/PP11y/sk/nHt8z9kVu87+svTCucbeEQVmkwL2FhoAUgWEBoQChAaEQhN6aGgoEhkAoQG+UYUeHh6ORAaCwRAIDfCNOjmpvb19YGAgHLbZ9FGNQ/J3qCXX7QJshzp9dN++fXacPqpxSP7O2I2bRLn83gq+nc7Q39tSCJ4JiKIovRgUoRUA4IeIHorQTZZpjBMIBE6ePFlSUlJUVFRUVLQJw7gFEJ4iPSUlJSdPngykTqsFCKH/P6ooZ+FyxAcfAAAAAElFTkSuQmCC" alt="" /> 2.首先配置打怪的页面布局文件如下:
<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_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是main界面" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="启动second界面"
android:onClick="click"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="打怪"
android:onClick="click1"
/>
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="100" />
</LinearLayout>
3.然后就是配置MainActivity.java
package com.xunfang.activity; import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView; public class MainActivity extends Activity { private TextView tv ;
private int blood = 100 ; @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
System.out.println("界面被创建了");
//finish() ;
//拿到怪物的血槽
tv = (TextView) findViewById(R.id.tv) ;
} @Override
protected void onStart() {
super.onStart();
System.out.println("界面可以看到了");
} @Override
protected void onResume() {
super.onResume();
System.out.println("我获得焦点了");
} @Override
protected void onRestart() {
super.onRestart();
System.out.println("用户重启界面了");
} @Override
protected void onPause() {
super.onPause();
System.out.println("我失去焦点了");
} @Override
protected void onStop() {
super.onStop();
System.out.println("界面看不见了");
}
@Override
protected void onDestroy() {
super.onDestroy();
System.out.println("界面被销毁了");
}
public void click(View view){
Intent intent = new Intent(this,SecondActivity.class) ;
startActivity(intent) ;
} public void click1(View view){
//每点击一次,让怪物的血下降爱6点
blood -= 6 ;
//将血设回到怪物身上
tv.setText(blood + "") ;
}
}
3.配置AndroidManifest.xml,其中让系统的环境不在去敏感横竖屏的切换,代码是android:configChanges="orientation|screenSize|keyboardHidden"透明界面代码如下:android:theme="@android:style/Theme.Translucent", 如果想要设置apk的图标,就要这样调用设置,我调用的是系统的图标:android:icon="@android:drawable/arrow_up_float"具体代码如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xunfang.activity"
android:versionCode="1"
android:versionName="1.0" > <uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="16" /> <application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:icon="@android:drawable/arrow_up_float"
android:label="我是主界面"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@android:style/Theme.Translucent"
>
<!-- 透明界面 Translucent:透明
android:theme="@android:style/Theme.Translucent"
-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.xunfang.activity.SecondActivity" >
</activity>
</application> </manifest>
4.Second.xml与SecondActivity.java全部是系统默认生成的,不用去改动,然后可以直接测试去看效果怎么样了。
2.content providerandroid平台提供了Content Provider使一个应用程序的指定数据集提供给其他应用程序。这些数据可以存储在文件系统中、在一个SQLite数据库、或以任何其他合理的方式,
整体思路:
##对文件的内容提供者
1. 有一个应用程序,带一个私有的文件,需求是暴露这个私有的文件。
2. 写ContentProvider的一个子类
3. 定义匹配规则
* 定义匹配器 UriMatcher
* 定义匹配规则 mUriMatcher.addURI("com.xunfang.content", "文件名", SUCCESS);
4. 重写openFile方法
5. 在清单文件中声明内容提供者节
<provider
android:name="com.xunfang.provider.DBProvider"
android:authorities="com.xunfang.sql"
></provider>
下面就通过保存数据的例子来讲解:
1.新建项目,如下图所示
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAAFMCAIAAACRfx18AAAgAElEQVR4nO2daXgU15nv60ue3Dt37r08uZnrYSYZOxmP44lzjcGgyGWH61linEwSO5kQG48ZY8CVkMQ3BtthtREyixAiLtuAt4DlRVjGEggwDbLBbEasBgltjQptaG+ppdZerZZ07oeqrjrn1DlV1Wr1UtXn/7wPVJ8+y1tVvz59qlRvvxyIgZ7acgdssRiCKXUky3JTU1NbW5vf7++BFAgElH819fb29vX1+Xw+AAA36X5gKDOymaJUwsguK1ypGCBxPLlkSyIveCzqeASOFyXiG2q5JPIcKrhTj6C81KoDSeSJPdLKbcojcBRp7tCroD6HdylcRj0G0F5Z7o/57kkiz1HPBTZK+JBOTIkhu7RgJfwyMrI9An6C9FNJPhJkss3OP9QXTDbcC/pSOws0so2fC47jeFGSRJ6GEyC+RznftE8vETTNGZxzKth0xkwPC6UzizlE3aCPSv8I6oor2dvXbd6+bvP2dVkjHbtGOnYN1e/oKtsCwhxvX5elGKCSLYk8x/GCgHzu9WPpEbRzRQQJZdZsHlKPKgS/4DGZsxUmKB8VfBQNIGVvqD5QTqzlnG31idVGxAdAX5sewfB4yFi8KGGt1E+uhbSjgYJt9XmyYHvyyT5+/HhWVhbxrc2rt2545RzoPYUYACCydTb9G03/LCNTB/mFegARvjyCeqT1o2o9ZyNTK3HOtj69htNEPXWWczb6iSWtFTyYO+YgmQGG7y0yNvyCMJUb/NRmHBuHx3qtMslkHzt27I477rjttttoFZYtfQ10HsQNAADdGwETJRv6koKPpGFZgExu0PyJzPf64pMXPSJPnbOVYnOyDW5afpnSvtTNJ2SlCewoLwg8Lwg8VoVwGD0CJ3iMuFAGNHyKJJHnBQFxG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tIvyJCcq+C8qt1P7T5BOI3v1sw+vfu7h1c89tOrZh5SN8PZDq599ePWzD1HaRT19JSb4b6Juq2uT1J2wgePIZmKyKUY2kzvFyGZypxjZTO4UI5vJnWJkM7lTDiP7QPZdREuUP0xJK+eRTYyDjC3cbvqbh5v2xVQOI3tv1nRaHGQM4XYTDW7aF1M5jOw9G+8elEOv5J1d9/rRp9cX/ucf34fjIPdsvDtRjqFKtic2ks2feMhhZOetn2kSB5m3YWaiHEOVbCQlmz/xkMPIzs2cFRgMvZJ3Nif39Pq3jq959cizmw/8NrNg0aoPAwOh3MxZlHYJDyiM2gdqc6JLcJ+89sRL+PFUs30hPu7qRDmM7LfXppnEQb699vuUdskSUBhFLCatOdElrE8spIDe0EWTu8PI3rEm3RcIEudsXyC4Y006pV0SBhRG6AOteaQ5IM33BQ8Gc7AcRra46h6TOEhx1T2UdkkYUBihDyZkR5QD0nxfoPpO59thZGcvv7e5izxnN3cFtyy/l9IuWQIKo4jFpDW3k1GSthoxNJREkXRt4UQ5jOwNz99nEge54fn7KO2SIaAwylhMWnOiS3ifqD9m+0K8RHWiJkb2/wcKd74YyzDxjgAAAABJRU5ErkJggg==" alt="" />
2.配置MainActivity.java,如下所示:
package com.xunfang.openfile; import java.io.FileNotFoundException;
import java.io.FileOutputStream; import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast; public class MainActivity extends Activity {
private EditText name;
private Button save;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
initview();
setLister();
} private void initview() {
name = (EditText) findViewById(R.id.et_name);
save = (Button) findViewById(R.id.btn_save);
} private void setLister() {
save.setOnClickListener(new OnClickListener() { @Override
public void onClick(View v) {
String uname = name.getText().toString().trim();
String path = getFilesDir()+"/private.txt";
try {
FileOutputStream fos = new FileOutputStream(path);
fos.write(uname.getBytes());
fos.close();
Toast.makeText(getApplicationContext(), "保存成功", 0).show();
} catch (Exception e) {
e.printStackTrace();
}
}
});
} }
FileProvider.java配置如下:
package com.xunfang.FileProvider; import java.io.File;
import java.io.FileNotFoundException; import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import android.os.ParcelFileDescriptor; public class FileProvider extends ContentProvider {
private static final UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);
private static final int SUCCESS = 1;
static{
matcher.addURI("com.xunfang.openfile", "private.txt", SUCCESS);
} @Override
public boolean onCreate() {
return false;
} @Override
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
return null;
} @Override
public String getType(Uri uri) {
return null;
} @Override
public Uri insert(Uri uri, ContentValues values) {
return null;
} @Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
return 0;
} @Override
public int update(Uri uri, ContentValues values, String selection,
String[] selectionArgs) {
return 0;
} @Override
public ParcelFileDescriptor openFile(Uri uri, String mode)
throws FileNotFoundException {
if(matcher.match(uri) == SUCCESS){
File file = new File(getContext().getFilesDir(), uri.getPath());
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
}else{
return super.openFile(uri, mode);
}
} }
最后在AndroidMainfest.xml中
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAByCAIAAAA+pZX5AAATbUlEQVR4nO2dO3KzOhTHWU+WQJNNZAkZ9pAKmvRumFRp0zBp3XrIfGtw4+JOahahW8iAHkcPv2Pz+42L+wGSjkQu56+jV6FAKaWG1UdTfPzsbm3Hlfnt2+e6/RpubQcAANwDxa0NgNux7Z7r+rVHMgAAQBaIhiXyr6uf6/q5rt+3tzYFAADuB0QDAAAAZIFoAAAAgCwQDQAAAJAFogEAAACyQDQAAABAFoiGP8L2va4ztkzYvrNIEgAAbgSi4Y+AaAAAgL8OouG+QDQAAMDNWLBoGH7K5mN1Z/4X0QA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AAAGSBaAgxrD7+zlER2/e6fq7br8Suktv3un7t2XoSAAAuAqIhwPBTNk31Vw6LQDQAAMDtQTTIrL//TpghH0QDAABckAWLhuGnbD5WsofdVs09HjF1RtHAIVsAAOCyUNEQP6t69/NRNN9r48q/rn5u+9/9MEH9XNfPnZF26F/r9mtQv327v+sOJRgJ6/p9TKqff3es2HbGRTlhKOdnVzSYd22TUjZznDcAADgsUTSsv5siFkgYVh+us/zX2W5721nueehfLSUxfLVaZAgPayc9/nP77uiPfVndP8coS0lMlvavVnIn0mBl/tu3liyI27zP4Lto7nGYBgAALsLSRMO2apoiOCqhH/n2H9CiwfDZtot1nbfpoQVnbMqCf53TxQ8MMUiiYYx/yGk98TF8tYaRMZsNhp+yaZy4CwAALJMliYYs/yevtPR7/9aVoX+Vxw72txwRYLln+wHZcytRNPhRClM0BGIYttCRbfbKTistAABYAAsSDXpUIiEaAistfdHw27f5okGatTApAzMUYQcD3CSCaPBnMFiiQfhl2OyVXTUN8xsAAGBBokEpNfm/0AYM629ZVVww0qAMDRHJ5zjRIOqPpM3WYwxPAADAnqWJBqViEyGDKy1z5gcEHLAQPAjNRfjtW3cq4vyILxrcnO0pln4pjl0ZooGJkAAAYLBE0aAC6wl3Px+hkXtHNLizF+MOWFo94Tz827fPbffehndZkCZCmhELIQdvqqNFSjSw5BIAABwWKhqU8jd3ElZaTkxLLvc/pwef7LVvO2FWgZeDMAXSSijsuDAb1m117CG8T4O9i0PCZjZ3AgAAlwWLBgdppeWEvHcCAADAkkA0aBJnWiIaAAAAEA1ZIBoAAAAQDVkgGgAAABANAAAAkMX/Q5h+i8X1HKQAAAAASUVORK5CYII=" alt="" />
就可以了。
service、broadcast receiver两个组件将在下篇博文仔细讲解!
android四大组件学习总结以及各个组件示例(1)的更多相关文章
- android四大组件学习总结以及各个组件示例(2)
上篇博文讲解了activity.content provider,此篇博文来仔细总结service.broadcast receiver: 3. Service >什么是服务?>windo ...
- Android 四大组件学习之Server一
上次学习了Android四大组件Activity之后,我们深刻理解了Activity.这次我们学习四大组件Service. Service与Activity的级别是一样的,都是Android系统不可缺 ...
- Android成长日记-Android四大组件之Service组件的学习
1.什么是Service? Service是Android四大组件中与Activity最相似的组件,它们都代表可执行的程序,Service与Activity的区别在于:Service一直在后台运行,它 ...
- Android四大组件之一Service介绍-android学习之旅(十二)
基本概念: service是android四大组件之一,运行在后台执行耗时操作,并不提供用户界面.其他组件如acticity可以通过startService启动该组件,也可以通过bindService ...
- Android的四大组件学习
一.Linearlayout : 线性布局 1. android:orientation="vertical" //控件的方向控制,vertical : 垂直布局 , ...
- Android四大组件之一“广播”
前言 Android四大组件重要性已经不言而喻了,今天谈谈的是Android中的广播机制.在我们上学的时候,每个班级的教室里都会装有一个喇叭,这些喇叭都是接入到学校的广播室的,一旦有什么重要的通知,就 ...
- Android四大组件之——Activity的生命周期(图文详解)
转载请在文章开头处注明本博客网址:http://www.cnblogs.com/JohnTsai 联系方式:JohnTsai.Work@gmail.com [Andro ...
- Android 四大组件之“ BroadcastReceiver ”
前言 Android四大组件重要性已经不言而喻了,今天谈谈的是Android中的广播机制.在我们上学的时候,每个班级的教室里都会装有一个喇叭,这些喇叭都是接入到学校的广播室的,一旦有什么重要的通知,就 ...
- Android四大组件之一 -- Service详解
相信大多数朋友对Service这个名词都不会陌生,没错,一个老练的Android程序员如果连Service都没听说过的话,那确实也太逊了.Service作为Android四大组件之一,在每一个应用程序 ...
随机推荐
- linux下安装apache最常见的报错解决
报错如下: Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, ...
- 【Android Developers Training】 68. 序言:添加动画
注:本文翻译自Google官方的Android Developers Training文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好. 原文链接:http://developer ...
- ReactNative开发工具有这一篇足矣
ReactNative系列文章: 1.<逻辑性最强的React Native环境搭建与调试> 2.<ReactNative开发工具有这一篇足矣> 正文 React Native ...
- Vijos 1012 清帝之惑之雍正 平面最近点对(分治)
背景 雍正帝胤祯,生于康熙十七年(1678)是康熙的第四子.康熙61年,45岁的胤祯继承帝位,在位13年,死于圆明园.庙号世宗. 胤祯是在康乾盛世前期--康熙末年社会出现停滞的形式下登上历史舞台的.复 ...
- servlet导出Excel
package khservlet; import java.io.IOException;import java.io.PrintWriter;import java.sql.*; import j ...
- 总结两种动态代理jdk代理和cglib代理
动态代理 上篇文章讲了什么是代理模式,为什么用代理模式,从静态代理过渡到动态代理. 这里再简单总结一下 什么是代理模式,给某个对象提供一个代理对象,并由代理对象控制对于原对象的访问,即客户不直接操控原 ...
- 003.ASP.NET Core tutorials--【Asp.net core 教程】
ASP.NET Core tutorials Asp.net core 教程 2016-10-14 1 分钟阅读时长 本文内容 1.Building web applications 构建web应用 ...
- python学习笔记——列表操作
python列表操作——增 append:追加一条数据到列表的最后 name = ["Zhangsan","XiongDa","Lisi"] ...
- win10 Internet Explorer 11 停止工作处理
win10 Internet Explorer 11 停止工作处理:
- list-列表功能介绍
叨逼叨:列表是可变的,针对列表的改变,变得是列表本身,和字符串区别开来 #1.追加 # name = ['alex','eric','seven','qiqi'] # v = name.append( ...