-
Android 珍藏(二)
一、如何控制Android LED等?(设置NotificationManager的一些参数) 代码如下: final int ID_LED=19871103; NotificationManager nm=(NotificationManager)getSystemServ
16lz2021-01-2339 -
Android开发:调用camera API 创建MediaRecorder
1. add below three permission into AndroidManifest.xml file uses-permission android:name= "android.permission.CA
16lz2021-01-2342 -
Top Android App使用的组件 2
微信_355 SQLCipher:info.guardianproject.database:Android数据库加密 微博_650 点信传媒:cn.dx:广告平台 Apache HttpClient:org.apache.http Vitamio:i
16lz2021-01-2385 -
转:android 各种 Adapter
ListAdapter : http://www.cnblogs.com/over140/archive/2010/12/06/1897436.html BaseAdapter:http://www.cnblogs.com/over140/archive/2010/12/03/189512
16lz2021-01-2334 -
ERROR: Could not find com.android.tools.build:gradle:3.3.1如何解决
1.完整报错如下: ERROR: Could not find com.android.tools.build:gradle:3.3.1. Searched in the following locations: - https://jcenter.bintray.com/co
16lz2021-01-2341 -
Android网络技术
Android网络技术 查看当前网络连接 首先要得到ConnectivityManager对象,然后调用getActiveNetworkInfo()方法,返回一个NetworkInfo对象。 ConnectivityManager manager= (Connectivit
16lz2021-01-23102 -
android gdb使用
http://soft.zdnet.com.cn/techupdate/2008/0301/748297.shtml http://wiki.chinaunix.net/index.php?title=GDB_Manual&diff=3166&oldid=0 http://blog.cs
16lz2021-01-2333 -
Android在代码中设置控件的drawableLeft,drawableRight,drawableTop,drawableBottom。
Android在代码中设置控件的drawableLeft,drawableRight,drawableTop,drawableBottom。 出自 http://www.cnblogs.com/tony-yang-flutter/p/3740633.html
16lz2021-01-23113 -
Android中共享全局变量
MyApp.java: public class MyApp extends Activity {/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstance
16lz2021-01-23115 -
android调用手机铃声
得到默认闹铃铃声: RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); 调用文件选择,选择铃声文件: Intent intent = new Intent(Intent.ACTION_GET_CONTENT);intent.se
16lz2021-01-23106 -
【Android自学笔记】Android获取手机和存储卡上的图片
/** * 通过uri获取文件的绝对路径 * @param uri * @return */ protected String getAbsoluteImagePath(Uri uri) { // can post image String [] proj={MediaStore.Image
16lz2021-01-23111 -
编写使用root权限的android应用程序
转载自:http://dev.10086.cn/cmdn/bbs/thread-37036-1-1.html public static boolean runRootCommand(String command) {Process process = null;DataOutputStream
16lz2021-01-23104 -
Android中SQLite数据库中query或者rawquery查询失败闪退问题
最近在学Android,在使用SQLite数据库的时候,出现了一个问题就是: 先说说我要实现功能: 查找数据库中是否有某个用户和密码。 最开始我是用的rawquery查询数据,看代码 查询: Cursor cursor = db.rawQuery("select * from us......
16lz2021-01-2394 -
2021-01-09
android首页制作 分析 1.根据页面分析使用几个部分组成 分析好页面,制作首页布局代码如下 ?xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.androi
16lz2021-01-2346 -
android intent activity参数传递
1.java Intent intent=new Intent(MainActivity.this,SecondActivity.class);Bundle bundle=new Bundle(); bundle.putString("mainstr", "第一个acti
16lz2021-01-23104 -
android 实现自由移动的悬浮按钮
android 实现自由移动的悬浮按钮 实现原理 主要是通过android中的WindowManager中的addview()把view加载进来,设置WindowManager.LayoutParams windowManagerParams的相关属性,例如x,y;在view的o......
16lz2021-01-23108 -
Android 判断当前设备是手机还是平板的最有效的方法
1. 前言 如果你百度一下,如何判断当前设备是手机还是平板,搜索到的结果一般都是下面这个。 /** * 是否是平板 * * @param context 上下文 * @return 是平板则返回true,反之返回false */public static boolean isP......
16lz2021-01-23142 -
Android创建Alert框的方法
本文实例讲述了Android创建Alert框的方法。分享给大家供大家参考。具体如下: package com.akwolf.android;import android.app.Activity;import android.app.AlertDialog;import androi
16lz2021-01-23115 -
android中属性动画 ObjectionAnimation
关于动画: android中动画包括 View Animation、Drawable Animation和属性动画Property Animation ● View Animation较简单的动画包含平移
16lz2021-01-23118 -
Python获取android设备cpu和内存占用情况
功能:获取android设备中某一个app的cpu和内存 环境:python和adb 使用方法:使用adb连接android设备,打开将要测试的app,执行cpu/内存代码 cpu获取代码如下:(输入参数为脚本执行时间) # coding:utf-8'''获取系统total c......
16lz2021-01-23146 -
android中文api:Manifest.permission group
Manifest.permission group: 英文原文:http://developer.android.com/reference/android/Manifest.permission_group.html版本:Android 4.0 r1译者署名:Zhao Xing译
16lz2021-01-23113 -
国内访问android开发者网站
1 android studio最新版本下载地址:https://developer.android.google.cn/studio/preview/?utm_source=android-studio 2 android studio源码(包含移植、调整、兼容)
16lz2021-01-2392 -
cts vts 介绍
CTS全称Compatibility Test Suite兼容性测试工具,为了保证开发的应用在所有兼容Android的设备上正常运行,并保证一致的用户体验,Google制定了CTS来确保设备运行的Android系统全面兼容Android规范,Google也提供了一份兼容性标准文......
16lz2021-01-2356 -
Android - 获取设备信息的工具类( DeviceUtil)
注解: 封装了安装常用的设备信息查询的工具类: 设备宽度、设备高度、SD卡判断、是否有网、版本名称、版本号、唯一标识、手机品牌、手机型号、API等级、Android版本、App进程Id、App进程Name、Meta-Data值、内网ip、公网ip(请求淘宝接口);
16lz2021-01-23126 -
android各种对话框总结笔记
确定取消对话框(带图标) //(上下文,主题)new AlertDialog.Builder(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT) .setTitle("标题").setMessage("内容").setIcon(R.dra
16lz2021-01-2396