惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog

ashishb.net

A day in Luxembourg - the richest country in the world I was asked to install malware during a fake interview Book summary: Breakneck - China's quest to engineer the future by Dan Wang Book summary: How to Teach Your Baby to Read Book Summary: The Discontented Little Baby Book by Pamela Douglas Introducing Amazing Sandbox - run third-party tools and AI agents securely on your machine Why software outsourcing gets a bad reputation? Book summary: The Natural Baby Sleep Solution by Polly Moore A day in Antwerp, Belgium Journey of online influencers Two days in Brussels, Belgium Shortcuts - when we love them and when we don't A visit to Rakhigarhi Three days in overhyped Paris Empty Japan, crowded Tokyo The real lock-in in GitHub is not the code, but the stars 11-day Norwegian Breakaway East Caribbean cruise Sanskrit and Sri Lankan Air Force Use REST with Open API The Achilles heel of American capitalism Costa Rica in 4 days At a juice stall in Sri Lanka A short stay at Warsaw, Poland Best practices for using Python & uv inside Docker Two days in Vilnius, Lithuania How IntelliJ IDEs waste disk space Pregnancy Why there aren't many digital nomads from India Two days in Riga, Latvia To keep your machine secure, run third-party tools inside Docker
Built-in "Developer options" in Android
Ashish Bhatia · 2016-09-04 · via ashishb.net

Android has a few good settings built right into the platform for debugging under a hidden “Developer Options” menu. You can turn them on via Settings -> About Phone -> Build Number (tap 7 times). The steps will be similar but might vary a bit across OEMs. In older versions of Android, this used to be an explicit option under the Settings tab.

I find the following options to be useful for the development

  1. Don’t keep activities Android can destroy any activity that is not visible in the foreground at all. The phrase destroy is a bit of a misnomer here since activity will be allowed to preserve its state (via saveInstanceState). This option allows you to force that on all apps. It is harder to keep this option always on since many badly designed Android apps misbehave and even the good ones have a deteriorated performance due to repeated re-creation. I wish there was a way to force this only on the app under development.

  2. Force RTL layout direction to test your app’s look & feel in an RTL language like Hebrew or Urdu. This option is useful since it reveals evolving and varied behavior across different versions of Android rtl_forced

  3. Profile GPU rendering Shows a nice cool graph of the load on the UI thread and when your app fails to render a frame in Android recommends a 16 milliseconds timeframe.

    GPU rendering profile indicating frame rendering performance metrics in Android
  4. Stay awake [while charging] when you don’t want your screen to turn off while it’s charging [& connected to your laptop for the development]. I wish Google provided a “Stay awake while USB debugging” option.

  5. Verify apps over USB Disable it unless you don’t trust the app you are working on

  6. Pointer Location This option draws a set of perpendicular lines at the point of touch, useful to see if a set of views (like buttons, text fields, etc.) align or not.

  7. Show Layout bounds shows the bounds of all the views, annoying to always keep on but useful for quick testing.

  8. Debug GPU overdraw Google recommends it, but I have rarely seen any benefits of turning this on since due to animation, overdraw is almost always present.

  9. Running services You can check out your app and see if it is listed and is running some spurious service in the background. Running apps