Profile cover photo
Profile photo
Marius Kahmen
24 followers -
Tech & Software Junkie
Tech & Software Junkie

24 followers
About
Posts

Hey Gabriele,

just updated to Googles Support Library 22.1 (and to AppCompatActivity).
Not sure if this is the reason (can't go back to the old ActionBar right now) but I get the following OutOfMemoryError:

Throwing OutOfMemoryError "Failed to allocate a 28366860 byte allocation with 8388608 free bytes and 26MB until OOM"
 --- allocation failed for scaled bitmap

FATAL EXCEPTION: AsyncTask #1
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 28366860 byte allocation with 8388608 free bytes and 26MB until OOM
            at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
            at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
            at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:741)
            at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:562)
            at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:590)
            at it.gmariotti.cardslib.library.view.component.CardThumbnailView.decodeSampledBitmapFromResource(CardThumbnailView.java:344)
            at it.gmariotti.cardslib.library.view.component.CardThumbnailView$BitmapWorkerTask.doInBackground(CardThumbnailView.java:500)
            at it.gmariotti.cardslib.library.view.component.CardThumbnailView$BitmapWorkerTask.doInBackground(CardThumbnailView.java:486)
            at android.os.AsyncTask$2.call(AsyncTask.java:288)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:818)

Do you have an idea? Greetings!

Prob a dump question but after adding the lib to my gradle file, I get an error: "ERROR: In <declare-styleable> ForegroundLinearLayout, unable to find attribute android:foregroundInsidePadding"

(I added com.github.gabrielemariotti.cards:cardslib-core:2.0.1 - also doesn't work with 1.9.1)
Wait while more posts are being loaded