android


What's the better way for a complex animation in android?


I'm trying to insert an animation in my app and I found two alternatives:
the first one is to use the "Drawable Animation" with the "animation-list", but my animation is made of 125 full screen frames and when I tried to start it the app crashed with the "java.lang.OutOfMemoryError".
I tried to fix the problem increasing the heap size by setting the android:largeheap="true" but didn't work.
Is a possible solution converting the images from jpg to png?
I found the solution here java.lang.OutOfMemoryError occur on the animation Loading? and something here Causing OutOfMemoryError in Frame by Frame Animation in Android, but I didn't find a correct solution.
The second way is to create the animation in javascript/html5 and putting it in a webview, but I don't know if this would be a good solution for the majority of android devices and I don't know if it is possible create a communication bridge between the webview and the app.
I found this http://developer.android.com/guide/webapps/webview.html#BindingJavaScript but I'm not sure if it will work.
So could you please give some idea on finding a way for complex animation in android?

Related Links

Specify folder path to XML file in Android
Android APK Certificates - what fields are required and what if that info changes?
Android TTS stops music player
stages for developing NFC applications
Android Packaging Error: semicolon expected
Event listener and event dispatching process
Unable to find instrumentation target package: com.android.cts.stub
HttpURLConnection reading input streams fails
Android Viewpager with asynctasks (spinner while page is loading)
Android File encryption and decryption
Loading image from cache using BitmapFactory.decodeStream() in Android
Configure android EditText to allow decimals and negatives
Intent resolution and difference between ACTION_CHOOSER and ACTION_PICK_ACTIVITY
How to create a Dialog with a Light theme? [duplicate]
animation of TextView's text size
Sending SMS programatically doesn't save it to Sent Items

Categories

HOME
android
grok
phpword
porting
dns
hessian
spring-data-mongodb
switch-statement
cakephp-3.4
onclick
limit
tvos
banner
pkcs#11
sendgrid-api-v3
owin
enthought
spring-social
shared-libraries
renjin
package-managers
capistrano3
event-sourcing
fileserver
red5
asp.net-mvc-viewmodel
soci
digital-signature
production
user-experience
rubymotion
joptionpane
beta
soot
ntp
magento-1.8
volatile
spring-security4
android-maps-extensions
gnat-gps
reactjs.net
numpy-broadcasting
protege4
xcode7.3
z-notation
node-mssql
protein-database
bc
loading
tasm
vmware-fusion
congestion-control
uiimage
puredata
jboss-4.2.x
ovf
term
mschart
tinymce-3
java-bytecode-asm
payload
cmp
jtree
swingworker
rmongo
pytables
jboss-tools
respondcms
kango-framework
mediametadataretriever
fuzzywuzzy
asyncdisplaykit
highland.js
rewrite
pypiserver
batik
nutiteq
node-serialport
java-security
cosine-similarity
nsmenu
raygun
mobility
ignite-ui
template-deduction
cuba
jquery-slider
renderer
synapse
android-audiorecord
ecslidingviewcontroller
light
inputmismatchexception
windows-phone-8-sdk
ebay-lms
onload-event
virtual-pc
dopostback
curb
usertype
luabind
automationelement
exponentiation
tournament
multiplatform
unattended-processing
photolibrary
non-clustered-index
application-planning
information-management
pbcopy

Resources

Encrypt Message