Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
azzuwan1818yBecause that one android sdk designer that wakes up every morning and questioned himself how can I make people's life more miserable and complicated today?
-
webdev22028y@Kushtrim
im sure there is more into it, but all i wanna do is swtich activity and send data to it, so as a front end guy openActivity('highscore', data); would be fine
you get me :) -
LLAMS37488ywe kinda have to do this in iOS too, kinda....
where we have a segue from one controller to another, we can call a function to prepare any required data before the segue is executed. we typically grab the destination viewcontroller which has been initialised at this point, and set its member variables appropriately. i kinda prefer this approach because it means the destination view doesnt have to do any weird initialisation of variables from the previous view in the stack. it all gets done before the new view is presented. -
Lukas18728yMaybe a simple pattern like this: make all activities implement the same interface.An app is just list of these interface references which can dynamically be managed... The interface can be used to pass data. @Kushtrim
Related Rants
why do you need to create an object to switch between activities? why?
undefined
why
im a front end dev
java
omg
android