My app has a service running as well. The problem is when I check the "Running" settings of my phone, my service is taking considerably more RAM than other services. Most of the other services are in around 5 MB to 10 MB range (except Facebook which uses 15 MB) while my app uses 23 MB! And possibly due to this heavy usage, my service is getting killed frequently.
What happens in my service is that I am accessing an sqlite database to get some urls (about 4), then download those json files using HTTPUtils service (so basically there is a service calling another service), parse the files using jsonparser, show a notification if necessary and in the end update the same sqlite database with new values.
All this takes up more than 20 MB of RAM. Is this normal? What normally increases RAM usage in a service?
What happens in my service is that I am accessing an sqlite database to get some urls (about 4), then download those json files using HTTPUtils service (so basically there is a service calling another service), parse the files using jsonparser, show a notification if necessary and in the end update the same sqlite database with new values.
All this takes up more than 20 MB of RAM. Is this normal? What normally increases RAM usage in a service?