tag:blogger.com,1999:blog-89878749563391212.post1038068210088166977..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Android SurfaceView, run in Thread with sleep()Unknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-89878749563391212.post-87210455760963370002013-03-12T03:05:30.532-07:002013-03-12T03:05:30.532-07:00Thanks a lot :)Thanks a lot :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-34987437098835057182010-12-28T06:12:23.486-08:002010-12-28T06:12:23.486-08:00Hello Mike,
I don't know the exact details of...Hello Mike,<br /><br />I don't know the exact details of your case. You can modify the parameter of sleep() to make it running faster.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-75121702049540733842010-12-26T10:50:20.233-08:002010-12-26T10:50:20.233-08:00This is a great example, exactly what I needed for...This is a great example, exactly what I needed for helping me with my project. I created a similar application using your basic template, but it seems to run fairly slow in the emulator.<br /><br />I was wondering if all of the redraws are maybe taxing on the resources? Do you know anything else that could be slowing the application down?<br /><br />I am trying to use your example to create an interactive game with other objects moving around the screen and using the down and move for two different user inputs.Mikehttps://www.blogger.com/profile/15313533511578883355noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-21744521635973693552010-10-16T00:50:49.882-07:002010-10-16T00:50:49.882-07:00To define surfaceView in main.xml, refer to anothe...To define surfaceView in main.xml, refer to another article:<br />http://android-er.blogspot.com/2010/05/another-exercise-of-surfaceview-in.htmlErikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-20626814538921835202010-10-13T08:42:57.119-07:002010-10-13T08:42:57.119-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/09427506455801148540noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-78942448779590153452010-10-13T08:42:36.080-07:002010-10-13T08:42:36.080-07:00@Override
public void onCreate(Bundle savedInstan...@Override<br /> public void onCreate(Bundle savedInstanceState) {<br /> super.onCreate(savedInstanceState);<br /> //setContentView(R.layout.main);<br /> <br /> MySurfaceView mySurfaceView = new MySurfaceView(this);<br /> setContentView(mySurfaceView);<br /> }<br /><br /><br />why can't I use R.layout.main???<br />It always occurs forcing close error...<br />But LunarLander can, I don't know how he did itAnonymoushttps://www.blogger.com/profile/09427506455801148540noreply@blogger.com