![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android开发
speedcoder
这个作者很懒,什么都没留下…
展开
-
android 打开网页的两种方式.
Uri uri = Uri.parse("http://wap.baidu.com");startActivity(new Intent(Intent.ACTION_VIEW,uri));有时候我们要在自己的应用中打开一个网页.这是本人用到 的两种方式.1. 网页放置于自己的原创 2011-07-12 13:51:47 · 17598 阅读 · 0 评论 -
给每一个函数加一行LOG
在学习别人的代码时,有的代码我们不知道它是如何运行的,或者会被调用到哪里,给每个函数加一行LOG,是一个笨的选择,却也是很有效的办法。 本代码可以给JAVA语言加LOG,使用方式是 a.sh sourcefile>targetfile原创 2016-12-26 15:42:14 · 1195 阅读 · 0 评论 -
How to resolve such problem :unpack failed: error Missing tree
~/code$ git push origin HEAD:refs/for/masterCounting objects: 1, done.Writing objects: 100% (1/1), 591 bytes | 0 bytes/s, done.Total 1 (delta 0), reused 0 (delta 0)error: unpack failed: error原创 2016-11-11 10:34:45 · 886 阅读 · 0 评论 -
ubuntu 下virtualbox 启动时Kernel driver not installed (rc=-1908) 错误的解决方法
Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loadedor there is a permission problem with /dev/vboxdrv. Re-setup thekernel module by executing转载 2016-07-04 17:04:47 · 4534 阅读 · 0 评论 -
android.content.res.Resources$NotFoundException 的解决方法
今天在把一个旧的工程导入ANDROID STUDIO中时,出现找不到资源的异常。编译可以通过 ,但运行时出如下错误: Caused by: android.content.res.Resources$NotFoundException: File res/mipmap-hdpi-v4/path.xml from xml type drawable resource ID #0x原创 2016-05-12 22:22:26 · 7105 阅读 · 0 评论 -
PhoneApp的启动流程
PhoneApp 通过 framework层的RIL与底层MODEM进行通信。但PHONEAPP在启动阶段都做了什么呢。public class PhoneApp extends Application { public void onCreate() { if (UserHandle.myUserId() == 0) { // We are原创 2016-04-30 22:42:21 · 2300 阅读 · 0 评论 -
呼叫流程
android 呼叫流程原创 2016-04-29 22:40:04 · 465 阅读 · 0 评论 -
Create a Button with an Image and Text [Android]
The Android SDK docs aren’t very helpful. Period. More specifically, they aren’t clear on how to create a button with both an image and text. Allow me to help.Place the following in your layout XML转载 2012-01-11 13:52:40 · 101 阅读 · 0 评论 -
Howto find native code memory leak in Android
Howto find native code memory leak in AndroidIf you have the right kind of build on the phone, you can replace / system/lib/libc.so with /system/lib/libc_debug.so and restart the framework. Add原创 2011-10-26 14:12:14 · 622 阅读 · 0 评论 -
android 从网页上下载图片并显示出来.
Bitmap bitmap = DownloadImage("http://www.365qy.com/attachments/2008/04/1_20080414232544411pB.gif"); ImageView img = (ImageV原创 2011-07-12 14:07:37 · 1329 阅读 · 1 评论 -
关于android:configChanges的属性
今天遇到一个BUG,在GEVEK HOME中切换语言后,GH退出了,通过代码分析是因为没有设置android:configChanges="layoutDirection"导致的在MANIFESTs中加了这一句以后就好了。另外附上其他属性的说明。一般在AndroidManifest.xml文件中都没有使用到android:configChanges="keyboardHid原创 2017-03-28 11:57:07 · 1720 阅读 · 0 评论