0
votes

I am working with android app.Since I am new to android development, I completed my recipe app using diff XML file. I used each XML page for each item and it can be selected using the list activity. But it seems to be large memory size . How can I reduce this memory ?? Or is there any other method without using diff XML for each one ??? please help me and thanks

2
whats the present size of app? - Harish Koona
above 20 mb for the generated apk file :( how can i reduce this ?? is it any way to reduce the number of xml file ?? ie, can content to store to a single one ?? is it posible ??? if yes , kindly explain please - ptm
are you using any video files or images files.. - Harish Koona
i used images an text only for the xml pages - ptm
[Hope this help you.][1] check this question [1]: stackoverflow.com/questions/3815269/how-to-reduce-app-apk-size - Harish Koona

2 Answers

1
votes

you can define all view at runtime..

so it will consume memory.

0
votes

you can make all the views at the run time. and if some activities has same layouts you can use one layout for all that activities.

Try to generate all the layouts values dynamically. It will reduce size as well as helps to maintain the app for future updates.