0

In my android app, if I have an activity called Home.java, how could I get the string "Home" on the oncreate event of that activity?

Thanks.

1 Answer 1

5
this.getClass().getSimpleName() 
Sign up to request clarification or add additional context in comments.

1 Comment

hi Omega, if this solved your problem please mark it as solved

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.