All jobs / Mobile developer / Mobile Fundamentals
Mobile developer interview question · 0–1 years
The interviewer asks what happens when the user backgrounds your app. Which answer is strongest?
The strongest answer
The process can be paused, then killed at any time — I persist anything I would be sad to lose, and I do not assume timers or network calls finish
Why it works
Exactly. Lifecycle events are hints, not guarantees. Persist early; treat death as normal.
What a good answer covers
- Backgrounding is not a promise the process lives.
- Persist anything you cannot recreate the moment you leave the screen.
- Do not start unbounded work in a pause callback.
- Use the platform's background APIs when work must outlive the UI.
Answers that fall short
- Close, but not the strongest: onPause / scenePhase .background means I should stop animations; the process will still be there when they come back
Stopping animations is right — assuming the process survives is not. - Weak: Backgrounding always keeps the app in memory until the user force-quits
The OS will reclaim memory. Design for death, not for a forever-resident process. - Red flag: I start a long upload in onPause so it finishes while they are in another app
Background work needs an explicit API (WorkManager, BGTask, a foreground service) — not a leftover callback.
Who gets asked this
More Mobile Fundamentals questions
- A web teammate asks you to “just shrink the website” into the app WebView. What do you say?
- VoiceOver / TalkBack lands on a toolbar icon that is only a glyph. What is missing?
- The user opens the app on a train with no signal. What should they see?
- Marketing wants myapp://product/42. What do you warn them about?
- A marketing link should open a specific product screen. What must be true?
- The OS killed the app overnight. The user returns via a notification to a checkout screen. What should happen?
- TalkBack reads the price, then the image, then the title, then a decorative star. What do you change?
- A network call returns after the user has already left the screen (or the Activity was destroyed). What do…