Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curl animation(like open page of book) in android

I am developing an app which include many images(hd) and these images will shown in next/previous by swapping screen left/right respectively. Changing of images should be like opening book pages(curl animation http://www.youtube.com/watch?v=_vOYvaNhSHw) and also on every page, i have to play different audio files on touching different parts of screens. I have googled and found many solutions for it but these are not working and showing memory out of bound exception. These urls are

  1. https://github.com/MysticTreeGames/android-page-curl
  2. https://www.youtube.com/watch?v=iwu7P5PCpsw
  3. Page curl effect in an Activity in android
  4. android taking screenshot of offscreen page
  5. http://www.youtube.com/watch?v=mP_AlvJqSLQ
  6. Android activity page curl animation
  7. make animation like page changing when swiped
  8. https://github.com/harism/android_page_curl
  9. Implement page curl on android? .... and many more.

In all above links either memory issue or curl animation is worst, So i can't get help from them.

Please help me to stuck out from these issue. It would be appreciated.

like image 226
Sangam_cs Avatar asked Oct 20 '22 22:10

Sangam_cs


1 Answers

can you add below option in manifest. In my case this help me when I have large bitmap and OutOfMemoryError

    android:hardwareAccelerated="true"
    android:largeHeap="true"
    android:icon="@drawable/ic_launcher_android"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"
like image 116
Satish Avatar answered Oct 27 '22 09:10

Satish