解决方案 »
- 做一个像长按关机键弹出的对话框界面
- android 待机
- 请问执行createBindMounts()函数时用到的/mnt/secure/staging/android_secure目录是何时创建的?
- BaseExpandableListAdapter的疑问
- android 程序怎么默认或者说允许安装到sd卡
- synchronized()怎么理解呢
- 新手提问在线等
- Run 模式下还会出现Waiting For Debugger,怎么解决?
- 奇怪的布局文件,明明没错
- 大家有没有发现android studio 3.0的instant run每次都会重新安装程序
- WIFI Mac 地址
- 怎么搜索局域网中的电脑
GameView mGameView =(GameView)findViewById(R.id.gameview1);
Thread tR =new Thread(mGameVieW);
tR.start();
运行到run()方法就会出现空址异常,这是为什么
GameView mGameView =(GameView)findViewById(R.id.gameview1);
Thread tR =new Thread(mGameVieW);
tR.start();
运行到run()方法就会出现空址异常,这是为什么
可以直接用public static Bitmap decodeResource (Resources res, int id) (一步到位)
2.你为什么这么启动线程?在SurfaceView中surfaceCreated()方法里启动不是嘛好的好吗,
你条Thread tR =new Thread(mGameVieW)本身语法就是错误的,Thread类没有这个构造方法。
你只能继承Thread类,为mGameView写一个构造方法,这么写没有什么意义吧。