· 4 min read

From Zero to 3D - My Dive into Android Development with Kotlin

Explore my adventure into Android development, where I combined Kotlin, machine learning, and pose detection to craft a unique 3D model generation application.

From Zero to 3D: My First Dive into Android Development with Kotlin

When we think of software development, we often imagine a vast ocean of languages, frameworks, and tools, each with its unique quirks and complexities. But what if I told you that beneath the surface, there’s a common thread that binds them all? My journey into creating a 3D model generation application for Android using Kotlin was a testament to this revelation.

The Challenge: 3D Model Generation on Android

3D modeling on mobile platforms is no small feat. The intricacies of rendering, the nuances of user interaction, and the demands of performance optimization make it a challenging endeavor. Back in January 2023 when I decided to embark on this project, I was stepping into uncharted waters. Not only was this my first Android application, but it was also my maiden voyage with a JVM language.

Kotlin: A New Language, A Familiar Feeling

Kotlin, for those uninitiated, is a modern, expressive, and concise language that runs on the Java Virtual Machine (JVM). It’s become the darling of Android development, thanks to its interoperability with Java and its more streamlined syntax.

As I delved into Kotlin, I braced myself for the steep learning curve that usually accompanies a new language. But to my surprise, while the syntax and conventions were new, the underlying principles felt eerily familiar. Loops, conditionals, data structures – the building blocks were all there, just with a different coat of paint.

Patterns: The Universal Language of Coding

The more I worked with Kotlin and Android, the clearer it became that programming languages, at their core, share more similarities than differences. The patterns and paradigms that form the backbone of coding are universal. Whether it’s the Model-View-Controller (MVC) pattern, the Observer pattern, or the Singleton pattern, these concepts transcend language barriers.

This realization was empowering. It meant that the skills and knowledge I’d acquired over the years were not confined to a particular language or platform. They were transferable, adaptable, and, most importantly, foundational.

The Application: A Fusion of Camera, AI, and Pose Detection

In the 3D model generation project, my primary responsibility was to craft a camera application tailored to capture users in a very specific pose. This wasn’t just a design whim; an external company’s AI had set this pose as a prerequisite for accurate 3D model generation.

To ensure users achieved this exact pose, I integrated machine learning and pose detection into the application. These advanced technologies, combined with audio and subtitle prompts, guided users into the precise position needed. The application would only capture the image once the user perfectly aligned with the required pose, ensuring every image met the AI’s strict criteria.

Beyond the camera functionality, another significant aspect of this project was the database. I designed and developed a NoSQL database structure, ensuring efficient data storage and retrieval, seamlessly integrating it with the application.

Lessons Learned: Beyond Syntax and Semantics

The completion of the application was a significant milestone, but the real takeaway from this journey was the broader perspective on coding. Here are some key lessons I learned:

Languages as a Reflection of a Developer’s Journey: While languages like Kotlin, JavaScript/TypeScript, and Golang are my primary tools, I’ve come to realize that they are more than just coding mediums. They are reflections of a developer’s journey, choices, and the challenges they’ve tackled. Each language, with its unique syntax and capabilities, tells a story of projects undertaken, problems solved, and innovations achieved.

Adaptability is Key: The tech landscape is ever-evolving. Being adaptable and open to learning is more crucial than expertise in a particular language or framework.

Foundations Matter: A strong grasp of foundational concepts, be it algorithms, data structures, or design patterns, is invaluable. They are the constants in the ever-changing world of coding.

In Conclusion: The Universality of Coding

My journey with Kotlin and Android was enlightening. It reinforced the idea that while languages and platforms may differ, the essence of coding remains consistent. As developers, our strength lies not in memorizing syntax or mastering a specific tool but in understanding the universal principles that underpin our craft.

So, the next time you’re faced with a new language or framework, embrace it with an open mind. Remember, it’s just a different dialect of the language we all speak: the language of problem-solving, creativity, and innovation.

Back to Blog