随笔分类 - Android
摘要:在Chrome中调试Android微信浏览器中的网页 环境准备:USB数据线连接电脑和手机,手机要开启Debug调试模式。 1、在Chrome中打开:chrome://inspect/#devices 2、微信打开网页: http://debugxweb.qq.com/?inspector=true
阅读全文
摘要:[转]AndroidGetAPKInfo https://codeload.github.com/bihe0832/Android-GetAPKInfo/zip/master https://github.com/bihe0832 AndroidGetAPKInfo 项目简介作为基于Android平
阅读全文
posted @ 2022-03-29 10:03
Don
摘要:Genymotion安装或运行APK失败,试试这个办法:点击下载Genymotion-ARM-Translation.zip将你的虚拟机运行起来,将下载好的zip包用鼠标拖到虚拟机窗口中(不要怀疑,就是拖zip包,不要解压),点击确认就,重启Genymotion。
阅读全文
摘要:解决方法:xml布局添加 android:cacheColorHint="#00000000"
阅读全文
摘要:由于android官网经常无法打开,特意把最新的android ADT和SDK放到了百度云盘进行了分享,目录中包含Windows和Macbook两种平台的版本,请自行选择:http://pan.baidu.com/s/1jG7kdPs
阅读全文
摘要:ListView中加入 android:cacheColorHint="#00000000" 的属性即可
阅读全文
摘要:Adndroid 2.x的设置在Android 2.x下,设置webview背景为透明的方法:wvContent.setBackgroundColor(0);Adndroid 4.0由于硬件加速导致以上的设置无效,关闭webview的硬件加速:android:layerType="software"
阅读全文
摘要:关于HttpPost,有这样两种可Post的数据载体,分别是MultipartEntity和UrlEncodedFormEntity,对这两者的共性和异性做如下解释和备忘:共性:1、都属于HTTP的POST范畴2、实现了接口HttpEntity异性:1、Content-Type不同。分别是:Content-Type:multipart/form-data; boundary=***********,Content-Type:application/x-www-form-urlencoded2、RequestBody不同 MultipartEntity是有多个数据段组成,各个数据段有自己的Co.
阅读全文
摘要:Activity的归属,也就是Activity应该在哪个Task中,Activity与Task的吸附关系。我们知道,一般情况下在同一个应用中,启动的Activity都在同一个Task中,它们在该Task中度过自己的生命周期,这些Activity是从一而终的好榜样。 那么为什么我们创建的Activity会进入这个Task中?它们会转到其它的Task中吗?如果转到其它的Task中,它们会到什么样的Task中去? 解决这些问题的关键,在于每个Activity的taskAffinity属性。 每个Activity都有taskAffinity属性,这个属性指出了它希望进入的Task。如果一个Act...
阅读全文
摘要:最近使用百度地图时,需要在地图上加上Google坐标的点位,问题来了,怎样把Google坐标换算成Baidu坐标呢,网上提供的一些办法大都不适合在Android上使用,去com.baidu.mapapi.utils下找吧,不多说了!
阅读全文
摘要:标记下可用的android源码下载地址:https://github.com/android/platform_frameworks_base
阅读全文
摘要:在SQLite中,对大小写是敏感的。那么SQLite怎么区分大小写查询呢,以下是三种解决方案:方案一:使用大小写转换函数LOWER、UPPER1.select * from test where UPPER(name) = 'ABC';2.select * from test where LOWER(name) = LOWER('ABC');方案二:在进行比较时强制声明不区分大小写select * from test where name = 'ABC' COLLATE NOCASE;方案三:创建表时声明该字段不区分大小写create table
阅读全文
摘要:drawable-xhdpi 96*96 pxdrawable-hdpi 72*72 pxdrawable-mdpi 48*48 pxdrawable-ldpi 36*36 px
阅读全文
摘要:ExecutorService 建立多线程的步骤:1。定义线程类class Handler implements Runnable{}2。建立ExecutorService线程池ExecutorService executorService = Executors.newCachedThreadPool();或者int cpuNums = Runtime.getRuntime().availableProcessors(); //获取当前系统的CPU 数目ExecutorService executorService =Executors.newFixedThr...
阅读全文
摘要:android开发中使用SVN时如何处理gen和bin目录
阅读全文
摘要:传Intent数据给Activity时,此Activity为singleInstance ,在onResume中无法获取传入的Intent,原来用getIntent()只能获取Activity原来的Intent.有此方法可以让singleInstance的Activity获取传入的Intent,并获取Extra数据:重载:onNewIntent(Intent intent) @OverrideprotectedvoidonNewIntent(Intentintent){//TODOAuto-generatedmethodstubsuper.onNewIntent(intent);setInt.
阅读全文
摘要:publicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);//确定界面的布局AbsoluteLayoutabslayout=newAbsoluteLayout(this);setContentView(abslayout);//创建一个button按钮Buttonbtn1=newButton(this);btn1.setText(”thisisabutton”);btn1.setId(1);//确定这个控件的大小和位置AbsoluteLayout.LayoutParamslp1=newAbso
阅读全文
摘要:话不多说,看红色部分,width属性必须要设才有作用:<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/PopNameList" android:singleLine="true"android:ellipsize="end"android:textStyle="bold" android:textSize="1
阅读全文

浙公网安备 33010602011771号