TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Parcelgen: A Code Generator for Android Data Objects

8 pointsby pretzabout 14 years ago

1 comment

heliodorabout 14 years ago
Hmm.<p>There are plenty of iPhone devs glad to ding on Android, but really, the buildings blocks and concepts are practically identical. Parcelable is intended for storing your app state when it gets pushed to the background, just like on iPhone!<p>If you have data that pertains to a single screen, place it in the Activity. If you have data that pertains to the whole app, store it in the Application object. It's easily accesible. Problem solved! Saying the Application members are "global" to the various Activity classes is the same as saying a class's members are "global" to its inner classes. Bottom line, the data pertains to the application. Store it there!
评论 #2464933 未加载