Creating abstract Activity classes

I am working on creating abstract activity classes for my application that I will reuse for each activity.
  1. Super Class:
  2. My Abstract Class extends myActivity
  3. Example activty in my application extends myActivity.
I will have 10-20 of these exampleActivity.
How can I write my abstract class (#2) to force my example class to override methods like onCreate() and onStart()?
Is this possible in Java?

However you can create abstract functions myOnCreate and myOnStart and call those in your abstract class implementation of onCreate and onStart.
You might also want to make onCreate/onStart final, although it's difficult to see what the benefit is of forcing myOnCreate instead of onCreate.

Popular posts from this blog

เทคนิค ชนะ เกมเศรษฐี 14 ตารวด!!! ( Let's get Rich )

Using Google Chrome Inspect Element to Analyze the website

Easy way to download whole youtube play list and convert them to mp3