无法在Eclipse中执行初始Android Wear的Hello World应用程序 [英] Unable to execute initial Android Wear Hello World App in eclipse
问题描述
在intial Eclipse的红月设置,当我尝试运行在Android Wear模拟器的intial的Hello World的应用程序,它得到停止显示你不能将刷卡解雇和操作栏中的错误logcat.Please帮我解决这个问题
After intial Eclipse Luna setup when I try to run the intial Hello World app in the Android Wear emulator, its getting stopped showing "You cannot combine swipe dismissal and the action bar" error in logcat.Please help me to solve this issue.
推荐答案
昨天我有同样的问题。我解决了它运行在全屏模式下的应用程序,我不认为这是最好的解决办法,但它的工作,虽然这并没有行动起来吧。
I had the same problem yesterday. I solved it by running the application in full screen mode, I do not think this is the best solution, but it worked, although this does not have the action bar.
在你onCreate方法中的setContentView之前添加这一点。
In you onCreate method add this before the setContentView.
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
这篇关于无法在Eclipse中执行初始Android Wear的Hello World应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!