uptechteam / MotionViews-Android

Code Guide: How to create Snapchat-like image stickers and text stickers.
https://blog.uptech.team/how-to-create-snapchat-like-stickers-for-android-50512957c351
MIT License
479 stars 112 forks source link

Out of memory problem #34

Closed berviantoleo closed 6 years ago

berviantoleo commented 6 years ago

Hello, I want to try include this motion views to my application. I want to initialize some text sticker first. But, when I start the activity, I have out of memory problem when create bitmap. How I solve this problem? If need stacktrace the exception, I will write it down.

Thank you.

AndriyBas commented 6 years ago

@berviantoleo yeah, attach the stack trace and the code how you initialize all the classes. Does the example app work for you when you run it? if yes - most likely you missed something in the initialization.

berviantoleo commented 6 years ago

Example app work for me. I think the problem is when I tried init sticker with size too big, so when I created the bitmap will raised out of memory. This issue may be closed.