Publishing Your App to the Android Market
Chapter 8: Publishing Your App to the Android Market
Figure 8-3: The Key Creation dialog box.10. Click the Next button.
The final screen you encounter is the Destination and KeyCertificate Checks dialog box, as shown in Figure 8-4. Figure 8-4: Choosing a name and destination for your first APK file.11. Enter a name and location for a file with an extension of .apk.
I have chosen c:\android\SilentModeToggle.apk. 194 Part II: Building and Publishing Your First Android Application12. Click the Finish button.
This creates the .apk file in your chosen location as well as a keystore in the location you chose in Step 5. Open these locations, and you can see a .keystore file as well as an .apk file, as shown in Figure 8-5. Figure 8-5: Providing a destination for the APK file. You have now created a distributable APK file and a reusable keystore for future updates. Creating an Android Market Account Now that you have your APK file created, you can now release the application on the Android Market. To do so, you need to create an Android Market account. To create such an account, you need a Google account. Any Google-based account such as a Gmail account is fine. If you do not have a Google account, you can obtain a free account by navigating to www.google.comaccounts. To create the Android Market account, follow the steps shown here. Note that to complete this step, you need to pay a 25 developer fee with a credit card. If you do not pay this developer fee, you cannot publish applications.1. Open your Web browser and navigate to http:market.
android.compublish. 2. On the right side of the screen, sign in with your Google account, as shown in Figure 8-6. 3. Fill out the following fields: • Developer Name: The name that will show up as the developer of the applications you release. This could be your company name or your personal name. You can change this later after you’ve created your account. • E-mail Address: This is the e-mail address users can send e-mails to. They normally send questions and or comments about your application if they are interested in it. 195Chapter 8: Publishing Your App to the Android Market
Parts
» android application development for for dummies
» Developing Spectacular Android Applications
» Prepping Your Development Headquarters
» Click the New button see Figure 2-13. Click
» Click the curved-arrow icon on the right side of the screen to go to the workbench.
» Start Eclipse, if it’s not already running. 2.
» Type a name in the Name field.
» Type Prepping Your Development Headquarters
» Click the OK button. Android ADT is selected in the Work With drop-down menu, and the
» In the Build Target section, select Android 2.2.
» In the Properties section, type Hello Android in the Application Name box.
» In the Package Name box, type com.dummies.android.helloandroid.
» In the Min SDK Version box, type 8. Your screen should now look similar to Figure 3-5.
» Click the Create AVD button. Close the Android SDK and AVD Manager dialog box.
» Your First Android Project Your First Android Project
» Designing the User Interface Designing the User Interface
» Designing the User Interface
» Choose Window➪Show View➪Other. 2. Expand Java and choose Properties.
» Select the main.xml tab. 2. Add the background property to your LinearLayout:
» Verify that the definition for LinearLayout looks like this:
» Save the file. 5. Select the Layout tab to view the visual designer.
» Coding Your Application android application development for for dummies
» In Eclipse, choose Run➪Run or press Ctrl+F11 to run the application.
» Return to the home screen by clicking the home button on the emulator.
» Coding Your Application Coding Your Application
» If Eclipse is not open, open it now and open the main.xml file in the layouts
» Choose the Extract Android String option.
» Understanding Android Resources android application development for for dummies
» Turning Your Application into a Home-Screen Widget
» When the Add to Home Screen dialog box is visible, select Widgets, as shown in Figure 7-5.
» When the Choose Widget dialog box is visible, choose Silent Mode Toggle, as shown in Figure 7-6.
» Publishing Your App to the Android Market
» Click the Continue button to pay the developer fee with Google Checkout.
» On the order confirmation page see Figure 8-11, click the Place Your Order Now button.
» Click the Android Market Developer Site link.
» Read the terms and then click the I Agree, Continue link.
» On the Android developer home page refer to Figure 8-14, click the Upload Application button.
» For the Application .apk file, choose the .apk file that you created
» In the Screenshots section, add two screen shots of your application.
» Set the title of your application.
» Set the description for your application.
» Set the promo text of your application.
» Designing the Task Reminder Application
» Install the application in the emulator, and click the Menu button.
» Going a la Carte with Your Menu Going a la Carte with Your Menu
» Going a la Carte with Your Menu
» Handling User Input android application development for for dummies
» Is this a long-running task?
» Does the user need to be able to perform an advanced action in the dialog box?
» Does the user need to answer a question such as “Are you sure?” with a value of Yes or No?
» Does the user simply need to be alerted?
» Getting Persistent with Data Storage
» Reminding the User with AlarmManager
» Updating the Android Status Bar
» Working with Android’s Preference Framework
» Working with Android’s Preference Framework Working with Android’s Preference Framework
Show more