Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| interview:developer:android:start [2017/08/10 20:45] – don.lee | interview:developer:android:start [2019/07/28 15:36] (current) – old revision restored (2017/08/16 11:25) don.lee | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Basic ===== | ===== Basic ===== | ||
| + | |||
| + | ==== Question 1 ==== | ||
| * Suppose you have a v-shape array, e.g [1, 12, 31, 44, 51, 54, 23, 22, 10]. How to find the maximum value in a v-shape array? | * Suppose you have a v-shape array, e.g [1, 12, 31, 44, 51, 54, 23, 22, 10]. How to find the maximum value in a v-shape array? | ||
| Line 10: | Line 12: | ||
| ===== Android ===== | ===== Android ===== | ||
| - | ==== Question  | + | ==== Question  | 
| * Describe three common use cases for using an Intent. | * Describe three common use cases for using an Intent. | ||
| * 请说出 Intent 三个常用案例。 | * 请说出 Intent 三个常用案例。 | ||
| - | ==== Question  | + | ==== Question  | 
|   * Under what condition could the code sample below crash your application? |   * Under what condition could the code sample below crash your application? | ||
| Line 28: | Line 30: | ||
| </ | </ | ||
| - | ==== Question  | + | ==== Question  | 
| * What is the relationship between the life cycle of an AsyncTask and an Activity? What problems can this result in? How can these problems be avoided? | * What is the relationship between the life cycle of an AsyncTask and an Activity? What problems can this result in? How can these problems be avoided? | ||
| * AsyncTask 和 Activity 的生命周期有什麽関系?这个関系有可能导致什麽问题?你可以如何避免? | * AsyncTask 和 Activity 的生命周期有什麽関系?这个関系有可能导致什麽问题?你可以如何避免? | ||
| - | ==== Question  | + | ==== Question  | 
| * What is difference between Serializable and Parcelable ? Which is best approach in Android ? | * What is difference between Serializable and Parcelable ? Which is best approach in Android ? | ||
| * Serializable 和 Parcelable 有什麽分别?那一个在安卓使用比较好? | * Serializable 和 Parcelable 有什麽分别?那一个在安卓使用比较好? | ||
| - | ==== Question  | + | ==== Question  | 
| + | |||
| + | |||
| + | |||
| + | * Write down the log results at 4 different cases | ||
| + | * Start MainActivity | ||
| + | * Invoke onClick() at MainActivity | ||
| + | * User press back button from ActivityTwo | ||
| + | * Start ActivityThree | ||
| + | |||
| + | * 我们有以下三段代码,请分别写下以下四种执行后log的结果 | ||
| + | * 开始MainActivity | ||
| + | * 触发onClick() at MainActivity | ||
| + | * 用户在ActivityTwo按back button | ||
| + | * 开始ActivityThree | ||
| - | * 我们有以下代码 | ||
| < | < | ||
| Line 198: | Line 213: | ||
| } | } | ||
| </ | </ | ||
| - | |||
| - | * Write down the log results at 4 different cases | ||
| - | * Start MainActivity | ||
| - | * Invoke onClick() at MainActivity | ||
| - | * User press back button from ActivityTwo | ||
| - | * Start ActivityThree | ||
| - | |||