Open in app

Sign In

Write

Sign In

Bram Yeh
Bram Yeh

548 Followers

Home

About

Published in

Coinmonks

·Apr 30

Android Advanced debugging, Get the machine code and tracing instructions

Android is a system that allows developers to write code for the virtual machine without knowing the actual machine code. The compiler can detect many issues during compiling and optimize the code for a polished final product. However, code changes can sometimes cause problems, resulting in unexpected behavior when the app runs. In this post, we’ll explore compiling an Android app and reverse engineering to understand why some code crashes at runtime.

Android

8 min read

Android

8 min read


Oct 15, 2022

Xcode Error Building for iOS Simulator because of Architecture arm64

The Apple M1 is an ARM-based chip. Because M1’s architecture is different from the previous Intel x86 one, Resetta 2 permits many applications compiled for x86–64 processors to be translated for execution on Apple silicon. — TL;DR I suggest using Rosetta to launch Xcode. Right-click on Xcode in your applications folder and click “Get Info”. Check the “Open using Rosetta”. With MacBook Pro with M1, Xcode runs the iOS projects but gets the following error:

IOS

2 min read

IOS

2 min read


May 11, 2022

Quick Note: Custom WebView Class Won’t Display Virtual Keyboard After Kotlinized

This solution was found by my colledges, Ray and Cloud. Thanks for the investigation. TL;DR That WebView lost its ability to popup the virtual keyboard after initializing this CustomWebView by using the @JvmOverloads annotation. Our team keeps going to refactor our Java code to Kotlin. We found our custom WebView can’t…

Android App Development

2 min read

Quick Note: Custom WebView Class Won’t Display Virtual Keyboard After Kotlinized
Quick Note: Custom WebView Class Won’t Display Virtual Keyboard After Kotlinized
Android App Development

2 min read


Nov 20, 2021

Quick Note: Flow’s asLiveData() with CoroutineContext parameter

Another question from my colleague: we use Flow inside ViewModel and convert to LiveData which Fragment observes. When we should set the context parameter when using asLiveData()? — Our team has had lots of trivial but funny discussions. This is another question that we didn’t understand well at the beginning of using Flow, we don’t know when we should assign this parameter and what we need to set. …

Android

3 min read

Android

3 min read


Oct 14, 2021

Quick Note: Fragment’s init and onCreate

A question from my colleague: if we want to initialize a mutable list as the fragment’s variable, should we do it directly in the declaration or onCreate method? And what’s the difference? — Recently, our team has had lots of trivial but funny discussions. They are little questions, but we still learn a lot and enjoy. I would like to share them here, not seriously. When we initialize a mutable list inside a fragment, we can do this like

Android App Development

2 min read

Android App Development

2 min read


May 23, 2021

About Target SDK 30, Storage Permissions, and requestLegacyExternalStorage

About what most application developers see in the Google Play Console: We’ve detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs. Developers with apps on devices running Android 11+ must use Scoped Storage to give users better…

Android App Development

3 min read

Android App Development

3 min read


Jan 4, 2021

Fix ViewPager2 ‘s Memory Leak by Lifecycle-Aware Component

There is a common memory-leak issue of ViewPager2, for example, through a large or unknown number of fragments, use FragmentStateAdapter with ViewPager2, and then navigate forward to a new fragment, Leak Canary detects memory leaks. Most of the solutions from Stack Overflow would set the adapter to null when onDestroyView(): …

Android App Development

1 min read

Android App Development

1 min read


Dec 3, 2020

Support Android App Links for some domains, and Direct Links for other domains!

One Verification Fails, All App Links Fail — (I knew it’s an odd case.) Our android app fully supports Android App Links, and it works perfectly. And then, the app is demanded to handle more domains, however, some domains‘ web servers cannot put the assetlinks.json files onto. Use ATS policy to redirect assertlinks.json? No, the assetlinks.json file must…

Android App Development

2 min read

Support Android App Links for some domains, and Direct Links for other domains!
Support Android App Links for some domains, and Direct Links for other domains!
Android App Development

2 min read


Published in

Dev Genius

·Jul 15, 2020

Assemble Multi Sources into Single ScrollView With Better Performance and Predefined UI Order

architecture for various modules on one page — Thanks for my colleagues, Samuel Huang and Samuel Shu’s help to refactor our project and prepare the sharing article. The shopping app’s landing page is full of various modules, which come from different APIs. This article introduces how this architecture works and improves performance and reusability. Introduction The shopping app’s landing…

Mobile App Development

6 min read

Assemble Multi Sources into Single ScrollView With Better Performance and Predefined UI Order
Assemble Multi Sources into Single ScrollView With Better Performance and Predefined UI Order
Mobile App Development

6 min read


Published in

UX Collective

·Jul 8, 2020

Color your UI with Trademark or Remote Configuration from the Customers

Thanks for my colleague WanChing‘s help to prepare this sharing article. E-Commerce app collects plentiful products from various brands. Each brand has its brand signature colors and public image. This article introduces how we made a single page to present a different brand’s style depending on its trademark. E-Commerce app…

Mobile

6 min read

Color your UI with trademark or remote configuration from the customers
Color your UI with trademark or remote configuration from the customers
Mobile

6 min read

Bram Yeh

Bram Yeh

548 Followers

Lead Android & iOS Mobile Engineer at Yahoo (Verizon Media) Taiwan https://www.linkedin.com/in/hanruyeh/

Following
  • Elye

    Elye

  • Chet Haase

    Chet Haase

  • Livia Yang

    Livia Yang

  • PRANAY PATEL

    PRANAY PATEL

  • Amit Shekhar

    Amit Shekhar

See all (345)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech