2014년 11월 29일 토요일

Element limit on apps?

Wondering if there's a limit of elements you can have to have a well running app. Or what would happen if it exceeded this limit.



no more than 10 screens
aia < 5 Mb
There are limits on the TinyDB ..it might be as small a 2 Mb of data or perhaps that limit is on a file loaded with File?  Someone will correct this if it is wrong I imagine.
Layouts ... too many and you are messed up.  How many? It depends on other stuff on your app
Some stuff depends on the device you design for, how much system memory it has (RAM)  and how much free space to store apps.

What would happen?    Your Android would melt?   Nah, nothing as exciting...your app would not be able to render an apk or perhaps an aia.   You might corrupt your project.The app would run fine for a short time, then the app would crash and you might or might not get Android error message

Exceed the limits and you will find out.  We have never had reports of the Android eating anyone.  At least not yet.



TinyDB is actually an XML file, about limits see this stackoverfow question http://stackoverflow.com/q/4925194/1545993



Thank you Taifun for the article... that article says an xml can be as large as anyone wants.   OK.   The reality is that over a certain size, the TinyDB is going to be un-manageable because of its size,  number of tags to sort, storage limitations on the device the app is loaded on etc.  Somewhere is the practical limit and that thread does say what the practical limit is.


댓글 없음:

댓글 쓰기