How could I get the size of

by A.TNG » Wed, 02 Sep 2009 17:50:59 GMT

Sponsored Links

In my application, I will get a instance of
which is populated by user. Then I use writeToStream to save. After
save, I have to check the file size. If the size is too large, then I
should delete this file.

I think this save-check-delete operation is not reasonable. I prefer
to check the size of If the size is too
large, I should not save to local. But I checked, it only have getHeight and getWidth member

Could I get the size of

Thanks for help,

Other Threads

1. Screen locked

How do I get past the screen security maze? One more try and I was
instructed to use my email and log in which I haven't set up.


2. How service get notified when "stopService" is called

AFAICT, there isn't any way exposed to the SDK to be notified when
stopService is called.  However, there is an onDestroy() method that you can
implement that Android calls when it is about to get rid of the service, but
I don't think that is necessarily what you are looking for.

There are only 10 types of people in the world...
Those who know binary and those who don't.


3. How can a parent handle touch events BEFORE its children?

4. Video Chat

5. feedback from an Alert dialog

6. Advice needed for app navigation methods

7. APK not visible in market for HTC Tattoo Android Phone ?