How do I get my Android application login to a server?
<p>I want to ask about the best way to let an Android application log in to a server (PHP). Do I have to use a session? I want to log in and send some information to the server and save that information in the database.</p>

<p>I currently use this:</p>

<pre><code>HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(path);
</code></pre>

<p>And then use JSON to send the data. I want a good way to verify the Android app identity to my server page.</p>
