MT4j Android setup
Posted: 22 May 2012 01:30 PM   [ Ignore ]
Rank
Joined  2012-03-13
Total Posts:  14
New Member

Hi,

I’m trying to run the sample android application given in mt4j site in an android emulator.
The app is getting installed properly but I couldnt run it. When I click the app icon it says “Unfortunately the application has closed”.

I have developed mt4j application in windows and used all the necessary dll’s and jar files. Its working perfectly fine in windows.
Also there is a settings.txt file in windows and not in android.

Do I need to do any config changes for mt4j android apps. Currently I am packaging the .apk file using netbeans and use jar files androidProcessing.jar,mt4j-android.jar,mt4j-core.jar
Also want to mention that when I open the .apk file I dont see the jar files in it. Is that the cause for the failure ?
Can anyone please help me on getting an android mt4j app run in my android emulator ?

Thanks in advance

Profile
 
 
Posted: 22 May 2012 06:02 PM   [ Ignore ]   [ # 1 ]
Rank
Joined  2012-03-13
Total Posts:  14
New Member

I debugged the android emulator and found the following issue
E/AndroidRuntime( 547): FATAL EXCEPTION: GLThread 75
E/AndroidRuntime( 547): java.lang.NoSuchMethodError: de.looksgood.ani.Ani.init
E/AndroidRuntime( 547):  at org.mt4j.util.animation.ani.AniAnimation.init(AniAnimation.java:76)
E/AndroidRuntime( 547):  at org.mt4j.MTAndroidApplication.setup(MTAndroidApplication.java:100)
E/AndroidRuntime( 547):  at processing.core.PApplet.handleDraw(PApplet.java:1778)
E/AndroidRuntime( 547):  at processing.core.PGraphicsAndroid3D$A3DRenderer.onDrawFrame(PGraphicsAndroid3D.java:7331)
E/AndroidRuntime( 547):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462)
E/AndroidRuntime( 547):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
W/ActivityManager( 77):  Force finishing activity gov.ca.lc.menu/.StartMT4jApp
W/WindowManager( 77): Failure taking screenshot for (180x300) to layer 21025
D/dalvikvm( 180): GC_FOR_ALLOC freed 3720K, 23% free 17391K/22471K, paused 56ms
D/dalvikvm( 180): GC_CONCURRENT freed 1825K, 22% free 17595K/22471K, paused 5ms+38ms

Any ideas ?

Profile
 
 
Posted: 22 May 2012 07:31 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2012-03-13
Total Posts:  14
New Member

Guys,

The issue is resolved after adding the ani.jar file.

Profile