4

i have done one small coding in mainactivity.java and now i have to create another java in src folder in android eclipse but i am not able to do it

i want to create as shown below
enter image description here

so i want to create new class stackinfoactivity . enter image description here

i click on the next after choosing android activity in the menu menu enter image description here

i choose blank and hit next enter image description here

details entered and click on next button enter image description here

instead of creating a class i am getting an error i have added all the unique details is there any problem with my eclipse i need to correct my eclipse

enter image description here

i clicked on finish button the activity will not get created i have colored the image above

please anyone suggest me how to correct and get rid of this error

Sandeep V
  • 463
  • 1
  • 11
  • 20

2 Answers2

5

Check if you have older version of ADT plug-in.

You need to update ADT plug-in after updating SDK manager. Not just select "Help->Check for Updates" but select "Help->Install New Software..." and select the ADT site to install newer version of ADT plug-in.

The recent version of ADT plug-in is 22.6.0.v201403010043-1049357 I had the same problem after I upgrade SDK manager and my ADT-plugin is 22.3 at that time. "Check for Updates" always tell me no update available.

Maruku
  • 468
  • 3
  • 10
0

You can do this also like following way.

Right click on your Package name that is com.redpot.stockquote folder of your project then select new then select class you will get window like following images. (Please follow link as i don't have enough reputation to post images here)

http://share.pho.to/4tXRY

Here in Name just enter your activity name like StockInfiActivity. And then select Finish and you will see your Activity in your src folder.

user3395743
  • 293
  • 2
  • 12