Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能告诉我android如何定义应用程序的最大堆大小吗? 我得到这个:
W/dalvikvm(2306): 58503184 字节分配超过了 50331648 字节最大堆大小
我想知道android如何/在哪里定义最大堆大小?
它因设备而异。
您可以通过运行getMemoryClass()来获取设备的每个应用程序的大致内存类别