`
文章列表
最近从Android N升级到Android O,发现163的邮箱以pop3,110,SSL/TSL方式登录的时候会弹出Unacceptable certificate: CN=GeoTrust SSL CA. 从字面看出是证书有问题,将N的代码和O的代码进行对比,发现关于对应的部分都没有修改,很纳闷啊。再细细跟着代码流程,最后将 exception通过printStackTrace();打印详细信息才发现原来是手机时间设置了1970年导致证书无效了 01-06 20:05:40.496 3969 415 D Email : startHandshake .... 01-06 ...
Email中附件名称中包含中文字符显示乱码是因为附件虽包含了中文字,但没有指定对应的编码,导致Android按默认编码UTF-8去显示中文字而显示了乱码 邮件中的附件名称包含中文字并指定了encode Content-Type: audio/mpeg; name="=?gb2312?B?us+zyS5tcDM=?=" Content-Description: =?gb2312?B?us+zyS5tcDM=?= Content-Disposition: attachment; filename="=?gb2312?B?us+zyS5tcDM=?="; s ...
https://msdn.microsoft.com/en-us/library/hh509085(v=exchg.140).aspx MaxInactivityTimeDeviceLock Specifies the length of time (in seconds) that the device can be inactive before the password is required to reactivate it. The user can choose a value that is smaller than this, but cannot choose a value ...
关于Direct Boot Mode[DBM]介绍可以参考如下文章 http://blog.csdn.net/huluboy/article/details/53397582 一般应用的SharePreference保存在/data/data/[package name]/shared_prefs目录,但通过createDeviceProtectedStorageContext建立的SharePreference是保存在/data/user_de/0/[package name]/shared_prefs目录。 当我们找不到SharePreference保存在哪,可以通过这个方法获取其路径 ...
以前我们可以通过createPackageContext来访问另外一个应用的资源(Sharepreference),但Android 7.0以后为了安全性,丢弃了这种方式了 PS: /**      * File creation mode: allow all other applications to have read access to      * the created file.      * <p>      * As of {@link android.os.Build.VERSION_CODES#N} attempting to use this      * m ...
当Email未设置账户时,通过ACTION_SENDTO启动会报ActivityNotFoundException 手机里已经安装了email的apk,检查manitfest中也有对应的action,并且activity也没有被disable掉,为何就是找不到呢? <activity android:name="com.android.email.activity.ComposeActivityEmail" android:label="@string/app_name" ...
当界面全屏时,在顶部下拉时会显示statusbar的实现原理: /frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java // monitor for system gestures mSystemGestures = new SystemGesturesPointerEventListener(context, new SystemGesturesPointerEventListener.Callbacks() ...
这两天遇到这样的bug:播放视频的时候,会先闪现一下桌面再显示视频。 第一我想到的是activity 的window background设置为了null,找到对应的activity (/packages/apps/Gallery2/src/com/android/gallery3d/app/MovieActivity.java)将 // We set the background in the theme to have the launching animation.      // But for the performance (and battery), we remove the ...
[size=large][size=medium]最近是用React-native来实现夸平台的项目,同事建立好的工程,我git clone下来之后在我的环境打开之后,满屏的红色波浪线,但可以项目可以正常编译运行。问了同事他们会不会这样,他们说不会,去看了同事的配的环境得版本都不一样,我的node version是v8.1.2,npm是5.0.3 后来发现需要在设置工程的JavaScript: File-->settings-->Languages & Frameworks-->JavaScript-->React JSX 就可以去掉讨厌的红色波浪线[/size ...
很久没有更新了,从今天开始来一系列关于Android 原生Gallery3d的学习,优化及问题解决的记录。 当有很多Album存在的时候,快速滑动,会发现需要很久才能显示数据,这是因为在 AlbumSetDataLoader里面的ReloadTask加载数据的时候都是从(mContentStart, mContentEnd)在这个范围内开始加载,而不是优先加载可见的范围(mActiveStart,mActiveEnd)而Google的大神在写这个代码的时候就已经意识到了这点,但没有完成,留下了TODO // TODO: load active range first 所以找到了问题点,我们 ...
一直在忙于Gallery,最近遇到了这样的bug,在Setting-->storage&USB->internal storage->images->选择一张-图片> home key exit,然后在Gallery删除选中的那种照片,最后在最近列表里选择Setting,画面仍保留在那张图片,点击打印men,就会报Gallery Force Close.通过log可以看到报以下错: 04-15 11:00:33.959 8427 8427 D AndroidRuntime: Shutting down VM 04-15 11:00:33.965 ...
http://www.eefocus.com/raymondcqk/blog/15-10/320874_7e52a.html 今天从eclipse官网下载了一个32位的eclipse压缩包,加入jre后,成功启动。 然而,在敲代码,正想使用alt+/偷偷懒的时候(懒货你懂得,对于懒货来讲,在最短时间内尽量保证质量地完成更多的事情,便是人生的终极目标),发现没用。开始还以是ubuntu的快捷键冲突,于是打开System Settings -- keyboard -- shortcuts 看了一遍都没有冲突。 后来发现这样操作可以解决: 在eclipse的菜单栏中,window -- pre ...
最近在看AOSP,发现mipmaps, 百度 了一下,发现有各种说法,最后还是google出来的比较正确。 引用官方文档中: http://developer.android.com/tools/projects/index.html#mipmap [size=medium]Managing Launcher Icons as mipmap Resources[/size] Different home screen launcher apps on different devices show app launcher icons at various resolutions. When ...
android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database 在开发一个app的过程中,使用了Provider,通过install 的方式将APP运行在机器上,再通过setting清除该APP再运行APP,一切仍正常,但若通过系统签名将app push到system/app上,再在setting上清除该APP的数据,再运行就发生了android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to wri ...
最近在看《Android.Programming.Pushing.the.Limits].Erik.Hellman》中写到关于使用何种操作系统开发Android: Google supports Windows, Linux, and OS X for developing Android applications. Although Windows is officially supported by the Android SDK, you’ll have problems if you decide to do advanced development, especially when ...
Global site tag (gtag.js) - Google Analytics