![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
intergameover
这个作者很懒,什么都没留下…
展开
-
已经Root过的手机上查看SQLite数据库文件
DDMS下文件浏览器查看 /data/是空的,因为没有授予root权限。授权方法:1、运行cmd,切换到android-sdk目录,运行adb.exe,加上参数shell,出现#号就代表进入了shell命令模式,注意adb要在Android模拟器运行时才能进入shell(用手机的话,就是手机已经连接到系统中才行)。我的小米2,出现$符号,说明是普通用户。2.更改 /data 和原创 2013-06-16 15:41:21 · 2386 阅读 · 0 评论 -
adb shell 运行activity
开发中,如果一个activity不是luncher,原创 2014-09-24 22:06:22 · 3117 阅读 · 0 评论 -
安卓Permission
访问SDcard原创 2014-10-14 08:53:31 · 349 阅读 · 0 评论 -
Ubuntu 15.10下android studio 1.5,新建android项目,gradle build running永不停止
新装的android studio,SDK也更新最新了。新建的一个项目,只有一个空的Activity,不能编译,gradle build running一直在转。解决方法:sudo apt-get install lib32z1原创 2015-12-05 12:07:23 · 968 阅读 · 1 评论 -
关于View的ScrollTo, getScrollX 和 getScrollY
[FROM] http://blog.csdn.net/linmiansheng/article/details/17767795当利用 Scroller 去滑动屏幕或者扩展 ScrollView 的时候,总是会用到 getScrollX 和 getScrollY 去获取当前View 滑动到的位置,那么getScrollX() 和 getScrollY() 获取的到底是什么呢?转载 2016-03-01 11:49:25 · 351 阅读 · 0 评论 -
Android http请求
HttpUrlConnection VS HttpClient官方推荐HttpUrlConnection标准访问http://developer.android.com/training/basics/network-ops/connecting.html try { URL url = new URL(myurl); HttpURLConnection con原创 2016-04-26 14:30:46 · 367 阅读 · 0 评论 -
在没有root的手机上直接查看sqlite数据库内容
android studio :用debug运行app。terminal: adb shellrun-as com.example.app.(app的package名)cd databaseslssqlite3 xxx.dbhttp://stackoverflow.com/questions/19194576/how-to-view-the-sqlite-database-in-devi原创 2016-05-13 09:16:22 · 6066 阅读 · 0 评论 -
Unable to use IntelliJ IDEA keyboard shortcuts on Ubuntu
[From]http://askubuntu.com/questions/412046/unable-to-use-intellij-idea-keyboard-shortcuts-on-ubuntu As a bit of reading taught me that Intellij IDEA is a keyboard-centric IDE. What it means, is that转载 2016-05-03 09:42:33 · 731 阅读 · 0 评论 -
Android Studio 小技巧
自动导入java包shortcut:ctrl+shift+a(Find Action),输入auto import: find the following and turn on it:Auto import:java:Add unimbigous import on the fly改名 shift+F6复制当前行并粘贴到下面 ctrl+d智能补全 ctrl+shift+space (ctrl原创 2016-04-16 08:07:57 · 588 阅读 · 0 评论 -
Android使用Fragment,不能得到Fragment内部控件,findViewById()结果是Null--已经解决
程序非常简单,好长时间没有搞定,郁闷。。。。。。。。。。。。描述:一个Activity:MainActivity,内部是一个Fragment:FragmentA,FragmentA里面有TextView。问题:无论如何也得不到FragmentA内部的TextView,返回值永远是Null具体描述:MainActivity的layout:activity_main.xml原创 2014-06-04 14:21:04 · 8730 阅读 · 5 评论 -
Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connectio
win7 x64Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused解决办法来源于:code.google.com用notepad打开C:\WINDOWS\转载 2013-08-08 22:55:03 · 853 阅读 · 0 评论 -
通过eclipse开发Android应用,启动adb失败
当我们通过eclipse开发Android应用时,会连接真机会使用模拟器进行仿真,有时候启动失败,会提示这样的错误。工具/原料 EclipseCMD命令窗口方法/步骤 首先通过CMD启动adb服务。这个时候会提示启动失败。“Failed to start daemon”转载 2013-12-15 10:13:58 · 865 阅读 · 0 评论 -
在ubuntu上安装oracle JDK的详细步骤
1Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.Type/Copy/Paste: file /sbin/initNote the bit vers转载 2013-07-27 14:31:12 · 810 阅读 · 0 评论 -
Ubuntu13.04 64位系统adb找不到小米2手机的解决方法
环境:Ubuntu13.04 64位系统,已经安装JDK1.7.0U25, /usr/local/adt/adt-bundle-linux-x86_64-20130717问题:adb devices 不能显示任何设备。解决:1. 查看usb设备, 命令:lsusb结果如下: lee@asus:/usr/local/adt/adt-bundle-linux-x8原创 2013-07-27 18:26:17 · 1659 阅读 · 0 评论 -
Ubuntu13.04,ADT安装subclipse,出现JAVAHL错误的解决方法
首先要确定subclipse的版本,当前最新版本是1.10.x,需要对应的subversion是1.8.x,对应关系见:http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537deSubclipse Version SVN/JavaHL Version原创 2013-07-27 21:14:05 · 917 阅读 · 0 评论 -
HTC T528troot
先在HTC官方网站解锁,再用刷机大师root原创 2013-08-19 11:08:18 · 827 阅读 · 0 评论 -
Android-x86虚拟机安装配置全攻略
From:http://www.cnblogs.com/gao241/archive/2013/03/11/2953669.htmlAndroid-x86虚拟机安装配置网上有很多,但是全部说明白的确不多,希望这篇文章能把主要的配置介绍给您,帮助您少走一些弯路。本文分别针对VMWare和Virtual Box两种虚拟机介绍安装配置方法,并描述了如何使用eclipse进行调转载 2013-08-19 11:34:08 · 1456 阅读 · 1 评论 -
How to Install Android on Your PC
From: http://android.appstorm.net/how-to/rooting-and-roms/how-to-install-android-on-your-pc/It used to be the case that PC users had the choice of installing Windows or, if they were feeling a转载 2013-08-09 09:19:55 · 1586 阅读 · 0 评论 -
Eclipse设置Instance variable的前缀
Generating getters and settersThe first step is to configure Eclipse to recognize the m prefix for member variables and to use israther than get for boolean variables.Open Eclipse’s preferences转载 2013-11-07 12:54:36 · 709 阅读 · 0 评论 -
ADB server didn't ACK * failed to start daemon *
[From]http://www.th7.cn/Program/Android/201304/134301.shtml=======================================很多人遇到下面这个问题* daemon not running. starting it now on port 5037 *ADB server didn't ACK* fail转载 2013-11-13 10:16:35 · 735 阅读 · 0 评论 -
Android Test(未完工)
测试类型Local unit testsLocal unit tests的代码应该写在:module-name/src/test/java/。Local unit tests运行在本机的JVM(Java Virtual Machine)中,所以运行速度很快。但是不能测试Android framework的功能,因为在unit tests中,android framework是一个处理过的framew原创 2016-08-01 17:40:31 · 434 阅读 · 0 评论