Beijing 1:

  1. Butterknife principle, R2 file?
  2. Handler Asynchronous message, synchronization barrier? Synchronize messages? When is looper.perpare() created? message.obtain()?
  3. Vsync, Vsync signal?
  4. UI slide render optimization?
  5. Memory leak? Leakcarray principles?
  6. Oom conditions?
    1. Open multiple threads causing oom?
  7. Is bitmap stored in the system? Where is it stored?
  8. Layout optimization? LinearLayout draw how many times?
  9. IPC mechanism, understanding of Binder mechanism? Why use thread pools? (One server versus multiple clients)
  10. Flutter rendering mechanism? Flutter in the tree?

Beijing 2:

  1. Mobile terminal automation development
  2. EventBus principles? Advantages? Weaknesses? How to switch threads
  3. ViewModel+LiveData
  4. The difference between speakers and mobile phones? Android version, manufacturer room, different customer groups
  5. Apk thin body?
  6. Start optimized time detection? Initiator optimization mode
  7. Componentization? How to design a component

Millet 1:

  1. The Activity lifecycle? ActivityA drop-down box when the life cycle? (unchanged) Is onDestory executed immediately?

  2. Where is the last frame drawn after the activity starts?

  3. How to start android? AOP? Start optimization? Start a thread? AMS, reflection? How do I stake a function?

    ASM modifies.class files before generating.dex files, and modifies them between.class and.dex files

  4. Leakcanary principles? How to do your own memory leak? What is the time between functions?

  5. Bright spot? Directed acyclic graph? Initialization of the ContentProvider?

  6. Handler memory leak causes? How to deal with it? Handler holds a strong reference to the Activity, and messageQueue holds a strong reference to the handler

  7. Drawing a View? DispatchDraw () and onDraw() execution order?

  8. If you draw a circle, make sure that the middle of the circle is not drawn, right? Cavas clipping, the canvas is missing a piece, then the subview cannot be drawn

  9. View event distribution? If Dispatch returns true, onInterrcept and onTouch will be intercepted

  10. Bitmap optimization? Size calculation of bitmap? If you zoom in on a 2x image and you zoom in on a 1X image, the bitmap gets bigger

  11. The thread pool? Block handling? How to catch thread pool errors (ThreadFactory)

  12. Producer consumer notification?

  13. Thread synchronization? Sychronized, ReentrantLock

  14. Hashmap, hash value calculation? Why do you do that? Arraymap and hashmap?

  15. What’s the difference between an array and a list?

  16. HTTPS encryption

Millet 2 surface:

  1. Start optimization? Bitmap preloading? How to load images faster? What other optimizations are there?
  2. How is Glide’s into method executed and displayed in imageView?
  3. Glide loading process? How does fragment bind? ImageView is loading, loading another image, what does that do?
  4. Android startup process? The Activity startup process?
  5. The ViewModel? LiveData understanding? MVVM understanding?
  6. Network request asynchronous framework? The thread pool?
  7. List inversion (inverse)

Yy1:

  1. Okhttp IO? Okio, the way of IO in Java? Chain of responsibility? Connection pool overcommitment?

  2. Glide’s cache structure? Why activieResource?

  3. What about EventBus? Bytecode =.class file, annotation mode?

  4. RecyclerView cache form?

  5. The inner workings of MotionLayout

  6. What does Mvvm need to be aware of? Memory leak? Holds a reference to the View

  7. LeakCanary principle, gc interval =5s, in idleHandler delay 5s operation, probably after the main thread is idle, wait for verification in 5s to execute GC? How does Fragment listen for memory leaks? FragmentManager. RegisterFragmentLifecycleCallbacks in detection

  8. Apk thin body? So libraries merge

    Compile all the libraries to be packaged into a static library, then use the following command to merge them into a *. So:

    gcc -shared -o c.so -Wl,--whole-archive a.a b.a -Wl,--no-whole-archive
    Copy the code
  9. Start optimization? Other optimization frameworks,

  10. Threads, processes, coroutines? Time sharding? How does coroutine work? The IO?

  11. Handler mechanism? How do I use handler in child threads? PrepareMain (looper. prepare) {prepareMain (looper. prepare) {prepareMain (looper. prepare); The main thread never exits, an infinite loop? Synchronization barrier?

Yy2:

  1. Audio protocol?
  2. Coroutine, process, thread?
  3. The MVVM? Componentization?
  4. What is the difference between webSocket and HTTP?
  5. Butterknife principles? Three forms of annotation?
  6. Dynamic proxy approach? 2? Dynamic proxy association?
  7. Type wipe out? Plastic?
  8. Class loading process? When is the class initialized? Initialization of static classes?
  9. Compiler optimization?
  10. GCroot? Stack overflow? (recursive)
  11. How many Java exceptions are there? Can I catch OOM exceptions? If oom is triggered in bitmap, try catch can be performed
  12. Animation? Differentiator, estimator?
  13. Binary tree zigzag printing

581:

  1. Componentized ARouter frame principle?

    Compile-time annotations generate class files, store global routing management, and create objects through reflection.

    In the case of an Activity, the Intent is used to jump and pass parameters. Fragments, broadcastReceivers, and services are all created by reflection

  2. LiveData, viewModel mechanism, how to bind the life cycle, how does persistence work in viewModel, sticky events in LiveData

    Stickiness events are controlled by the version number. When the user enters the active state, the user is notified of the version by comparing the version

  3. The starting process of an Activity

  4. RecyclerView mechanism

  5. Handler mechanism

  6. What is the Java locking mechanism, volatile visibility? What does Synchronized mean? What about spin locks? What about ReentrantLock?

  7. Coroutines in Kotlin?

    Coroutines in Kotlin are processed by suspending functions, using CPS transformation, suspend

    Each suspended function is compiled as a Continuation, and the function body is compiled as a state machine

  8. ASM

  9. Flutter understand? Fish-redux layering? Data flow?

    view—–>action—->effect—–>reducer—–>store—–>view

58 2:

  1. Project related…

36012:

  1. Fragment switch, add and replace reuse problem?

  2. Fragment visibility Accurately Guaranteed?

  3. What are the disadvantages of Fragment construction?

    If an Activity withdraws from rebuilding a Fragment abnormally, its Fragment constructors will be executed without arguments. If you pass the parameters through setArguments, the Activity will build the Fragment by reflecting its lunch strength

  4. Inline optimization?

  5. Difference between AAPT1 and AAPT2

    Aapt1 is fully compiled

    Aapt2 perform differential compilation

  6. Garbage loaded GC root

  7. How is the LRU algorithm implemented

  8. What are containers in Java? What is thread-safe?

    Vector is almost the same as ArrayList, but thread-safe

    Stack inherits from Vector

    CopyOnWriteArrayList Realist copy

    ConcurrentLinkedQueue Basic list synchronization queue

    LinkedBlockingQueue

    HashTable

    ConcurrentHashMap

58 3:

  1. To sort?
  2. HTTP request process, HTTPS process
  3. The difference between arrays and linked lists
  4. The process of calling a method on the stack
  5. Implementation of LRU algorithm

Zhihu 1:

  1. Late life of an Activity
  2. OnConfigurationChanged? Other times to return? OnSaveInstanceState callback? Split screen?
  3. ARouter?
  4. Fragment life cycle? Can onCreateView return NULL?
  5. How to initialize fragment? Why is it not recommended to carry parameters in fragment? Does androidx provide fragment parameters? Fragments reconstruction?
  6. ViewModel persistence? The viewmodel reconstruction? Can you store bundles?
  7. Java memory model? Volatile principles? Visibility, non-atomicity, disallows instruction reordering
  8. Componentized development?
  9. Binary tree mirroring?

Zhihu 2:

  1. The understanding of the MVVM
  2. Reasons for leaving the company
  3. Future direction, 2C direction, architecture direction
  4. The architect is mainly responsible for technology selection
  5. Why do you choose Zhihu?
  6. Zhihu interface analysis + selection + scheduling
  7. Your advantages, why do I offer you?
  8. Android launcher? Thread pool selection?
  9. Large file lookup scheme?
  10. Inverses of integers, excluding cases where the head and tail are 0