Compare icon indicating copy to clipboard operation
Compare copied to clipboard

Porting to Android

Open aayush-k opened this issue 9 years ago • 2 comments

I am trying to port this to android (already have it running it successfully on iOS) and am having trouble with all the data being managed by the main thread, giving me this exception:

Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc48500bc in tid 24726 (mqt_js)
                                                 
[ 01-29 13:37:53.769   377:  377 W/         ]
debuggerd: handling request: pid=24686 uid=10178 gid=10178 tid=24726

[1:41]  
com.compare I/Choreographer: Skipped 117 frames!  **The application may be doing too much work on its main thread.**
                                                           
[ 01-29 13:37:55.735 25005:25005 E/         ]
debuggerd: failed to kill process 24686: No such process

aayush-k avatar Jan 29 '17 18:01 aayush-k

I don't have Android and I am not sure about its technical limitation, but it seems like "too much work on its main thread" is coming from the path animation, which is done in JavaScript instead of native code. To fix the error, it seems necessary to implement the animation in native code. Or do you have any suggestion for solving this problem?

shuhei avatar Jan 30 '17 22:01 shuhei

My partner, @sujeethjinesh and I constructed the android folder within your project got it working pretty smoothly on both physical devices and an emulator! (provided dev settings were turned off) We'll send over a pull request for you to take a look!

aayush-k avatar Jan 31 '17 15:01 aayush-k