Ali
Ali

Reputation: 267067

Where are Eclipse templates for Android activity classes kept?

When you create a new Android Activity from Eclipse, it comes with some default code put in, including the onCreate and onStart methods. Where can I edit this template to add new methods that I want to be created by default when new Android activities are created?

Upvotes: 0

Views: 808

Answers (2)

Mike
Mike

Reputation: 2409

Look at the template files located in android_home/tools/templates/activities/BlankActivity

Upvotes: 6

Eddy K
Eddy K

Reputation: 874

If you right click anywhere in your extended class, go to Sources-->Override/Implement Methods you can find all the methods that you can Override/Implement. Select all the ones you need and click ok

Upvotes: 0

Related Questions