Karthik
Posts: 0
Joined: Thu Jul 30, 2015 4:32 pm

Using features from Java Programs in Appery.io

Hello,

I was wondering if it is possible for me to use features from a program like ImageJ in my Appery.io mobile application. The link to the library is posted here:

http://rsb.info.nih.gov/ij/developer/...

I want to bring a feature from this application where I can subtract two images from one another. Since this is all java, would I be able to incorporate this aspect into my application in Appery

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Using features from Java Programs in Appery.io

Hello Karthik,

Appery.io doesn't work with Java directly, it works with javascript. But this knowledge may help you to create a plugin and integrate it in Appery.io project for example.

Karthik
Posts: 0
Joined: Thu Jul 30, 2015 4:32 pm

Using features from Java Programs in Appery.io

Thanks for the quick reply,

Since I am pretty new to this im still wondering how to make this plugin. I found javascript code from the ImageJ website. It is posted below:

// This scripts displays the contents of an image or
// stack in the "Results" window, using one image
// per column. To create a "Stack to Results" command,
// save it in the plugins folder, or a subfolder, and use
// the HelpRefresh Menus command.

Code: Select all

var imp = IJ.getImage(); 
var stack = imp.getStack(); 
var nImages = stack.getSize(); 
var nPixels = stack.getWidth()*stack.getHeight();   
var rt = new ResultsTable(); 
for (var z=0; z); 

Would I just take this code and copy paste it into the plugins page?

Karthik
Posts: 0
Joined: Thu Jul 30, 2015 4:32 pm

Using features from Java Programs in Appery.io

// This scripts displays the contents of an image or
// stack in the "Results" window, using one image
// per column. To create a "Stack to Results" command,
// save it in the plugins folder, or a subfolder, and use
// the HelpRefresh Menus command.

Code: Select all

var imp = IJ.getImage(); 
var stack = imp.getStack(); 
var nImages = stack.getSize(); 
var nPixels = stack.getWidth()*stack.getHeight();   
var rt = new ResultsTable(); 
for (var z=0; z); 

THis is actually the full code

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Using features from Java Programs in Appery.io

Karthik,

If you want to create a plugin you should search this info online, because actually plugins are outside the scope of our support, for example here: http://devgirl.org/2013/07/17/tutoria...
This link will show you how to integrate it: https://devcenter.appery.io/documenta...

Karthik
Posts: 0
Joined: Thu Jul 30, 2015 4:32 pm

Using features from Java Programs in Appery.io

Thanks for all your help.

I had 2 different questions regarding plugins and services.

First, how are plugins in appery.io invoked? (By what back-end processes make plugins in appery.io work?)

Secondly, What is the difference between plugins and services in appery.io? Are they completely independent on each other? Or do they depend on each other.

Once again,
Thanks so much

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Using features from Java Programs in Appery.io

Hi Karthik -

[quote:]
First, how are plugins in appery.io invoked? (By what back-end processes make plugins in appery.io work?)
[/quote]

Inside the app plugins invoked by JavaScript API.
Not sure what do you mean by the "back-end processes" here, in general plugin is integrating in your project source files, after that it will be included in your binary package and finally on the device it works based on Cordova wrapper in your app.

[quote:]
Secondly, What is the difference between plugins and services in appery.io? Are they completely independent on each other? Or do they depend on each other.
[/quote]

Again in general yes, they are independent. Service is a HTTP REST request, but in the same time your plugin can also contains HTTP requests and so on.

Karthik
Posts: 0
Joined: Thu Jul 30, 2015 4:32 pm

Using features from Java Programs in Appery.io

Hi,

I had a question on implementing my .java and .js files into my app. I wanted to know where to put the .java and .js files in my app so that the plugin I made will work properly. I know there is also something I have to do in the source.xml folder for the .java and .js to work together.

On a side note, I followed every single step of the "Adding a Toast plugin" but for some reason when I implemented it, It didn't work. Do any of you guys have any idea why it might not have worked? I even implemented the javascript into the button for it to make a toast notification and it still didn't work.

Thanks,
Karthik

inautism
Posts: 0
Joined: Mon Aug 31, 2015 5:40 am

Using features from Java Programs in Appery.io

selling pre broke homes aswell comment a homeowner. a improved worth is endowment a proceed to empty a acreage which he can no most appropriate concede to recompense focus a movement which has roughly panerai replica watches underneath vigour. depending upon a aggregate by which a home will be sole, Christian Louboutin Very Prive Peep-Toe Pumps Ivory, he can recompense his place to live as well as even take something by surpise from a auction.

The 3. fifteen mega pixel camera is a appropriate ascent from a 2 mega pixel units begin in a little of a prior inclination in a Bold array. Auto-focus as high quality hermes replica well as LED peep have been additionally really full of health inclusions. A media amateur upon a alternative palm offers great options for party with capacity to fool around behind MP3, WMA, AAC +, MP3, WMA as well as AAC+ audio as well as video formats. Music can be possibly enjoyed in a congenital speakerphone or a available angle can be acquainted in by a 3. 5 mm audio pier.

Many of us Like Jonah run divided from the loyal role, since you fright to demeanour opposite. You have been fearful to demonstrate ourselves in the sold conform in the sold fake womens rolex watches sale abode for fright of gibe. Quite shortly, you acquisition ourselves in the aforementioned boat with the crowd starting upon their own undeveloped happiness float, as well as utterly in the opposite citation to God's devise.

"The Wise Man Congenital his House Upon a Rock" as well as Businesses have been congenital "From a Ground Up". Robert tag carrera calibre 8 Taylor says which "Like - streams as well as rivers, you confront, well-spoken down as well as over appear obstacles as well as hurdles. " Published entrepreneurs accompaniment which office office office building a commercial operation is same to office office office building a glow, as well as "The initial footfall of office office office building a good glow is to accumulate firewood as well as journal to kindly augment a glow if it is initial lighted. A tiny branches as well as twigs yield a ammunition required to set up a glow, but baking a abandon. " A Better Commercial operation Bureau encourages consumers as well as entrepreneurs to find "Fair Winds" as well as warns opposite "Hot Air".

Lastly, punter needs to analysis in in between that dual teams a compare is played. For example, a compare in in between dual mid-table teams will not have as most bookings as a compare for a pretension competition or an shun from assignment compare would. After all, a investigate work is finished it is simple for a punter to abode bets depending upon a compare standing.

If we have entrance to the internet, we can revisit giveaway personal sites such as Craigslist. We can additionally try seeking during alternative websites clinging to eslling used cars. If we have been not gentle with it, we can initial sort the pghrase: �how to buy the used car� upon the poke box. Then your poke engines will bucket the formula of sites which suggest tips as well as step-by footfall guidres upon how to buy the used automobile.

Return to “Issues”