- 博客(5)
- 收藏
- 关注
原创 我的Android记录(WebView&permissiom)
WebView可视为一个App内置的浏览器,可用于嵌入HTML5网页。WebView能联网需要在AndroidManifest.xml中获得上网权限: <uses-permission android:name="android.permission.INTERNET"/>AndroidManifest.xml文件:<?xml version="1.0" encoding="utf-8"?> <ma
2017-01-17 11:15:38 561
原创 Android记录三(绑定Service进行通信)
Service类:package com.example.wlb.launchlocalapp;import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder;public class MyService extends Service {
2017-01-10 17:02:38 253
原创 我的安卓记录二(service)
service在后台运行 生命周期:onCreate()–>onStart()–>onDestroy() 1、新建一个service类package com.example.wlb.launchlocalapp;import android.app.Service; import android.content.Intent; import android.os.Binder; import a
2017-01-09 08:56:02 235
原创 android记录一
Android生命周期: onCreate()–>onStart()–>onResume()–>onPause()–>onStop()–>onRestart()–>onDestroy() 在java文件夹中启动activity,主要语句:获取 button 的 ID :findViewById(R.id.btstartanotherArt)设置监听器:findViewById(R.id.butt
2016-06-01 14:57:24 170
转载 Android资源文件简介
目录(?)[-] 一 Android资源文件简介 Android应用资源的作用 1 Android项目中文件分类2 资源文件作用 Android中资源分类详解 1Android资源分类2 Android资源详解 Android中资源的使用 1 Java代码访问清单资源2 Java代码访问原生资源3 XML文件中使用资源 二 Android 字符串 颜色 尺寸
2016-05-25 10:26:53 298
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人