Example #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_main);
   imageView = (ImageView) findViewById(R.id.imageView);
   IMAGE_CACHE.initData(this, TAG_CACHE);
   IMAGE_CACHE.setContext(MainActivity.this);
   IMAGE_CACHE.setCacheFolder(DEFAULT_CACHE_FOLDER);
   IMAGE_CACHE.get(
       "http://e.hiphotos.baidu.com/baike/c0%3Dbaike80%2C5%2C5%2C80%2C26/sign=12b7a0ba0a33874488c8272e3066b29c/a9d3fd1f4134970ad4ddeec593cad1c8a6865daa.jpg",
       imageView);
 }
Example #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   LogUtils.d("---->MainActivity onDestroy stopNetworkService");
   stopNetworkService();
 }
Example #3
0
 @Override
 protected void onResume() {
   super.onResume();
   LogUtils.d(TAG, "--->onResume");
 }