Thank you, but I think 16MB is the limit of one program not the
emulator, doesn't it?
I've test many times, also in real machine like HTC MAGIC G2, the
program throw "OutOfMemoryError" when using about 16MB memory. Now I
am wondering if i can using more than 16MB memory in one program or
not.
There's another problem, how can I know how many memory my program is
using?

On 8月5日, 上午12时13分, "Balwinder Kaur (T-Mobile)" <balwinder.k...@t-
mobile.com> wrote:
> You can add -memory for the emulator. If you are using Eclipse, edit
> your run configuration  to add the -memory command line option.
>
> go to <your_Android_SDK_PATH>/tools/emulator -help to see all the
> emulator options.
>
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 3, 11:17 pm,whitech<[email protected]> wrote:
>
>
>
> > Thank you very much, I can catch the error now. I've use catch
> > (Exception) not catch(Error) before so I can't catch it.
> > There is another problem, can I push the limit of memory higher? It is
> > a little too small with only 16 MB. If can, what should I do?
>
> > On 8月4日, 上午2时15分, "Yusuf T. Mobile" <[email protected]> wrote:
>
> > > Hello, to see the exception, look at logcat. You can do that from
> > > either the command line, or from the DDMS tab in Eclipse.
>
> > > Yusuf Saib
> > > Android
> > > ·T· · ·Mobile· stick together
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
>
> > > On Aug 2, 7:55 pm,whitech<[email protected]> wrote:
>
> > > > Hi all! I'm new here.
> > > > Now I've met a problem: when my program using too much memory, it die.
> > > > Is there an exception or something else? And how to get it?
> > > > Thank you very much!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to