In android, how can I create a constructor for a class which is also an Activity?
My problem is,
I want to have two activity cl
In android, how can I create a constructor for a class which is also an Activity?
You don't.
I want to have two activity classes (estimateFare and Mapping) which both send data to a an activity class (CalculateFare).
None of those classes will be touching each other except via startActivity(). Pass data between activities via Intent extras or via a central data model (e.g., database).
When the class is called during runtime of the application I get the following message in the LogCat
That is because you need to delete your constructor.