Hello Basis On Kindle Fire... Yata!

For anyone non versed inward the master Heroes tv series, the Japanese time-traveling hero named "Hiro" would exuberantly exclaim "Yata!" when he accomplished something awesome. In the same vein, I'm excited that later on solely a twenty-four hr menstruation I was able to create my get-go Hello World application together with truly run it on my Kindle Fire! Below are the brief steps taken to teach inward work. This is non a comprehensive guide but includes to a greater extent than or less gotchas to hopefully assist anyone else who mightiness live on stuck.

Create a working app that loads inward the Android Emulator:
  • Install a JDK (Java Development Kit) - I used the Java Platform (JDK) 7u3 available from Oracle here
  • Install Eclipse IDE - I grabbed the Eclipse IDE for Java Developers here
  • From developer.android.com, download together with install Android SDK. This also installs the SDK Manager, which itself is pretty darn cool.
  • Follow the SDK installation directions here. One of the things this volition guide you lot through is installing the ADT (Android Developer Tools) plugin for Eclipse, which is used to simplify tasks that would otherwise stimulate got to live on done manually. For example, it provides prissy New Project together with Export wizards for creating together with distributing your applications. FYI the ADT plugin took a LONG fourth dimension to install on my system; I allow it create its affair overnight.
  • If it wasn't done equally business office of the SDK installation, install the latest platfrom from Android SDK Manager, which tin dismiss live on opened from straight within Eclipse later on the ADT plugin is installed together with Eclipse is restarted.
  • Follow the Hello World tutorial. This volition guide you lot through setting upwardly an AVD (Android Virtual Device), running your app inward the emulator, etc.
  • Edit your AVD inward Eclipse, setting the Snapshot selection to Enabled. This greatly improved the loading speed of the emulator for me.

Building your app for distribution:
To teach your shiny novel app on the Kindle Fire, or whatsoever device really, you lot stimulate got to construct it inward unloose fashion together with sign the output APK file. Fortunately this is a relatively slow procedure from within Eclipse in ane lawsuit you lot stimulate got the ADT plugin installed.
  • First you lot demand to brand certain to add together the JDK bin folder's path to your system's PATH surroundings variable. If you lot don't know how to create this you lot volition stimulate got to search (as did I) to figure out the right agency to edit the "Path" surroundings variable on your OS. Once you lot create this, Eclipse volition live on able to purpose the KeyTool together with JarSigner SDK tools to construct your APK file.
  • In Eclipse, click to edit your project's AndroidManifest.xml file. You desire to edit the Min SDK version, settings its value to "8" (without quotes). SDK version viii is the API Level associated amongst Android version 2.2. The argue for this is that, I believe, the Kindle Fire runs an altered version of Android v2.3; thus if you lot purpose an SDK version much higher than viii (e.g. the default for mine was 15), the Kindle Fire won't live on able to opened upwardly the bundle when you lot transfer it to the device. I know I'm using the API marker for Android v2.2 when I said the Fire is running v2.3 - experience costless to experiment amongst the number, I but know that it definitely industrial plant amongst minute API marker prepare to 8.
  • Now click the root of the projection inward the Package Explorer.
  • Select File > Export, select the Android option, thus select the Export Android Application exceptional together with click Next.
  • Enter a projection cry together with click Next.
  • If this is your get-go run exporting an app, select to create a novel "keystore". Enter a folder path followed past times the cry you lot desire for your novel keystore (e.g. C:\android\keystores\mykeystore). In the example, the cry of the output keystore file volition live on "mykeystore.keystore" (the extension is .keystore). Also specify a password together with click Next.
  • Enter to a greater extent than or less information to position the telephone commutation that volition live on used to sign your APK file; it is highly recommended to prepare the Validity (number of years the telephone commutation is valid) to a value greater than 25. Once all required information is entered, click Next.
  • Finally, specify the finish for your APK output file together with click Finish!

Sending your app to the Kindle Fire:
Now comes the fun part!
  • Transfer your novel APK output file to the Kindle Fire. You tin dismiss create this straight using a micro-USB cable to connect your Fire to your computer, or you lot tin dismiss electronic mail the file to an electronic mail address you lot tin dismiss cheque on the Fire. If you lot transportation the APK file equally an electronic mail attachment, you lot volition live on able to relieve it to the Fire's internal Downloads folder.
  • Download together with install the costless ES File Explorer from the Amazon app store.
  • In the Fire's settings, select More > Device together with thus prepare the selection "Allow Installation of Applications From Unknown Sources" to ON.
  • Now inward ES File Explorer, navigate to the place where you lot saved the APK file (the Downloads folder if you lot saved the file from an electronic mail attachment).
  • In ES File Explorer, click the file together with you lot should live on prompted to install the application. Obviously, hitting Install to install the application!

If you lot followed ALL of those steps, your novel application should live on installed on your Kindle Fire together with create to run from the Apps view. YATA!!!

Subscribe to receive free email updates:

0 Response to "Hello Basis On Kindle Fire... Yata!"

Post a Comment