This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Android and the fly likes can we call another activity in oncreate method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "can we call another activity in oncreate method" Watch "can we call another activity in oncreate method" New topic
Author

can we call another activity in oncreate method

sameera liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 643
I need to know that can we call another activity in oncreate method ?
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Answer is 'Yes'.

Now take a case..
Say you have three activity A,B,C

And you want to call Activity C from Activity B's onCreate method. Right ???
You can. But do not you think that calling Activity C from the activity where you are calling activity B.


In short you can do it if you have some specific situation
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: can we call another activity in oncreate method
 
Similar Threads
Error: "R cannot be resolved"
Is there a "refresh" ability on an activity?
onCreate method ?
Screen changing
Tring to do a spinner and i am getting errors