user11878: I want to implement a chess app for Android with Stockfish.
I downloaded the Stockfish binary source code, but I don't know how to use engine 
Please tell me how to use Stockfish engine for programming.

user7297: Stockfish is written in C++, so in order to call it from your Android app (which I presume is written in Java), you need to call its library via JNI (Java Native Interface). This is a rather technical task better suited for Stack Overflow; here is a question to get started.
If you encounter specific problems while doing this, you can ask a question there; in it's current form it is way too broad. Afterwards, you might need to find out which methods to call (e.g. to evaluate a certain position, or to suggest the best move). That's something we'd be able to answer here, provided that you have a very specific question.

user825: @Glorfindel is absolutely correct (+1). To get you started, do this:

Read UCI specification (http://wbec-ridderkerk.nl/html/UCIProtocol.html)
Download Droidfish source and check how it interacts with the engine
Learn how to compile Stockfish with JNI
Create an empty Android project. Send the engine isready. Do you get anything back from Stockfish?


11878: <p>I want to implement a chess app for Android with Stockfish.</p>

<p>I downloaded the Stockfish binary source code, but I don't know how to use engine </p>

<p>Please tell me how to use Stockfish engine for programming.</p>
 7297: <p>Stockfish is written in C++, so in order to call it from your Android app (which I presume is written in Java), you need to call its library via JNI (Java Native Interface). This is a rather technical task better suited for Stack Overflow; <a href="https://stackoverflow.com/questions/9007693/call-c-library-from-java-in-android">here</a> is a question to get started.</p>

<p>If you encounter specific problems while doing this, you can ask a question there; in it's current form it is way too broad. Afterwards, you might need to find out which <em>methods</em> to call (e.g. to evaluate a certain position, or to suggest the best move). That's something we'd be able to answer here, provided that you have a very specific question.</p>
 825: <p>@Glorfindel is absolutely correct (+1). To get you started, do this:</p>

<ol>
<li>Read UCI specification (<a href="http://wbec-ridderkerk.nl/html/UCIProtocol.html" rel="nofollow noreferrer">http://wbec-ridderkerk.nl/html/UCIProtocol.html</a>)</li>
<li>Download Droidfish source and check how it interacts with the engine</li>
<li>Learn how to compile Stockfish with JNI</li>
<li>Create an empty Android project. Send the engine <code>isready</code>. Do you get anything back from Stockfish?</li>
</ol>
