
Android
杨飞扬
不甘平庸的菜鸟
展开
-
Android Aquery下载html修改后存储到本地
Several ways. You can use Element#append() to append some piece of HTML to the element.Document document = Jsoup.connect(url).get();Element head = document.head();head.append("");Or, use Ele转载 2014-10-23 14:53:22 · 710 阅读 · 0 评论 -
IabHelper crashes 整理
IabHelper crashes1. Android in-app billing: onServiceConnected is never called and bindService returns “false”Install your application on an Android-powered device.You cannot use the emulator原创 2018-01-19 09:55:14 · 903 阅读 · 0 评论 -
Android 保存文件路径
Android保存文件到本地路径问题常见路径例如: application 包名: com.my.company 项目名: chat /data/data == ///data/user/0getExternalFilesDir()方法可以获取到 SDCard/Android/data/你的应用的包名/files/ 目录,一原创 2017-05-15 10:11:06 · 10244 阅读 · 1 评论 -
Retrofit2 使用心得
三次使用 Retrofit2开始想做安卓的网络请求,发现安卓本身的httpURLConnection太过简单,使用有大量工作量,就想到使用第三方架包代替,通过了解选择了Retrofit. 它是结合rxjava一起使用的,比较方便,不过其中也遇到很多问题。第一次使用Retrofit引用depencies//Retrofitcompile 'com.squareup.retrofit2:retrofi原创 2017-05-11 11:48:14 · 414 阅读 · 0 评论 -
Android studio Errors
Error1. android stuido error updating changes: bad signaturefatalremove the .git/index filereset the index file, by git resetreload projectError2. 2 facets cannot be loaded.File -> Settings - > Pl原创 2016-07-08 11:13:08 · 639 阅读 · 0 评论 -
Android Studio 配置Android Annotation
主要配置project下的build.gradle新版的Android Studio 不像Eclipse, 它没有Annotation Processing。apply plugin: 'com.android.application'apply plugin: 'android-apt'buildscript { repositories { mavenCentral()原创 2015-11-27 10:27:21 · 684 阅读 · 0 评论 -
Summary of problems when coding
Git commit problemsWarning:(142, 62) Suspicious call to ‘HashMap.get’android git commit Warning:(3, 1) Default File templateRecyclerView ProblemWhen data changes, the view not change原创 2015-11-24 15:15:03 · 2224 阅读 · 0 评论 -
Android Studio 死机问题
分享Android Studio 死机问题解决经验从[Eclipse][6]改用[Android Studio][6]已经一年多了,每次有新版本就会升级,但这次升到[1.3.1][6]折腾的不轻,死机多次。网上找了一堆资料,卸载重装好几次。真心伤不起。原创 2015-08-12 13:27:36 · 5177 阅读 · 2 评论 -
Android Studio Package rename and error “Activity class does not exist”
最近被一个问题困扰很久:When using Android Studio, it gives me this error when I changed the package name from “org.company.old” to “org.company.new”:Android studio still shows message like:remote path: /data转载 2014-11-28 10:47:31 · 1524 阅读 · 0 评论 -
web链接跳转安卓app的问题
Load a web URLGoogle Now"open example.com"To open a web page, use the ACTION_VIEW action and specify the web URL in the intent data.ActionACTION_VIEWData URI Schemehttp:https转载 2014-10-14 11:36:12 · 1442 阅读 · 0 评论 -
nexus 5X update 8.0
1. nexus 5X update to 8.0下载工具,cmd进入命令行,打开文件所在位置https://dl.google.com/android/repository/platform-tools-latest-windows.zipadb version下载镜像,解压,解压后所有文件复制到tools文件目录下 8.0镜像adb devices显示设备连接...原创 2018-02-28 15:16:08 · 1454 阅读 · 0 评论