正文内容加载中...
posted @ 2018-11-15 11:37 wanqi Views (158) Comments (0) Edit
解决步骤: 1:Android studio开发工具:File -> Invalidate caches / Restart;选择Invalidate and Restart关闭 Android Studio2:删除 “/home/{username}/.gradle” 文件夹3:重启android Read More
posted @ 2018-10-11 17:01 wanqi Views (5640) Comments (0) Edit
一、修改运行内存 进入项目,菜单栏-help-Edit Custom VM Option Paste_Image.png 添加或修改为: -Xms2048m -Xmx2048m -XX:MaxPermSize=2048m -XX:ReservedCodeCacheSize=1024m 数值可自行修改 Read More
posted @ 2018-07-12 10:30 wanqi Views (200) Comments (0) Edit
Exception in thread "main" java.lang.StackOverflowError at java.util.ArrayList$SubList.rangeCheckForAdd(Unknown Source) Read More
posted @ 2018-07-03 16:48 wanqi Views (496) Comments (0) Edit
该文被密码保护。
posted @ 2018-07-03 11:50 wanqi Views (2) Comments (0) Edit
当编译出现如下问题(版本不兼容): Android dependency 'com.android.support:support-fragment' has different version for the compile (25.3.1) and runtime (26.1.0) classp Read More
posted @ 2018-06-20 18:35 wanqi Views (1158) Comments (0) Edit
Class定义常量方法(推荐方法) //final修饰符 public final class Constants { //私有构造方法 private Constants() {} public static final int ConstantA = 100; public static fin Read More
posted @ 2018-05-17 15:58 wanqi Views (16786) Comments (1) Edit
http://blog.csdn.net/u010856630/article/details/51678745 转载请注明: http://blog.csdn.net/u010856630/article/details/51678745 1、下载源码 前期准备: 安装Ubuntu, 安装 git Read More
posted @ 2017-09-12 17:26 wanqi Views (272) Comments (0) Edit
链接:http://pan.baidu.com/s/1pKx7srp 密码:8fzmmultTool工具将加固后的母包,用鼠标拖进多渠道打包工具,并根据情况选择打包参数。图中这段参数是修改 AndroidManifest.xml 里的结点,将 android:name 属性 为 UMENG_CHAN Read More
posted @ 2016-03-23 19:16 wanqi Views (245) Comments (0) Edit
http://blog.csdn.net/zhaokaiqiang1992/article/details/19921703 android中的组件Activity在manifest.xml文件中可以指定参数android:ConfigChanges,用于捕获手机状态的改变。 在Activity中添 Read More
posted @ 2016-01-30 21:35 wanqi Views (8366) Comments (1) Edit
http://blog.csdn.net/ichuzhen/article/details/8241847Ubuntu环境, 假设这台机器名字叫abc(机器的hostname), 每次执行sudo 就出现这个警告讯息:sudo: unable to resolve host abc虽然sudo 还是... Read More
posted @ 2016-01-26 15:27 wanqi Views (8412) Comments (0) Edit
gedit /etc/nginx/sites-enabled/default location /hlstest { types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias /home/wanqi/work_pl... Read More
posted @ 2016-01-26 14:44 wanqi Views (289) Comments (0) Edit
ffmpeg -i Sunshine.mp3 -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mpegts output%03d.... Read More
posted @ 2016-01-19 19:50 wanqi Views (671) Comments (0) Edit
http://www.oschina.net/code/snippet_209431_7358wc -l $(find . -type f -name '*.java') Read More
posted @ 2016-01-14 14:14 wanqi Views (334) Comments (0) Edit
http://stackoverflow.com/questions/12777435/disable-multi-finger-touch-in-my-appandroid:splitMotionEvents="false" Read More
posted @ 2015-11-26 19:43 wanqi Views (163) Comments (0) Edit
http://blog.csdn.net/huangxiaohu_coder/article/details/8497286在原生Android下编译APK,编译没有问题,但是在运行的时候经常出现如标题所描述的异常,然后整个程序Crash掉...... 我遇到该问题常常都是因为修改了资源文件所引起,... Read More
posted @ 2015-11-24 09:57 wanqi Views (2774) Comments (0) Edit
int currentapiVersion = android.os.Build.VERSION.SDK_INT; if (currentapiVersion >= android.os.Build.VERSION_CODES.HONEYCOMB) { ... Read More
posted @ 2015-11-23 16:45 wanqi Views (1061) Comments (0) Edit
http://stackoverflow.com/questions/25178329/recyclerview-and-swiperefreshlayout23down votewrite the following code inaddOnScrollListenerof theRecycler... Read More
posted @ 2015-11-19 14:43 wanqi Views (2676) Comments (0) Edit
http://www.heapoverflow.me/question-webview-loadurlurl-headers-not-working-in-android-31203905It's beceause of Cookie Policy, to fix it, you should ad... Read More
posted @ 2015-11-13 23:45 wanqi Views (2003) Comments (0) Edit
http://blog.csdn.net/wulianghuan/article/details/8644144国内某金融企业的一道面试题:如何在代码中获得一个ImageVIew的高度和宽度?相信很大一部分人,会直接想到用imageview.getWidth() 和imageview.getHeig... Read More
posted @ 2015-11-12 20:43 wanqi Views (1867) Comments (0) Edit
http://blog.ibireme.com/2015/11/02/mobile_image_benchmark/图片通常是移动端流量耗费最多的部分,并且占据着重要的视觉空间。合理的图片格式选用和优化可以为你节省带宽、提升视觉效果。在这篇文章里我会分析一下目前主流和新兴的几种图片格式的特点、性能分... Read More
posted @ 2015-11-12 11:26 wanqi Views (264) Comments (0) Edit
http://blog.csdn.net/csdn_ask/article/details/8640994原问题来自于CSDN问答频道,更多解决方案见:http://ask.csdn.net/questions/903原问题描述:xml中的textView:[java]view plaincopy如... Read More
posted @ 2015-11-04 10:38 wanqi Views (179) Comments (0) Edit
http://blog.csdn.net/jiguangcanhen/article/details/39006197同步的方式:1)首先定义要接口。注解Get表示使用的Get请求方式,{user}代表要被替换的数据public interface GitHubService { @GET("/us... Read More
posted @ 2015-11-03 16:35 wanqi Views (8058) Comments (1) Edit
http://www.jb51.net/article/65510.htm今天来给大家介绍一个非常有用的Studio Tips,有些时候我们在一个方法内部写了过多的代码,然后想要把一些代码提取出来再放在一个单独的方法里,通常我们的做法是复制粘贴,现在我来教给大家一个非常简洁的方法,先看下gif演示吧... Read More
posted @ 2015-11-02 19:25 wanqi Views (461) Comments (1) Edit
http://www.oschina.net/question/1256646_123691http://bbs.csdn.net/topics/360005140http://stackoverflow.com/questions/5421777/deserialize-java-generics... Read More
posted @ 2015-10-29 14:33 wanqi Views (1280) Comments (0) Edit
http://blog.csdn.net/zhouchangshi/article/details/44454695Android开发中遇到网络连接问题,要找WebView中显示一个静态的网页, 结果 ---- >logcat输出: "[INFO:CONSOLE(12)] "Not allowed ... Read More
posted @ 2015-10-27 20:32 wanqi Views (2068) Comments (0) Edit
android studio 默认是没有开启debuggable 功能的,在tools里打开该功能即可,Tools->Android->Enable ADB Integration。刚设置完之后可能不会立马出现效果。记得在设备上重新安装一遍自己的程序就OK了。http://www.mamicode.... Read More
posted @ 2015-10-15 14:34 wanqi Views (330) Comments (0) Edit
http://blog.csdn.net/freesonhp/article/details/25904047在平时我们编程的时候,经常会用到倒计时这个功能,很多人不知道Android已经帮封装好了一个类,往往都自己写。现在发现了这个类,大家共享一下:在一个TextView不断显示剩下的时间,代码如... Read More
posted @ 2015-10-14 17:28 wanqi Views (483) Comments (0) Edit
git checkout -b fix/base //创建分支git branch -av 查看所有分支git checkout master //切换分支 Read More
posted @ 2015-10-12 10:15 wanqi Views (227) Comments (0) Edit
http://www.cnblogs.com/mayongsheng/p/4387109.htmlhttps://github.com/awslabs/aws-sdk-android-samples/issues/26最近使用google的Volley框架遇到一个下载图片的异常com.android... Read More
posted @ 2015-10-09 18:08 wanqi Views (11187) Comments (0) Edit
http://stackoverflow.com/questions/10849552/update-viewpager-dynamicallyif you want to switch out the actual fragments that are being displayed, you n... Read More
posted @ 2015-10-09 13:54 wanqi Views (489) Comments (0) Edit
http://blog.csdn.net/zrzlj/article/details/80506331)需要在AndroidManifest.xml文件中声明需要使用HardwareAccelerate, 可以细化到Activity级别,如果不需要的View可以声明不要用加速,但是需要在代码中做,具... Read More
posted @ 2015-09-29 10:19 wanqi Views (250) Comments (0) Edit
retrofit-1.7.1依赖以下包okhttp-2.0.0okio-1.0.0okhttp-urlconnection-2.0.0ExtCertPathValidatorException: Could not validate certificate: null 是因为没有okio jar 包 Read More
posted @ 2015-09-26 14:19 wanqi Views (529) Comments (0) Edit
http://www.eoeandroid.com/thread-275485-1-1.html很多同学都安装了Android Studio,但是发现中文是乱码,其实这个很好解决的。在IDE里点击File,选择Settings...快捷键是Ctrl+alt+s在打开的窗口中,找到IDE Settin... Read More
posted @ 2015-09-20 21:08 wanqi Views (654) Comments (0) Edit
http://blog.csdn.net/shimiso/article/details/298260731、dip与pxAndroid工程师在写页面时,margin值的单位是dip,而视觉设计师通常情况下是通过px来控制margin值的,不同单位之间的差别是什么呢?看下面的参数。在WVGA(800... Read More
posted @ 2015-09-09 19:07 wanqi Views (875) Comments (0) Edit
http://jingyan.baidu.com/article/2f9b480d6d42ce41cb6cc2cc.html我不怎么会说话,就简单明了的说吧!当我们想删除一个文件时提示无法删除,有些原因是被某个程序占用了,关了相关程序就可以删除了不过遇到下面的情况该然后删除呢?无法删除现象12我想过... Read More
posted @ 2015-09-07 17:17 wanqi Views (120) Comments (0) Edit
http://www.b3a4a.com/?id=71//https://login.xx.cn/mobile/login?access_token=A7E3D8CC98776F7C16F328B672221140&openid=40AB4CA325199EC7EF158590A3765CF2&si... Read More
posted @ 2015-09-01 16:29 wanqi Views (2260) Comments (0) Edit
http://www.kwstu.com/ArticleView/android_201410252131196692错误描述:Error: duplicate files during packaging of APK D:\work\workspace\XXXX\build\apk\XXX-de... Read More
posted @ 2015-09-01 13:44 wanqi Views (2185) Comments (0) Edit
http://blog.csdn.net/liang5630/article/details/46366901android studio常用插件,可极大简化开发,增强开发效率。不懂安装studio插件,看参考博文:android stuido插件安装:http://blog.csdn.net/li... Read More
posted @ 2015-08-26 13:40 wanqi Views (281) Comments (0) Edit
http://keepcleargas.bitbucket.org/2013/10/12/android-App-Traffic.html安卓App流量统计12 OCT 2013android流量简介流量统计文件:路径/proc/net/dev如上图: lo 为本地流量, rmnet0 为3g/2g... Read More
posted @ 2015-08-25 17:09 wanqi Views (500) Comments (0) Edit