The problem is, in Eclipse, the new >> Project >> Android >> Android Application Project >> BlankActivity
does not create any Activities in the src
directory, and does not include the Activities in the manifest.xml
.
I know this question has been asked before:
- Eclipse Juno won't create Android Activity
- Eclipse doesn't create Main Activity and layout
- Eclipse android project not creating blank activity
However, the selected answers to these all say somthing like:
click "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/
The above answer did not work for me. Here are some details of my setup:
- Installed "Eclipse ADT" from the Android website
- Followed the installation instructions (unzipped contents and opened Eclipse)
- Downloaded necessary APIs using the ADT Manager
Tried creating
new >> Project >> Android >> Android Application Project >> BlankActivity
, this worked fine except no Activity insrc
ormanifest.xml
.Tried the answer given in other SO questions, i.e. "Install new software" and install (this will update it) from this url:
https://dl-ssl.google.com/android/eclipse/
. This updated "Development Tools" to version 23.0.- Tried creating
new >> Project >> Android >> Android Application Project >> BlankActivity
, but still did not work.
I know I could install these files manually, but I am following the Android Dev Tutorials and they often assume the base project creation worked perfectly, and do not give the source files.