In this chapter, you will discover how to create plugins for Android platform by Java and C languages in Unity 5. You will learn in practice how to write simple plugins for the Android platform. Also, the reader will learn how to carry out an anti-piracy check, detect screen orientation, handle vibration support, determine device generation, and other more useful features. The topics that will be covered in this chapter are as follows:
Creating Java and native C plugins for an Android platform
Android scripting API in Unity 5
Accessing Android sensors and features within Unity 5