随笔分类 -  Android 国外优秀文章

1
Android 国外优秀文章
摘要:对于6.0+权限问题,报错如上: 解决方案: Android 6.0 (Marshmallow). 添加新的权限模型,需要在运行时动态获取所需要的权限。 首先判断手机系统版本是否在6.0+然后才是支持运行时动态获取权限: 然后是运行时获取权限的操作: 下面这个方法可以获取用户是不是已经授予某些特殊的 阅读全文
posted @ 2016-08-04 14:09 狂奔的小狮子 阅读(548) 评论(0) 推荐(0) 编辑
摘要:Android应用apk安装包的大小,虽然对于现在WiFi普及情况而言消耗流量已经微乎其微,但是,对于一款好的应用,对于一款负责任的应用,当然是越小越好了。 引言: .应用越小,下载越快,也就意味着新用户能在最短时间内安装,体验应用,而不是看着通知栏里面的丑陋的下载进度条,盯着看几分钟(30-50M 阅读全文
posted @ 2016-07-12 15:19 狂奔的小狮子 阅读(1249) 评论(0) 推荐(0) 编辑
摘要:The powerful Android Studio 08 Jun 2016 Android Studio is the official tool for Android development these days. Being developed at the top of project  阅读全文
posted @ 2016-06-15 18:17 狂奔的小狮子 阅读(353) 评论(0) 推荐(0) 编辑
摘要:PNG: 便携式网络图形(Portable Network Graphics,PNG)是一种无损压缩的位图图形格式,支持索引、灰度、RGB三种颜色方案以及Alpha通道等特性。PNG的开发目标是改善并替换GIF作为适合网络传输的格式而不需专利许可,所以被广泛应用于互联网及其他方面上。 PNG另一个非 阅读全文
posted @ 2016-04-24 16:33 狂奔的小狮子 阅读(334) 评论(0) 推荐(0) 编辑
摘要:Building Android Apps — 30 things that experience made me learn the hard way There are two kinds of people — those who learn the hard way and those wh 阅读全文
posted @ 2016-02-26 09:49 狂奔的小狮子 阅读(315) 评论(0) 推荐(0) 编辑
摘要:代码精简无疑是每个程序员的目标,简短易读。java 8中的lambda表达式的使用: 4 easy steps Download and install jdk8. Add the following to your project’s main build.gradle buildscript { 阅读全文
posted @ 2016-02-26 09:37 狂奔的小狮子 阅读(574) 评论(0) 推荐(0) 编辑
摘要:应用中用到图片加载需要解决的问题无网络环境下图片不可用图片的本地缓存,或者默认预加载的图片低配置机型,加载图像资源超内存(OutOfMemory, OoM)需要合理使用内存,尤其是bitmap的使用,是内存溢出的最常见地方ListView, GridView等控件初始化或者移动过程中,列表项的重复绘... 阅读全文
posted @ 2015-10-03 12:30 狂奔的小狮子 阅读(204) 评论(0) 推荐(0) 编辑
摘要:http://blog.udinic.com/2015/09/15/speed-up-your-app 阅读全文
posted @ 2015-09-29 10:20 狂奔的小狮子 阅读(168) 评论(0) 推荐(0) 编辑
摘要:要实现这个效果,只需要再适配器getView之前,给每个条目的view设置相应的动画即可。首先需要2个动画的xml文件。在res下新建anim文件夹:(res/anim)第一个动画xml文件:up_from_bottom.xml down_from_top.xml 在listvi... 阅读全文
posted @ 2015-07-07 10:36 狂奔的小狮子 阅读(398) 评论(0) 推荐(0) 编辑
摘要:在Android design support library中,SnackBar的使用:Part 2 – Welcome Snackbar, Goodbye Toast!BYPARESH MAYANI-JULY, 1ST 2015Welcome to the second part of the ... 阅读全文
posted @ 2015-07-07 09:25 狂奔的小狮子 阅读(976) 评论(0) 推荐(0) 编辑
摘要:转自:https://blog.leancloud.cn/3306/Android 5.0 Lollipop 是迄今为止最重大的一次发布,很大程度上是因为 material design —— 这是一门新的设计语言,它刷新了整个 Android 的用户体验。但是对于开发者来说,要设计出完全符合 ma... 阅读全文
posted @ 2015-06-22 00:42 狂奔的小狮子 阅读(440) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.pedant.cn/2014/07/22/crack-a-draw-app/ 东窗事发偶然见到一个应用内有抽奖的活动(应用具体名称就不便告知),而且是每天都可以抽。同时抽奖之前也不需要用户登录什么的,但限定了用户一天(自然天)只能抽奖一次。那么应用的服务端在用户没有登录... 阅读全文
posted @ 2015-05-27 11:33 狂奔的小狮子 阅读(894) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.pedant.cn/2014/09/10/webview-optimize-points/我们在native与网页相结合开发的过程中,难免会遇到关于WebView一些共通的问题。就我目前开发过程中遇到的问题以及最后得到的优化方案都将在这里列举出来。有些是老生常谈,有些则是... 阅读全文
posted @ 2015-05-27 10:21 狂奔的小狮子 阅读(3724) 评论(0) 推荐(0) 编辑
摘要:在Google Play 应用商店,显示至少支持设备的数量时候会用到权限数量。其他地方用处不大。Android系统提供为程序提供了权限申请,即在manifest中使用uses-permission来申请即可.实现起来非常简单,但是有些问题会随之浮出水面. 常见的现象是,有时候新加一个权限,(在Goo... 阅读全文
posted @ 2015-05-26 17:31 狂奔的小狮子 阅读(315) 评论(0) 推荐(0) 编辑
摘要:The Use CaseIn Fragment, there are a couple of places where we use horizontal scrollers as a selection view. This means that the center icon is the “s... 阅读全文
posted @ 2015-04-25 18:02 狂奔的小狮子 阅读(495) 评论(0) 推荐(0) 编辑
摘要:第一步:1. Create the variant dependent strings in your build scriptEdit yourbuild.gradlefile accordingly: //This line allows parameterization via the ter... 阅读全文
posted @ 2015-04-25 15:12 狂奔的小狮子 阅读(1277) 评论(4) 推荐(0) 编辑
摘要:将数据从服务器端同步到手机上, 并且需要离线工作,Couchebase Mobile 也许是目前最好的解决方案:原文地址:https://www.infinum.co/the-capsized-eight/articles/server-client-syncing-for-mobile-apps-... 阅读全文
posted @ 2015-04-25 14:56 狂奔的小狮子 阅读(558) 评论(0) 推荐(0) 编辑
摘要:/** * This class allows you to listen to when the user is entering the background (i.e. after a home button press, * or opening recent apps etc) and w... 阅读全文
posted @ 2015-04-20 20:18 狂奔的小狮子 阅读(368) 评论(0) 推荐(0) 编辑
摘要:通知栏简介:Notification can display some information for user.Some users use Android Wear platform, whichwork with notification better and use wear devices... 阅读全文
posted @ 2015-04-20 17:52 狂奔的小狮子 阅读(531) 评论(0) 推荐(0) 编辑
摘要:发送通知这次邮件我们将会讨论怎么获取电量状态在安卓设备上,为了完成这个目标,我们将会使用到广播。What is BroadcastReceiver?A broadcast receiver is an Android component which allows you to register fo... 阅读全文
posted @ 2015-04-20 14:07 狂奔的小狮子 阅读(1080) 评论(0) 推荐(0) 编辑

1

点击右上角即可分享
微信分享提示