android - getting "androidApplicationContext must be not null!" crashes from crash reporting service -


after supporing linkedin social network, app i'm working on has caused many crashes thing written there "androidapplicationcontext must not null!" .

i've searched internet , , found next links clues:

aug 28 17:15:23 <s3nsat10n> has run across stacktrace this? http://pastebin.com/qev9d8xh aug 28 17:15:33 <s3nsat10n> has null app context inside apache httpclient aug 28 17:15:38 <hodapp> wongk: yeah, i'm confused why it's doing this... aug 28 17:15:47 <s3nsat10n> highly modified httpclient seem, judging naf.gba package stuff aug 28 17:15:51 <s3nsat10n> seems happening on samsung galaxy s devices, don't know if that's case. aug 28 17:16:48 <wongk> s3nsat10n: never see aug 28 17:16:50 <wongk> seen aug 28 17:17:17 <s3nsat10n> yeah :/ aug 28 17:17:22 <s3nsat10n> neither has of internet... aug 28 17:17:23 <s3nsat10n> heh 

has else got weird , super rare error?

if how did fix it?

two solutions :

  • use httpurlconnection instead of httpclient
  • create instance of httpclient in main thread of application, possible, instance in oncreate method.

more details here.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -