Hi , Thank you so much i have decided to use jeromq for my application as using zeromq on android gave me a lot of binding errors. Im very new to android and zeromq. What are the steps needed to build jeromq and use it in the android project?
Thanks, Ashwini On Fri, Jun 14, 2013 at 6:00 AM, Victor Perron <[email protected]> wrote: > I just edited that page about android builds, whose advice on native > building are harmful. > It has been written at a time where Jeromq was not available. > Today it's foolish not to use it as a default; native-to-java bridge > should be used only if you have very strong reasons to do so. > > Please switch to JeroMQ, https://github.com/zeromq/jeromq > > > On Thu, Jun 13, 2013 at 10:09 PM, ashwini ramamurthy < > [email protected]> wrote: > >> Hi, >> >> Thanks for your response. I did write a sample application but i feel >> like i have missed out something as i have many errors. >> >> I followed the steps to make the .so file and jar file given in >> http://www.zeromq.org/build:android. >> So now i have the .so file and jar file and have places it in the >> appropriate folder. >> Then i made the jni folder in my android application and created a make >> file. >> I am getting a libc Fatal Signal 11(SIGSEGV) error . >> >> Do i have to include the src files in the folder in jni? >> Did I miss out something? I would appreciate any suggestions or help. >> >> Thanks in advance >> >> -Ashwini >> >> On Thu, Jun 13, 2013 at 2:25 PM, Yu Dongmin <[email protected]> wrote: >> >>> Hi, >>> >>> At a AsyncTask subclass, you could do as the followings. But please keep >>> in mind that I'm not a Android developer so I'm sure the doInBackground is >>> the best place to create zeromq context. >>> >>> This is an example which create a worker thread then the worker thread >>> communicate outside as a pure ZMQ application and communicate with Android >>> through a pipe. >>> >>> If your requirement is simple, you could do your stuff without creating >>> new thread as many other examples in the ZMQ guide. >>> >>> @Override >>> protected Integer doInBackground (String... args) >>> { >>> ZContext ctx = new ZContext (); >>> ctx.setLinger (100); >>> >>> >>> Socket pipe = ZThread.fork (ctx, new Worker(), args[0]); >>> Poller poller = ctx.getContext ().poller (); >>> poller.register (pipe, Poller.POLLIN); >>> >>> >>> while (!Thread.currentThread ().isInterrupted ()) { >>> >>> >>> if (poller.poll (1000) < 0) >>> break; >>> if (poller.pollin (0)) { >>> String message = pipe.recvStr (); >>> publishProgress (message); >>> } >>> pipe.send ("HELLO"); >>> } >>> >>> >>> ctx.destroy (); >>> >>> return null; >>> } >>> >>> >>> Thanks >>> Min >>> >>> On Jun 13, 2013, at 11:12 PM, ashwini ramamurthy < >>> [email protected]> wrote: >>> >>> >>> Hi, >>> >>> Thanks for the quick response. Is there any example android application >>> using jeromq I could refer ? >>> >>> Thanks, >>> Ashwini >>> On Thu, Jun 13, 2013 at 4:02 AM, Pieter Hintjens <[email protected]> wrote: >>> >>>> You may find that JeroMQ is easier to use on Android. >>>> >>>> -Pieter >>>> >>>> On Wed, Jun 12, 2013 at 6:14 PM, ashwini ramamurthy >>>> <[email protected]> wrote: >>>> > Hi, >>>> > >>>> > I want to use ZeroMQ in my android application. I have built ZeroMQ >>>> along >>>> > with JZMQ and its JAR. I wanted to run a simple client server >>>> application in >>>> > android with zeromq. Is there any example I could refer to? >>>> > >>>> > >>>> > Thanks in advance >>>> > >>>> > >>>> > >>>> > _______________________________________________ >>>> > zeromq-dev mailing list >>>> > [email protected] >>>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>>> > >>>> _______________________________________________ >>>> zeromq-dev mailing list >>>> [email protected] >>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>>> >>> >>> _______________________________________________ >>> zeromq-dev mailing list >>> [email protected] >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> >>> >>> >>> _______________________________________________ >>> zeromq-dev mailing list >>> [email protected] >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >>> >>> >> >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> >> > > > -- > Victor > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
