Featured post
android - How to implement multiple screens within an App -
i working on android app has different service dimensions, such " service order", "route planning", "photo gallery" , central login. far implemented each "screen" (and screen mean layout of screen) seperate class, loads specific layout , handles listeners , core functionalities such calling webservices in thread, receiving answers etc. not quite sure if best way implemnt mulitiple layout-screens.
the android dev guideline proposes use single activities each "screen layout". doubt effective way of doing things. since need information each "layout" retrieved central login (here: user object). since activity (as far understand) seperate thread, passing , retrieving of information seems not practical.
i oppinions/feedback on , hint or tip.
so far structure looks :
- activity
- loads login layout (res/layout/login.xml setlcontentview)
- depending on buttonclick other resources loaded , initialized (means listeners added etc.)
greets peter
the dev guidelines recommend reason. effective way of doing things. may complain having store data can passed along activity activity, guess what? you're developing app phone! @ point in time, phone ring, forcing user switch away app. or user choose temporarily @ different app. if app goes square 1 after switching , lost data, user understandably angry.
- Get link
- X
- Other Apps
Comments
Post a Comment