android - Activity Launch Mode Single Instance Usage -


i have 2 activities. webviewactivity , camerapreviewactivity

i should able switch between 2 activities on click of button. once have started camerapreviewactivity, further loads of activity should not take time initialize camera view. should getting resumed previous state.

is idea keeping launch mode of both activities 'single instance' , start activities when respective button clicked?

is idea keeping launch mode of both activities 'single instance' , start activities when button clicked

yes, mark launchmode singleinstance in manifest, not call finish() method in of them. call activity there in stack.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -