当前位置:网站首页>Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022

Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022

2022-07-05 06:19:00 Small coating SS

Activity

  • Under the said Activity Life cycle Q ?
  • Activity A Start another Activity B Which methods will be called ? If B Is it a transparent theme or a
    DialogActivity Well ?
  • Under the said onSavelnstanceState( The role of methods ? When will it be called ?
  • Under the said Activity Four startup modes of 、 Application scenarios ?
  • Know what Activity Commonly used marker bits Flags?
  • Under the said Activity Follow window, view The relationship between ?
  • Horizontal and vertical screen switching Activity Life cycle change ?
  • How to start other applications Activity?
  • Activity Start up process of ? ( a key )

Fragment

  • To talk about Fragment Life cycle of ? And Activity Life cycle difference ?
  • Talk about Activity and Fragment The difference between ?
  • Fragment in add And replace The difference between (Fragment overlap )
    getFragmentManager. getSupportFragmentManager 、getChildFragmentManager Between
    The difference between ?
  • FragmentPagerAdapter And FragmentStatePagerAdapter The difference with the use of scenarios

Service

  • To talk about Service Life cycle of ?
  • Service There are two ways to start ? What's the difference ?
  • How to ensure Service Not to be killed ?
  • Can it be in Service Turn on time-consuming operations ? How do you do it? ?
  • What systems have been used Service ?
  • understand ActivityManagerService Do you ? What role does it play ( a key )
    Broadcast Receiver
  • There are several forms of broadcasting ? What are their characteristics ?
  • Two ways to register for broadcasting ?
  • Do you understand the principle of broadcast transmission and reception ? (Binder Mechanism 、 AMS)
    ContentProvider
  • ContentProvider To understand how much ?
  • ContentProvider Authority management ?
  • say something ContentProvider、 ContentResolver、 ContentObserver The relationship between ?
    data storage
  • Describe the Android Data persistent storage mode ?
  • SharedPreferences Application scenarios of ? matters needing attention ?
    SharedPrefrences Of apply and commit What's the difference? ?
  • understand SQLite Transaction operations in ? How to do it
  • Use SQLite Make batch Is there any good way to operate ?
  • How to delete SQLite Individual fields in the table ?
  • Use SQLite What optimization operations will be performed when ?
    IPC ( a key )
  • Android The relationship between processes and threads in ? difference ?
  • How to start multiple processes ? Whether the application can be opened N A process ?
  • Why do I need IPC? Possible problems with multiprocess communication ?
  • Android in IPC The way 、 Advantages and disadvantages of various ways , Why choose Binder?
  • Binder The function and principle of mechanism ?
  • Binder In the frame ServiceManager The role of ?
    Bundle Why does the pass through object need to be serialized 9? Serialzable and Parcelable The difference between ?
  • Tell me about AIDL? What is the principle ? How to optimize the use of multiple modules AIDL The situation of ?

View

  • Talk a View Drawing process of ?
  • MotionEvent What is it? ? There are several events ? Under what conditions will ?
  • Describe the View Event delivery and distribution mechanism ?
  • How to solve View The event conflict of ? Let's take a development example ?
    scrolITo0 and scollBy0 The difference between ? .
  • Scroller How to achieve View Elastic sliding of ?
  • invalidate( and postInvalidate( The difference between ?
  • SurfaceView and View The difference between ?
  • Customize View How to consider model adaptation ?

Handler

  • Talk about the message mechanism Handler ? effect ? What are the elements ? How is the process ?
  • Can a thread create multiple Handler, Handler Follow Looper The correspondence between ?
  • Soft quotation and weak bow | The difference in use
    Handler Cause of memory leak and the best solution
  • Why is the system not recommended to access in a sub thread UI
    Looper Why does a dead cycle not cause the application to get stuck
    Use Handler Of postDealy What happens to the message queue after ?
  • You can directly new- individual Handler Do you ? How do you do it? ?
  • Message How can I create ? Which is better ? Why? ?
    Threads ( a key )
  • Benefits of thread pools ? Understanding of several parameters of thread pool , Four scenarios of using thread pool
    Android We also know which classes are convenient for thread switching ?
    Tell me about AsyncTask Principle
  • IntentService What's the usage? ?
  • Directly in Activity Create a individual thread With the service Create a individual thread The difference between
  • ThreadPoolExecutor The working strategy of Q ?
    Handler、Thread and Handler Thread The difference between ?
    ThreadL ocal Principle
    Will multithreading be efficient ( Advantages and disadvantages )
  • In a multithreaded , Let you do one Single case , What would you do
  • except notify What else can I do to wake up threads
  • What is? ANR ? What will happen ANR ? How to avoid ? How to quickly locate and appear without looking at the code ANR ask
    Where is the problem ?

Bitmap

  • Bitmap What problems should be paid attention to when using ?
  • Bitmap.recycle0 Will it be recycled immediately ? When will it be recycled ? If there is no place to use this Bitmap, Why garbage
    Recycling will not be directly recycled ?
  • a sheet Bitmap The memory occupied and the calculation of the memory occupied
  • Android Cache update strategy in ?
  • LRU Principle ?

performance optimization ( a key )

  • In the third level cache of pictures , Pictures are loaded into memory , If the memory is going to burst , What's going to happen ? How to deal with ?
  • If you load a Zhang 500*500 Of png HD picture . How much memory should it take ?
  • WebView Performance optimization ?
  • Bitmap How to deal with the big picture , Like one - Zhang 30M Big picture of , How to prevent OOM
  • Memory recovery mechanism and GC Algorithm ( Advantages and disadvantages of various algorithms and application scenarios ); GC Principle, timing and GC object
  • The difference between memory overflow and memory leak ? AS What tools are available to detect memory leaks
  • How can performance optimization ensure that application startup does not get stuck ? How to deal with the white screen ?
  • Force quote to null, Will it be recycled ?
  • ListView Follow RecyclerView The difference between
  • ListView Of adapter What is it? adapter ?
  • LinearLayout、 FrameLayout、 RelativeLayout Performance comparison , Why? ?

JNI

  • Yes JINI Do you understand
  • How to load NDK library ? How to be in JNI Register in Native function , There are several ways to register ?
  • Do you use JNI To realize what functions ? How to achieve ? ( Encryption processing 、 Video and audio 、 Graphics and image processing )
    Design patterns
  • What design patterns do you know ?
  • Talk about MVC、MVP and MWVM, Fortunately, where , It's not good ?
  • encapsulation p After the layer , If p Layer data is too large , How to solve
  • Whether it can be from Android Here are some examples of what design patterns are used ?

What's the difference between decoration mode and agent mode ?

  • There are several ways to implement the singleton pattern ? What is the purpose of the double lock in slouch style ? What is the purpose of two empty sentences ?
  • Some open source frameworks used , Introduce a source code , Internal implementation process .
  • Fragment If in Adapter How to decouple the use of ?

Android Advanced extension point

  • How to do unit testing 9, How to ensure App Stable
  • Android How to view a Recycling of objects
  • APK How to compress the size of ?
  • How to use Gradle Configure multichannel package ?
  • Analysis of plug-in principle
  • Principle of organization
  • Cross component communication
  • Routing in componentization 、 The realization of buried point

Hook And pile insertion technology

  • Android Signature mechanism of
  • v3 Signature key and v2 also v1 What's the difference?
  • Android5.0~10.0 A big change between ?
  • Under the said Measurepec This class
  • Please give an example of Android Layout types are commonly used in , And describes its usage and typesetting efficiency
    difference Animation and Animator Usage of , Summarize its principle
  • What image loading libraries have been used ? Glide Where is the source code design subtle ?
  • How to bypass the 9.0 Limit ?
  • Which network load libraries ? OkHttp、 Retrofit Realization principle ?
  • How to do this for application update ? ( Grayscale , Force update 、 Sub regional update )
  • Will use Kotlin、 Fultter Do you ? Talk about your understanding

Last

The preferred way of resume introversion , Fast , High efficiency ! And then you can pull the hook ,boss, affectionately , Look on the street . The resume says that if you are familiar with any technology, you must be familiar with it , Or it won't be embarrassing to be asked ! What projects have you done , Even if the size of the project is small , But also be familiar with the implementation principle ! It's not your part , You can also see how colleagues achieve it , What would you do if you did it ? What have I done? , What is breadth , Depending on the content of the project . But what have you done , How to reach a state , It's a matter of depth , It is related to personal learning ability and problem-solving attitude . Big companies look at depth , Small companies look at breadth . You will interview with a big company , Small companies are interviewing them. Will you , It's job matching .

After choosing the companies you want to go to , Go to some small companies first , Learn interview skills , Sum up , Also be familiar with the interview atmosphere , Usually with colleagues or products PK You can speak the truth , It's very clear , It's really different when we get to the scene , How to describe what you've done , This is definitely an academic issue !

Be polite during the interview ! Even if you think the interviewer doesn't respect you , Often interrupt your explanation , Or you think he's not as good as you , The questions asked are not professional , You are also - We must respect him , Now it's up to him to choose you , When you get it offer Then you choose him .

Gold, silver and four trial seasons , Job hopping season , It has been my habit for many years to sort out interview questions ! Here, I and some of my friends specially arranged a quick upgrade for Android Systematic and comprehensive learning materials for senior engineers . covers Android primary ——Android Some necessary learning skills for advanced Architects .

Enclosed : We collected 20 sets of first-line and second-line Internet companies because of autumn recruitment Android The real question of the interview
( contain BAT、 millet 、 Huawei 、 group 、 sound of dripping water ) And I sort it out myself Android Review notes ( contain Android Basic knowledge points 、Android expand
Show your knowledge Android The source code parsing 、 Design pattern summary 、Gradle Summary of common algorithm problems of knowledge points .)

《Android Summary of advanced interview questions (2022)》, It contains all Android Interview knowledge , It's safe to enter the big factory after brushing !

Java Basics  Please add a picture description

1. Comparison between static inner class and non static inner class

2. Understanding and application of polymorphism

3.java Understanding the polymorphism of methods

4.java The difference between interface and inheritance in

5. Benefits of thread pools , Detailed explanation , Single case ( It's definitely easy to remember ) Please add a picture description
6. Advantages and principles of thread pool

7. Advantages of thread pool ( a key )

8. Why not recommend to pass Executors Create thread pool directly

9. Not afraid of difficulties BlockingQueue And its implementation

Android Basics

 Please add a picture description
1.Activity Knowledge point ( Must ask )

2.Fragment Knowledge point
 Please add a picture description
3.Service Knowledge point

4.Intent Knowledge point  Please add a picture description

Performance optimization

 Please add a picture description
1. Startup optimization

2. Memory optimization  Please add a picture description
3. Painting optimization

4. Package optimization  Please add a picture description

Source code flow chapter

 Please add a picture description
1. Open source library source analysis

2.Glide Source code analysis

3.Android Interview questions :Glide

4.day 20 Interview questions :Glide Interview questions

5. Talk about Glide Those things in the interview  Please add a picture description
6. interviewer : If the resume says Glide, Please pay attention to the following points …

7.Glide OOM Problem solving summary

8.OkHttp The source code parsing

9.okhttp Connection pool reuse mechanism

10.okhttp Implementation of process and optimization

11. An article for your benefit okhttp analysis

12.OkHttp Interview –OkHttp The entire asynchronous request flow

The latest collection of interview questions

 Please add a picture description

1.android Event distribution mechanism , Please describe the whole process in detail

2.android view Drawing mechanism and loading process , Please describe the whole process in detail
 Please add a picture description
3.android The loading process of the four components , Please tell me more about

4.Activity Start mode of

 Please add a picture description
5.A、B、C、D There are four kinds Activity Start mode of , that A->B->C->D->A->B->C->D To start, respectively, , final activity What's the stack like

6.Activity Caching method

7.Service Life cycle of , Two ways to start , What's the difference?

8. How to guarantee service Not to be killed

9. Static Broadcast What's the difference with dynamic

10.Intent Which data types can be passed

11.Json What are the advantages and disadvantages 、 Principle of analysis

12. The compilation process of a language


remarks : Because there are too many dry goods in this set of notes , There is no way to One show , Put the catalogue here for everyone to enjoy , Friends in need can be in “ At the end of the article ”, I hope this set of notes can help you , Let everyone go smoothly on the road of interview !
 Please add a picture description

This full version of the learning materials has been uploaded CSDN , Friends can scan the bottom of wechat if necessary CSDN Officially certified QR code [ Guarantee 100% Free access ].

 Please add a picture description

原网站

版权声明
本文为[Small coating SS]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140615284517.html