Title: @App in @EBean is Null · Issue #481 · androidannotations/androidannotations · GitHub
Open Graph Title: @App in @EBean is Null · Issue #481 · androidannotations/androidannotations
X Title: @App in @EBean is Null · Issue #481 · androidannotations/androidannotations
Description: I used an @app in @ebean,but it's Null. I read the code: public static HttpUtil_ getInstance_(Context context) { if (instance_ == null) { instance_ = new HttpUtil_(context.getApplicationContext());//here used activity's application } ret...
Open Graph Description: I used an @app in @ebean,but it's Null. I read the code: public static HttpUtil_ getInstance_(Context context) { if (instance_ == null) { instance_ = new HttpUtil_(context.getApplicationContext());...
X Description: I used an @app in @ebean,but it's Null. I read the code: public static HttpUtil_ getInstance_(Context context) { if (instance_ == null) { instance_ = new HttpUtil_(context.getApplicationContext...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/481
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@App in @EBean is Null","articleBody":"I used an @App in @EBean,but it's Null.\nI read the code:\n\n1.\npublic static HttpUtil_ getInstance_(Context context) {\n if (instance_ == null) {\n instance_ = new HttpUtil_(context.getApplicationContext());//here used activity's application\n }\n return instance_;\n }\n\n2.\nprivate HttpUtil_(Context context) {\n context_ = context;\n init_();\n }\n\n3.\nprivate void init_() {\n if (context_ instanceof Activity) {//but here,the context is application,not activity. so the application is null;\n Activity activity = ((Activity) context_);\n application = ((SoApplication) activity.getApplication());\n }\n loginInfo = new LoginInfo_(context_);\n }\n","author":{"url":"https://github.com/cyzgbw","@type":"Person","name":"cyzgbw"},"datePublished":"2013-01-30T16:18:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/481/androidannotations/issues/481"}
| 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:64f55634-9d08-ebfa-27ed-96e2cf47660d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C69A:830DA:2638D35:34F1BD7:6A60B245 |
| html-safe-nonce | 711d86ba554695ae77268b5acfacccd53162747dc15ef22006a43442d5de9496 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjlBOjgzMERBOjI2MzhEMzU6MzRGMUJENzo2QTYwQjI0NSIsInZpc2l0b3JfaWQiOiIzNzY4NDU5NjA5Mjk0MDI1Mjg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3748efe92936d26e212b58fb0572c125f94d6b52eefdce24fdc9d4c8b77eb03a |
| hovercard-subject-tag | issue:10464680 |
| 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/481/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53846775476d748a359a94b840bb726cb4fa60e442c26916da33aa3aeb2d62ad/androidannotations/androidannotations/issues/481 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53846775476d748a359a94b840bb726cb4fa60e442c26916da33aa3aeb2d62ad/androidannotations/androidannotations/issues/481 |
| og:image:alt | I used an @app in @ebean,but it's Null. I read the code: public static HttpUtil_ getInstance_(Context context) { if (instance_ == null) { instance_ = new HttpUtil_(context.getApplicationContext());... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cyzgbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35671f8a6946a7a2a81d51ae49f5465bdc5f925c23c9cb839206b24345dbe8d9 |
| 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 | 746dc49090e6e3995bb502dce0f8807393e36eda |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width