You can pass any of the available options in the command line.
The tool can be used for application files with extension APK or IPA. This tool is located at: installDir/ApplicationCenter/tools/applicationcenterdeploytool.jar. This is particularly useful when you want to incorporate the deployment of an application to the Application Center into a build process. You can also upload a new application by using a command-line tool.
You can upload an application to the Application Center by using the web interface of the Application Center console.
Now that you have done all the prep work, building your first Android app is actually pretty easy.To deploy applications to the Application Center through a build process, use the command-line tool. Now, run the following command to create a default Android project (being sure to enter in the correct directory location for the path option and the ID from above for the target): android create project -target android-19 -name MyFirstApp -path ~/android-development/MyFirstApp -activity MainActivity -package In the example above, we just need “android-19” In this output, all we are concerned with is the ID of the API version we want to build against. Skins: WSVGA, HVGA, WXGA800, WVGA800 (default), WQVGA432, WXGA720 I only have the most recent version of android downloaded in my SDK, so I got the following output: Available Android targets: Run the following command to see what Android API versions your SDK can target: android list targets Now log out of your desktop, and log back in to apply this change.īefore we create our app, we need to know what version of the Android API we want to build against. So open up theįile in your favourite text editor, and add the following lines to the bottom of the file: export PATH=$PATH:~/android-development/android-sdk-linux/tools/Įxport PATH=$PATH:~/android-development/android-sdk-linux/platform-tools/ Next up, we need to configure your path variable to point at a couple of directories in the Android SDK so we can run them as commands in bash. Set up your PATH variable to point at the SDK
It will install them directly into the android-sdk-linux/ directory. The Android SDK Manager will appear, and will prompt you to install a number of updates. To do this, we need to go to the tools directory in the SDK, and then run the Android SDK Manager: cd ~/android-development/android-sdk-linux/tools/.
Now that you have the SDK you will need to update it.
Note that there are two types of download offered on the Android Download page, in this example we are after the SDK Tools Only option, not the ADT Bundle.Īfter downloading, unpack the bundle into the android-development/ directory. Now, go to the Android SDK Download page and Download the SDK for Linux. I decided to name mine android-development: mkdir ~/android-development/ Now we need to create a new directory in your home directory to contain the Android SDK and your first project. Note that the 32bit libraries in the command above are needed even if you have a 64bit install of Fedora. To install these packages, run the command: sudo yum install zlib-devel.i686 ncurses-devel.i686 ant Photo by JD Hancock (CC-BY) Install needed Dependenciesįirst up we need to install a few packages from the Fedora Repos to make sure everything works correctly.