android
文章平均质量分 91
Heawill
这个作者很懒,什么都没留下…
展开
-
Android 网络技术
HttpURLConnection进行网络操作需要权限 : <uses-permission android:name="android.permission.INTERNET"/> //开启线程来发起网络请求 new Thread(new Runnable() { @Override public...原创 2018-10-14 08:52:02 · 334 阅读 · 0 评论 -
Intent知识总结
此文章为个人的知识总结,如有错误,欢迎指正.作用1.Intent(意图,目的)是android程序中各组件之间进行交互的一种重要方式,它不仅可以指明当前组件想要执行的动作,还可以在不同组件之间传递数据.2.Intent一般可以被用于启动活动,启动服务,发送广播等场景.3.Intent可以分为两种:显式Intent和隐式Intent.显式Intent显式Intent是程序内部...原创 2018-10-08 11:12:09 · 545 阅读 · 0 评论 -
Git命令个人记录
建立1.配置身份:git config –-global user.name “name”git config –-global user.email “xx@xx.com”2.查看身份:git config –-global user.namegit config –-global user.email3.定位:cdc:cd Users/xx/Android...原创 2018-11-18 21:14:54 · 1378 阅读 · 0 评论 -
TabLayout , ViewPager , Fragment
TabLayout一. 页面切换指示器 , 使用前导入Android Design包:implementation'com.android.support:design:23.3.0'二. 添加标签 //第一种方法: java代码中添加 TabLayout tabLayout = findViewById(R.id.tab); tabLayout.add...原创 2019-03-21 22:34:53 · 316 阅读 · 0 评论 -
利用VideoView制作一个专门播放视频的活动
import android.content.pm.ActivityInfo;import android.net.Uri;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.view.WindowManager;import android.widget.Med...原创 2019-03-21 23:59:13 · 180 阅读 · 0 评论