最近需要进行面试,在这里出几道android面试题,大家可以玩一下:
1)开发过程中,如果有两个线程Thread,new 两个对象Thread A和 Thread B;
A.excute();B.excute();
能否保证A执行完后B再执行;如果不能,能否保证顺序执行。
<span style="font-family:SimSun;font-size:14px;">CustomHandler handler = new CustomHandler("L");
A = new MyThread(handler.getLooper(),);
B = new MyThread(handler.getLooper());</span>
如果我们提供一个耗时的方法,不清楚该方法是被主线程调用还是其他线程调用,这时候有木有办法进行区分处理
<span style="font-family:SimSun;font-size:14px;">if (Looper.myLooper() == Looper.getMainLooper()) {
(new CacheTask()).execute(pTile, pDrawable);
} else {
putTileIntoCacheInternal(pTile, pDrawable);
}</span>
* onSaveinstance的调用时机
)两种序列化的区别
)如何写一个数组类:
publicclass AList extends AbstractList<A> {}
8)2014年的google I/O大会几个亮点,android L 谈一下dalvik和ART的区别
9)换肤的了解,asert文件夹和raw的区别,编译时.9
10)应用程序的启动过程
11)android 自动化构建
12)插件化的几种方式。dexloader,有木有办法更换布局