Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to execute initial Android Wear Hello World App in eclipse

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.

like image 455
Saikat Saha Avatar asked Jul 04 '14 06:07

Saikat Saha


Video Answer


2 Answers

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.

In you onCreate method add this before the setContentView.

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
like image 150
blablabla2424 Avatar answered Sep 27 '22 23:09

blablabla2424


Make sure you're not using a theme that includes an action bar. Consider using

android:theme="@android:style/Theme.DeviceDefault"
like image 44
jlapenna Avatar answered Sep 27 '22 21:09

jlapenna