[android-developers] Problem in using api of AbstractAccountAuthenticator, in android.accounts

2011-05-19 Thread mathcat
Hi geeks! Im new to the android.accounts apis, and now Im trying to do something with them but a seemly dummy problem occurs... I`ve created an Authenticator for my app but did not yet implement the abstract methods. The icon of it successfully appears in the system Add a Account window, and I

[android-developers] Reusable HttpResponse in android network programming?

2011-04-11 Thread mathcat
Hi geeks! As using the network package which apache provides, we usually do : HttpResponse resp = httpClient.execute(httpRequest); When I retrieve the HttpEntity object of the response, open the InputStream and extract the data in it, the HttpResponse object becomes unusable. If I try to do the

[android-developers] Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread mathcat
In a custom view extending View, I call mPaint.drawText in the onDraw method, with a new Paint object mPaint. But the text drawn looks different to the default TextView, the lines are thinner and not smooth(like rope bitten by some insects). I just want it to be the same look as TextView.How to do

[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread mathcat
Thank you skink! But why the lines are thinner? how to make them the same as TextView? On Apr 4, 9:41 pm, skink psk...@gmail.com wrote: On Apr 4, 3:37 pm, mathcat scien...@gmail.com wrote: In a custom view extending View, I call mPaint.drawText in the onDraw method, with a new Paint object

[android-developers] Re: Text drawn by mPaint.drawText looks different with the default TextView?

2011-04-04 Thread mathcat
Thank skink! But why the lines are thinner than TextView? How to handle that? On Apr 4, 9:41 pm, skink psk...@gmail.com wrote: On Apr 4, 3:37 pm, mathcat scien...@gmail.com wrote: In a custom view extending View, I call mPaint.drawText in the onDraw method, with a new Paint object mPaint

[android-developers] Frustrating but quite common taking SNAPSHOT problem

2011-03-24 Thread mathcat
Taking photos using system provided component(MediaStore.ACTION_IMAGE_CAPTURE) is quit common. As Ive experimented, with a certain rate the android system will kill the snapshot calling Activity to prevent memory related exception, and the calling activity will be created again where returned.