Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New Activity: Why Android Studio wants to create a Blank Activity for "Wear OS"?

In Android Studio when I want to make a new (blank) activity via the context menu, it always makes one for "Wear OS". Is this normal? How can I prevent this? I don't do anything with Wear OS.

My only solution is to do it by hand by creating the Java and Layout classes separately and update the Manifest file.

like image 645
Bogg Avatar asked Jun 18 '20 11:06

Bogg


People also ask

What is blank activity in Android Studio?

Empty Activity is the same as Blank Activity. It will gives you . xml file that will be your layout where you put your Buttons or EditTexts and . java file where you will code your activity. But Basic Activity will gives you two .

How can you create an android activity?

To create the second activity, follow these steps: In the Project window, right-click the app folder and select New > Activity > Empty Activity. In the Configure Activity window, enter "DisplayMessageActivity" for Activity Name. Leave all other properties set to their defaults and click Finish.

What is wear OS emulator pairing assistant?

⌚ The Wear OS pairing assistant guides you through the process of pairing Wear emulators with physical or virtual phones, directly in Android Studio. It also maintains an ADB connection between the two launched devices.


2 Answers

I think its Empty activity and not blank activity.I also had the same issue when i tried to create a blank activity it created a activity for wear os. Hope this solves your problem.

like image 87
Hariharan Avatar answered Oct 03 '22 17:10

Hariharan


I'm also facing the same problem, when creating a new blank activity, it wants to create a wearOS activity. I think this is a bug in Android studio 4.0.1

Select Empty Ativity instead of Blank Activity and it works as normal

like image 33
joke4me Avatar answered Oct 03 '22 16:10

joke4me