When I open this activity the memory allocated goes from 11MB to almost 50MB..
In this activity I've only a framelayout with Images.. And I move the dot image with the onTouchEvent..
Can Anyone tell me why I'm using such a lot memory? Even when I press the back button leaving the activity the memory allocated remains 50MB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fl"
tools:context="it.uniroma3.sensorlog">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/mappa"
android:id="@+id/map"/>
<ImageView
android:layout_width="10dp"
android:layout_height="10dp"
android:src="@android:drawable/ic_notification_overlay"
android:id="@+id/dot"
/>
</FrameLayout>