Access GPS data on Unity 3D

How to get GPS coordinates in Unity? Actually, it is pretty easy. Unity provides an interface called LocationService which includes the basic GPS functionalities we may need. Check it out here: http://docs.unity3d.com/Documentation/ScriptReference/LocationService.html Here is a C# example of how to use it? When I test this code on Android, I found that the location data were still… Continue reading Access GPS data on Unity 3D

Android NDK Step 1: Setup Environment and Write HelloWorld app

1. Introduction “Android NDK(Nativ Development Kit) is a toolset that allows you to implement parts of your app using native-code languages such as C and C++ “(See: http://developer.android.com/tools/sdk/ndk/index.html). The first question pelople  ask about NDK is:  why do we need NDK? Well, Java is obviously a simple and elegant OO programming beauty. It is also… Continue reading Android NDK Step 1: Setup Environment and Write HelloWorld app