Skip to content Skip to sidebar Skip to footer

Simple Android App - Out Of Memory Error When Running On Smartphone

I am fairly new to Android Studio and I try to make a simple app. Random Images should appear after a button is clicked. The next cannot be one that was already showed. I have two

Solution 1:

add these in your manifest these lines:

android:hardwareAccelerated="false"android:largeHeap="true"

@your manifest.xml would like be:

<application
android:allowBackup="true"android:hardwareAccelerated="false"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"android:largeHeap="true"android:supportsRtl="true"android:theme="@style/AppTheme">

Post a Comment for "Simple Android App - Out Of Memory Error When Running On Smartphone"