Author Archives: nhachicha

About nhachicha

Android Developer, share experience about Java, System and Android

Android Gradle, add native .so dependencies

Background A few months ago, I wrote a Key-Value database for Android called SnappyDB based on Google’s LevelDB. Since it uses native C++ code, the generated bundle contains (.so) binaries libs, along with Jars. Distribution via Maven repo is not a … Continue reading

Posted in Android | Tagged , , , , , , , , , , | 5 Comments

Set the best Zoom level for your Maps

Android Maps V2 API makes it easy to work with Maps & Added POI (Marker), but what if you have a lot of Markers to display? Two possibilities comes in hand: Use this wonderful Map extensions lib, that extends Maps V2 … Continue reading

Posted in Android | Tagged , , , , | 1 Comment

Using JSONP with JAX-RS

Over the past few weeks I spent some time developing some REST services using JAX-RS, those services where invoked within jQuery scripts via Ajax. However, I’ve quickly fall into the same origin policy limitation. The same origin policy prevents a … Continue reading

Posted in Java | Tagged , , , , , , , | Leave a comment

MySQL & Apache Derby as jdbcRealm for Apache Shiro

In this post I’d like to show you, how you could use Apache Derby or MySQL as Security Realm for Apache Shiro. Apache Shiro is a powerful and easy-to-use Java security framework that performs authentication, authorization, cryptography, and session management … Continue reading

Posted in Java | Tagged , , , , , | 1 Comment

XMPP client with Android

The use case I needed to send asynchronously messages to my Android app, first choice that popped up to my mind is using JMS But since Android (I should say Dalvik) does not include all javax packages (especially javax.naming.*) I gave … Continue reading

Posted in Android | Tagged , , , , , , , | 5 Comments

Standalone JMS client

Configuring a standalone JMS client could be a little bit confusing. Over the Internet you’ll probably find many code snippet to show you how to send or receive a message in a queue but few sites in my experience talk … Continue reading

Posted in Java | Tagged , , , , , , | 4 Comments

Mutual authentication with Tomcat

Mutual authentication with Tomcat (using a Local Certificate Authority) This is a quick guide that will walk you through the setup of a secure SSL authentication. To achieve this, we will create a local certificate authority that will sign both … Continue reading

Posted in System | Tagged , | 2 Comments