随笔分类 -  android

Android SDK 在线更新镜像服务器资源
摘要:大连东软信息学院镜像服务器地址:- http://mirrors.neusoft.edu.cn 端口:80北京化工大学镜像服务器地址:- IPv4: http://ubuntu.buct.edu.cn/ 端口:80- IPv4: http://ubuntu.buct.cn/ 端口:80- IPv6: 阅读全文

posted @ 2017-07-12 16:25 屁屁侠 阅读(666) 评论(0) 推荐(0)

transformClassesWithDexForDebug
摘要:gradle编译项目报错: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.androi 阅读全文

posted @ 2016-03-15 23:34 屁屁侠 阅读(3345) 评论(0) 推荐(0)

Android Studio 运行出现 Multiple dex files define Landroid/support/annotation/AnimRes 解决方法
摘要:引入的工程的android-support-v4.jar版本跟自己工程的android-support-v4.jar的版本不一样 阅读全文

posted @ 2015-03-17 18:43 屁屁侠 阅读(10946) 评论(0) 推荐(0)

Mac下不显示设备
摘要:使用命令行adb devices 试了下,没设备列表。第一步: 查看usb设备信息在 终端输入:system_profiler SPUSBDataType 可以查看连接的usb设备的信息比如我的usb信息如下(部分内容):Android: Product ID: 0x2769 ... 阅读全文

posted @ 2014-10-17 20:25 屁屁侠 阅读(5556) 评论(0) 推荐(0)

Android 手动显示和隐藏软键盘
摘要:转:http://blog.csdn.net/h7870181/article/details/83329911、方法一(如果输入法在窗口上已经显示,则隐藏,反之则显示)InputMethodManager imm = (InputMethodManager) getSystemService(Co... 阅读全文

posted @ 2014-09-11 16:48 屁屁侠 阅读(378) 评论(0) 推荐(0)

MOTIONEVENT的GETX()和GETRAWX()和VIEW的GETLEFT()3个方法的区别
摘要: 阅读全文

posted @ 2014-09-11 06:54 屁屁侠 阅读(726) 评论(0) 推荐(0)

android 修改listview item view 的方法
摘要:具体的解答办法很简单:代码如下 :1.获取需要更新的viewint visiblePosition = mListView.getFirstVisiblePosition(); View view = mListView.getChildAt(position - visibl... 阅读全文

posted @ 2014-09-11 06:50 屁屁侠 阅读(5699) 评论(0) 推荐(0)

Animation.setFillAfter and Animation.setFillBefore的作用
摘要:转:http://blog.csdn.net/yangweigbh/article/details/9788531setFillAfter(boolean fillAfter) 在Android developer上的文档:If fillAfter is true, the transformati... 阅读全文

posted @ 2014-09-09 09:45 屁屁侠 阅读(13471) 评论(0) 推荐(1)

ListView数据更新后,自动滚动到底部(聊天时常用)| Listview Scroll to the end of the list after updating the list
摘要:转:http://www.cnblogs.com/bjshsqlt/p/3311830.htmlIf you would like to after you have updated by listAdapter, you want to make sure that the list is scr... 阅读全文

posted @ 2014-08-28 19:52 屁屁侠 阅读(18115) 评论(0) 推荐(0)

Android getWindow().setFlags方法
摘要://设置窗体全屏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//设置窗体始终点亮getWindow().setFlags(Wi... 阅读全文

posted @ 2014-08-16 18:40 屁屁侠 阅读(3282) 评论(0) 推荐(0)

xml属性定义
摘要:1. reference:参考某一资源ID。 1)属性定义: 2)属性使用: 2. color:颜色值。 (1)属性定义: (2)属性使用: 3. boolean:布尔值。 (1)属性定义: (2)属性使用: 4. dimension... 阅读全文

posted @ 2014-08-16 18:38 屁屁侠 阅读(1136) 评论(0) 推荐(0)

Android中隐藏标题栏和状态栏
摘要:http://www.cnblogs.com/zhuguangwei/archive/2011/01/18/1938276.html一、隐藏标题栏 //隐藏标题栏 this.requestWindowFeature(Window.FEATURE_NO_TITLE);二、隐藏状态栏 //隐藏状态栏... 阅读全文

posted @ 2014-08-16 18:31 屁屁侠 阅读(515) 评论(0) 推荐(0)

android下使用adb启动程序或者服务
摘要:susetprop service.adb.tcp.prot 5555stop adbdstart adbdnetstat使用 adb install hello.apk可以安装一个apk但并不能启动它,启动它要使用adb shell am的方法启动Activity:adb shell am sta... 阅读全文

posted @ 2014-04-29 16:20 屁屁侠 阅读(6177) 评论(0) 推荐(0)

android 模拟器 sdcard权限修改
摘要:http://blog.csdn.net/zj510/article/details/8645777mksdcard1024M c:\sdcard.img (路径随意,大小随意)执行:adb push D:\aa.jpgsdcard/aa.jpg 报错,说是只读的执行adb shell下,尝试修改属... 阅读全文

posted @ 2014-04-18 13:51 屁屁侠 阅读(466) 评论(0) 推荐(0)

android adb 读写模式 挂载文件系统
摘要:http://www.qylk.blog.163.com/blog/static/1346873562013092154430/http://blog.sina.com.cn/s/blog_9906ec890101knaz.htmlhttp://blog.csdn.net/ygc87/article/details/7452422http://www.cnblogs.com/localhost/archive/2012/04/09/2439558.html如下读写方式挂载/system/app/目录:>adb shellshell@android:/ $susushell@android 阅读全文

posted @ 2014-04-11 13:59 屁屁侠 阅读(1465) 评论(0) 推荐(0)

Android中asset文件夹和raw文件夹区别
摘要:1.两者目录下的文件在打包后会原封不动的保存在apk包中,不会被编译成二进制。*res/raw和assets的不同点:1.res/raw中的文件会被映射到R.java文件中,访问的时候直接使用资源ID即R.id.filename;assets文件夹下的文件不会被映射到R.java中,访问的时候需要AssetManager类。2.res/raw不可以有目录结构,而assets则可以有目录结构,也就是assets目录下可以再建立文件夹*读取文件资源:1.读取res/raw下的文件资源,通过以下方式获取输入流来进行写操作InputStream is = getResources().openRawR 阅读全文

posted @ 2014-03-06 10:08 屁屁侠 阅读(206) 评论(0) 推荐(0)

Context.startActivity出现AndroidRuntimeException
摘要:转:http://hi.baidu.com/huaxinchang/item/e1a771cf4d424312b77a2416昨天做了一个Activity的启动动画,效果是点击桌面图标先出现动画后启动Activity,今天想让其开机启动,于是我写了一个类BootReceiver.java用于接收开机广播,启动动画效果,代码如下:public class BootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { // TODO Auto-ge. 阅读全文

posted @ 2014-02-25 18:28 屁屁侠 阅读(3932) 评论(0) 推荐(0)

Eclipse报This version of the rendering library is more recent than your version of ADT ...
摘要:http://blog.csdn.net/zhao_3546/article/details/12968295最近使用 Help --> Check for Updates 升级了Eclipse部分插件,之后新建4.3的工程,res/layout 下的xml布局文件无法预览了,一预览总是报这个错: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in上网查了一下,需要更新Eclipse插件:Help --> In 阅读全文

posted @ 2014-02-21 15:48 屁屁侠 阅读(33365) 评论(0) 推荐(0)

Android NDK之二:创建NativeActivity
摘要:转:http://blog.csdn.net/xiruanliuwei/article/details/7560914AndroidNDK为我们提供了两种方式来实现我们的nativeactivity: 1、Thenative_activity.hheaderdefinesthenativeversionoftheNativeActivityclass.Itcontainsthecallbackinterfaceanddatastructuresthatyouneedtocreateyournativeactivity.Becausethemainthreadofyourapplication. 阅读全文

posted @ 2014-01-17 17:37 屁屁侠 阅读(5145) 评论(0) 推荐(0)

Android NDK之一:什么是NDK?
摘要:转:http://blog.csdn.net/xiruanliuwei/article/details/7560798WhatistheNDK?TheAndroidNDKisatoolsetthatletsyouembedcomponentsthatmakeuseofnativecodeinyourAndroidapplications.AndroidNDK是一个工具集,它让我们能够在Android应用程序中使用由本地代码(nativecode)编写的代码模块。AndroidapplicationsrunintheDalvikvirtualmachine.TheNDKallowsyoutoim 阅读全文

posted @ 2014-01-17 17:36 屁屁侠 阅读(4460) 评论(0) 推荐(1)

导航