Nothing-Developer-Programme / Glyph-Developer-Kit

486 stars 30 forks source link

Any wiki/guide for the project setup? #2

Closed arushsharma24 closed 8 months ago

arushsharma24 commented 8 months ago

Hi guys!

Really excited to see the Glyph developer SDK and super excited to make something with it. However, I don't have much experience with Android development(and Java lol) in general, but I really want to try this out, so it would be great if you could share some sort of a wiki guide for the build setup. Even if you could point me to some prerequisite knowledge links that would be great, thanks!

I know it's a big ask but just thought I'd put it out there.

Thanks!

arushsharma24 commented 8 months ago

Hi - updating this with some answers that I found to my own questions. Basically, we need to create an Android application, and add the SDK as a library to the project. Adding the missing steps to follow in Android Studio here

  1. Copy the SDK .jar File: Copy the .jar file provided by the Glyph Developer Kit SDK into your project directory, inside app/libs/.
  2. Add the .jar File as a Library: In Android Studio, locate the "libs" directory within your app module. If it doesn't exist, you can create it by right-clicking on the "app" directory -> New -> Directory, and name it "libs". Paste the .jar file into the "libs" directory. Now, right-click on the .jar file in the "libs" directory and select "Add as Library...".

Also, make sure to import the packages at the top of your MainActivity.java file:

import com.nothing.ketchum.Common; import com.nothing.ketchum.GlyphException; import com.nothing.ketchum.GlyphFrame; import com.nothing.ketchum.GlyphManager;

After that I suppose the Examples code and documentation in the README are enough to go ahead and do whatever!

Anyways, I'll close this issue, just thought would be nice to have these instructions / or link to something like this. I know it's pretty basic, but could help someone out.