摘要:
When an application component starts and the application does not have any other components running, the Android system starts a new Linux process for... 阅读全文
摘要:
一、面向对象的编程1.可维护性:要改,只需要更改要改动的地方;2.可复用:代码单元可以再其他地方被反复使用;3.可扩展:要加新功能,只需很方便地增加即可;4.灵活性:代码单元的重新组合要很方便,以此实现新的功能。 二、面向对象的好处1.封装。通过封装,比如就可以将业务实现与界面显示实现分开;通过封装... 阅读全文
摘要:
The previous lesson showed how to define a task that executes on a separate thread. If you only want to run the task once, this may be all you need. I... 阅读全文
摘要:
This lesson shows you how to implement a Runnable class, which runs the code in its Runnable.run() method on a separate thread. You can also pass a Ru... 阅读全文
摘要:
The speed and efficiency of a long-running, data-intensive operation often improves when you split it into smaller operations running on multiple thre... 阅读全文
摘要:
主文件package cn.com.sxp;import android.app.Activity;import android.media.AudioManager;import android.media.MediaPlayer;import android.os.Bundle;import a... 阅读全文
摘要:
待续 阅读全文
摘要:
package cn.com.sxp;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.util.Log;im... 阅读全文
摘要:
package cn.com.sxp;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.util.Log;im... 阅读全文
摘要:
需要注意的地方已在代码中表明package cn.com.sxp;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.ViewGroup;import an... 阅读全文