首页上一页 1 下一页尾页 5 条记录 1/1页
书上有错误,求解决
发表在Android图书答疑
2013-08-15
是否精华
是
否
版块置顶:
是
否
设置时间:
非永久
永久
起始时间:
结束时间:
是否扣分:
是
否
书名:android从入门到精通
141页,4.1.8 范例 1:显示在标题上的进度条
该例子在模拟器上只会显示第一个界面,然后马上模拟器就停止运行了,看不到进度条加载完出现的图片
141页,4.1.8 范例 1:显示在标题上的进度条
该例子在模拟器上只会显示第一个界面,然后马上模拟器就停止运行了,看不到进度条加载完出现的图片
精彩评论 5
2013-08-21
板凳
08-21 03:00:09.803: W/dalvikvm(2088): threadid=10: thread exiting with uncaught exception (group=0xb2cb5908)
08-21 03:00:09.813: E/AndroidRuntime(2088): FATAL EXCEPTION: AsyncTask #1
08-21 03:00:09.813: E/AndroidRuntime(2088): java.lang.RuntimeException: An error occured while executing doInBackground()
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$3.done(AsyncTask.java:299)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.lang.Thread.run(Thread.java:856)
08-21 03:00:09.813: E/AndroidRuntime(2088): Caused by: java.lang.OutOfMemoryError
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.content.res.Resources.loadDrawable(Resources.java:1965)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.content.res.Resources.getDrawable(Resources.java:660)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.widget.ImageView.resolveUri(ImageView.java:616)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.widget.ImageView.setImageResource(ImageView.java:349)
08-21 03:00:09.813: E/AndroidRuntime(2088): at com.mingrisoft.MainActivity$MyTack.doInBackground(MainActivity.java:47)
08-21 03:00:09.813: E/AndroidRuntime(2088): at com.mingrisoft.MainActivity$MyTack.doInBackground(MainActivity.java:1)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$2.call(AsyncTask.java:287)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
08-21 03:00:09.813: E/AndroidRuntime(2088): ... 4 more
08-21 03:00:09.813: E/AndroidRuntime(2088): FATAL EXCEPTION: AsyncTask #1
08-21 03:00:09.813: E/AndroidRuntime(2088): java.lang.RuntimeException: An error occured while executing doInBackground()
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$3.done(AsyncTask.java:299)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.lang.Thread.run(Thread.java:856)
08-21 03:00:09.813: E/AndroidRuntime(2088): Caused by: java.lang.OutOfMemoryError
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.content.res.Resources.loadDrawable(Resources.java:1965)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.content.res.Resources.getDrawable(Resources.java:660)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.widget.ImageView.resolveUri(ImageView.java:616)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.widget.ImageView.setImageResource(ImageView.java:349)
08-21 03:00:09.813: E/AndroidRuntime(2088): at com.mingrisoft.MainActivity$MyTack.doInBackground(MainActivity.java:47)
08-21 03:00:09.813: E/AndroidRuntime(2088): at com.mingrisoft.MainActivity$MyTack.doInBackground(MainActivity.java:1)
08-21 03:00:09.813: E/AndroidRuntime(2088): at android.os.AsyncTask$2.call(AsyncTask.java:287)
08-21 03:00:09.813: E/AndroidRuntime(2088): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
08-21 03:00:09.813: E/AndroidRuntime(2088): ... 4 more