Skip to main content
Inspiring
October 20, 2013
Question

Native Extensions in Workers

  • October 20, 2013
  • 1 reply
  • 1203 views

Hello,

I'm starting with Workers from Android. Seems to work well for simple tasks, however I can I use Native Extensions within workers ?

This topic has been closed for replies.

1 reply

User Unknow
Legend
October 21, 2013

Why not test yourself and let us know with this?

Find some Viber native extension

Inspiring
October 21, 2013

Maybe I'm not explained myself very well. YES, I tested and tryed everything !

I need two Workers:

The first one is very simple and use sqlite and is working simple perfectly.

The second one use one ANE that I created my self for integration with a bluetooth device. If I change the ANE to SWC and include this as a library, the SWF worker increase the size and recognize the AS3 classes however I got and error when the AS3-ANE try to instantiante the jar code part, because this is a SWC library and not an ANE anymore !

Seems that ANEs are only supported in Flex Desktop/Flex Mobile projects and not librarys and the worker is.

User Unknow
Legend
October 21, 2013

Oh, sure.

ANE it's not simple SWC file. It's ZIP that contain static library that embeded during compilation to Virtual Machine of Flash Runtime and some other files. So when you trying to compile your worker - you can't do this with ANE. Simply said - you can't put brick in pocket because pockets is not for bricks