Download Android Apps Security

Transcript
180
CHAPTER 9: Publishing and Selling Your Apps
Figure 9-7. The Chuck Norris Facts app in action
Now that we’ve got our application, let’s see what we can do to protect it using LVL.
I’m going to run this demo on an Android simulator. This involves an additional step because
the Android simulators do not come pre-packaged with the Android Market app. I will need
to download the Google API Add-On platform, which provides a rudimentary background
implementation of the Android Market. It implements the Licensing Service that we need to test out
LVL. I’m getting ahead of myself, though. Let’s start by preparing our development environment.
I’m going to make the assumption that you use Eclipse for your development and that you already
downloaded and installed the Android SDK with at least API level 8. And off we go!
Download the Google API Add-On
I’m going to describe the steps required to get the Google API Add-On if you use Eclipse. First,
open the Android SDK Manager. Select Window ➤ Android SDK Manager. Next, navigate to the
API level you plan on using and tick the Google API’s by Google Inc. (see Figure 9-8). Before
you click the Install button, navigate once more to the Extras folder and tick the Google Market
Licensing Package (see Figure 9-9). Now click the Install button. For this app, I use the Android
API level 10 for version 2.3.3, so that is what I selected.
www.it-ebooks.info