avinash
avinash

Reputation: 5

Create constructor in Android

I am new in Android platform.How to create different types of constructors (overloaded) of a particular Activity.. Is it similar to java or any difference is there? Anyone can help me please?

Upvotes: 1

Views: 2727

Answers (2)

Yusuf X
Yusuf X

Reputation: 14633

It's just Java and you do in fact create classes derived from Activity. If you were able to install the tools, then you're resourceful enough to go through any one of these fine tutorials:

Upvotes: 2

overbet13
overbet13

Reputation: 1674

I don't see why you would like to create different constructors for an activity. You should read about activity lifecycle (example), and then how to create an activity from another activity (example).

This should resolve your problem.

Upvotes: 3

Related Questions