Title: Can't extend Activities. · Issue #265 · androidannotations/androidannotations · GitHub
Open Graph Title: Can't extend Activities. · Issue #265 · androidannotations/androidannotations
X Title: Can't extend Activities. · Issue #265 · androidannotations/androidannotations
Description: Hi there! For my application, I need 2 activities : A classical one, for Tablets, using AA. The second one, for Phone, using the "android:configChanges" attribute (to avoid application restart on orientation change). Both will share the ...
Open Graph Description: Hi there! For my application, I need 2 activities : A classical one, for Tablets, using AA. The second one, for Phone, using the "android:configChanges" attribute (to avoid application restart on o...
X Description: Hi there! For my application, I need 2 activities : A classical one, for Tablets, using AA. The second one, for Phone, using the "android:configChanges" attribute (to avoid application re...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/265
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't extend Activities.","articleBody":"Hi there!\n\nFor my application, I need 2 activities : \n- A classical one, for Tablets, using AA.\n- The second one, for Phone, using the \"android:configChanges\" attribute (to avoid application restart on orientation change).\n\nBoth will share the same code, excepted the 2nd one which will handle \"onConfigurationChange\" by itself. \nSince we can't duplicate activities in the Manifest, my plan was to extends the first one :\n\nclass MyPhoneActivity extends MyTabletActivity_ { ... }\n\nBUT, using @EActivity on MyTabletActivity, the generated class is final! \n\nIs there any workaround possible, that's really frustrating!\n\n(To those asking why I'm not using the same activity for both tablets and phone : the phone activity has the same layout in both portrait and landscape, while the tablet activity have different one. Thus, application restarting is useless concerning phone. Even more considering that handling configuration change is the ONLY way to keep webviews state.)\n","author":{"url":"https://github.com/renaudcerrato","@type":"Person","name":"renaudcerrato"},"datePublished":"2012-07-06T06:26:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/265/androidannotations/issues/265"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ca697920-8e8e-8185-973a-3e1df0cbb46b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F14:3948C3:2994393:3C68F0B:6A60CDD6 |
| html-safe-nonce | 1c8053198d127b6d0ff5dc2070bb816e71472892506ee2406b4f35c47c236a35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjE0OjM5NDhDMzoyOTk0MzkzOjNDNjhGMEI6NkE2MENERDYiLCJ2aXNpdG9yX2lkIjoiNDg1MDk1MTU2MDQ1ODkzMDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b85e99dea7b5ad281ed645a800617e2e48af79a09a551fe1e5edf0d2084e640 |
| hovercard-subject-tag | issue:5459455 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/265/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4ea522c3ddb9824c315cf61d194928429085f6d4b346d18856f2d0aefb629d5/androidannotations/androidannotations/issues/265 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4ea522c3ddb9824c315cf61d194928429085f6d4b346d18856f2d0aefb629d5/androidannotations/androidannotations/issues/265 |
| og:image:alt | Hi there! For my application, I need 2 activities : A classical one, for Tablets, using AA. The second one, for Phone, using the "android:configChanges" attribute (to avoid application restart on o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | renaudcerrato |
| hostname | github.com |
| expected-hostname | github.com |
| None | a9556c67fd2e63f5fecafc192915a3b089ef8170a9384ff6b59d7b4a2f6b73f8 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f464e59c3a800187a50f3c89c36ee16df9992c1b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width