whitech wrote:
There's another problem, is there some way to know how many memory my
program is using ?
There is a memory pie chart available in DDMS, in the SysInfo tab, for a
high-level view of memory usage. Other DDMS tabs can let you track
allocations, force garbage collections, etc.
--
thank you, 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
On 8月4日, 上午2时14分, fadden thefad...@gmail.com wrote:
On Aug 2, 8:01
whitech wrote:
There is another problem, can I push the limit of memory higher? It is
a little too small with only 16 MB
Not without changing the firmware.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Training in Germany, 18-22 January 2010:
You really really should be catching OutOfMemoryError, not eating every
possible exception that could come out of the code.
2009/8/3 whitech whit...@163.com
thank you, 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,
Oh so sorry to hear that
Thank you.
There's another problem, is there some way to know how many memory my
program is using ?
On 8月4日, 下午6时39分, Mark Murphy mmur...@commonsware.com wrote:
whitechwrote:
There is another problem, can I push the limit of memory higher? It is
a little too
Firstly you can enter into the shell mode by typing adb shellthen because
android has a linux heart so you can type ps
to see all process's status which also including mem info.
Regards,
Caval.
2009/8/5 whitech whit...@163.com
Oh so sorry to hear that
Thank you.
There's another problem,
Thank you.
But I'm wondering if I can know how much memory I'm using in my
program so I can do some tractic in using memory. Is there some API
for us to use?
On 8月5日, 上午10时38分, caval cavalzh...@gmail.com wrote:
Firstly you can enter into the shell mode by typing adb shellthen because
android
You can refer to java.lang.Runtime by reference tab of Android SDK
online document.
regards,
Caval.
On 8月5日, 上午10时50分, whitech whit...@163.com wrote:
Thank you.
But I'm wondering if I can know how much memory I'm using in my
program so I can do some tractic in using memory. Is there some
On Aug 2, 8:01 pm, whitech whit...@163.com wrote:
Hi all. I've got this problem:
When my program using too much memory, it die. Is there an exception
or something else to warn me? How can I catch it?
What exception is appearing in the log file when your application
dies?
Uncaught handler: thread main exiting due to uncaught exception
java.lang.OutOfMemoryError
at xx
On 8月4日, 上午2时14分, fadden thefad...@gmail.com wrote:
On Aug 2, 8:01 pm,whitechwhit...@163.com wrote:
Hi all. I've got this problem:
When my program using too much memory, it
10 matches
Mail list logo