毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> 移动平台 >> 正文

graphics.Canvas.throwIfRecycled(Canvas.java:954)

更新时间:2013-3-27:  来源:毕业论文
graphics.Canvas.throwIfRecycled(Canvas.java:954)
java.lang.NullPointerException
  at android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
  at android.graphics.Canvas.drawBitmap(Canvas.java:980)
  at org.achartengine.GraphicalView.onDraw(GraphicalView.java:174)
  at android.view.View.draw(View.java:6880)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.widget.FrameLayout.draw(FrameLayout.java:357)毕业论文 
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.widget.FrameLayout.draw(FrameLayout.java:357)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
  at android.view.View.draw(View.java:6883)
  at android.widget.FrameLayout.draw(FrameLayout.java:357)
这不就是出错位置吗?第174行
at org.achartengine.GraphicalView.onDraw(GraphicalView.java:174)
  通过LinearLayout chartView; 只定义了chartView这个对象类型,但是未看到有实始对像的代码,也就是说chartView是null,你要在onCreate里面再增加一个代码:
chartView = new LinearLayout(getApplicationContext());
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。