Reputation: 141
I want to create a new Preferences Screen using the SettingsActivity template. All the websites I looked at gave me these steps:
I do not get any such thing in the "New" menu options. All I have are Java Class, Android Resource File and Directory, File, Package, Image Asset, Android Component, package-info.java, HTML file.
When I select Android Component, a dialog box appears allowing me to choose between Activity, Fragment, Application, Service etc., and that is it.
I have Android Studio version 1.0.2 and from folders I see in (...)Android\Android Studio\plugins\android\lib\templates\activities I do have the SettingsActivity template.
How do I create a new Activity from any of these templates?
EDIT: I am not using Gradle.
Here is the screenshot of the menu I get.
Upvotes: 0
Views: 2157
Reputation: 3451
The wizards are sensitive to the cursor position and selection. Click on the package name under "src/main/java" first. Then right click. You should see the following. If not, can you post the image that you do see?
Upvotes: 2