Skip navigation
Currently Being Moderated

PhoneGap Build Settings for Android SDK

Jul 10, 2012 4:07 PM

On Mac 10.6.8, Dreamweaver CS6

 

I want to test the PhoneGap Build Service with the default  "Hey, it's PhoneGap" index.html page. Specifically, I want to run the resulting apk inside an Android emulator. In preparation for this, I have:

 

1) Downloaded the Android SDK

2) Run...

android-sdk-macosx/tools/android sdk

     ... from a Terminal window

     This launches the Android SDK Manager, which I have used to download

  • Android 2.2 (API 8 - Froyo) and all its associated files
  • Android SDK Tools
  • Android SDK Platform-tools
  • Android Support Library

 

(I have also installed Eclipse, but I think that that is irrelevant for the current task)

 

4) Run...

android-sdk-macosx/tools/android avd

     ... from a Terminal window

This opens the Android Virtual Device Manager, which I have used to create a Virtual Device:

  • Name Froyo
  • Target Android 2.2 (API level 8)
  • Skin WVGA800
  • Located at /Users/<username>/.android/avd/Froyo.avd

 

 

This Dreamweaver Help page says:

Once you've installed the Android SDK, you'll need to start the Android SDK and AVD Managers, and select the Android tools you want to work with locally on your computer. Dreamweaver uses the information you select during this initial setup to populate the Android emulator settings in the PhoneGap Build Service panel. For more information on specifying these settings, see the Android documentation.

 

(My emphasis)

 

I'm guessing that I've done the parts of these instructions in italics, but I get lost when I reach the part in bold. The window that opens when I select Site > PhoneGap Build Service > PhoneGap Build Settings asks me to "provide the root paths to the [Android] sdk". None of the paths that I have provide seem to satisfy the Emulate Application button in the Build Panel.

 

Question: What folder should I select as the root path to the SDK?

 

Thanks in advance,

 

James

 
Replies
  • Currently Being Moderated
    Jul 10, 2012 5:10 PM   in reply to Lexogram

    Lexogram I would recommend going to http://phonegap.com/.  They have a seperate forum there which you may want to post your inquiry too.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 9:12 AM   in reply to Lexogram

    The problem with posting here Lexogram is that Phonegap is a recent aquisition to Adobe and you are currently posting in a forum regarding installation and download issue for the Creative Suite software.  I don't have an appropriate forum on Adobe.com to redirect your message thread to so it seems unlikely you will get a useful response from continuing to post in this forum.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 11:59 AM   in reply to Lexogram

    I see so you are having difficulty with utilizing functionality within Dreamweaver.  I have moved your discussion over to our Dreamweaver forums then.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2012 3:50 PM   in reply to Lexogram

    Lexogram wrote:

     

    All that's missing is to understand how to convince Dreamweaver CS6 to perform the same steps, rather than going through a Terminal application.

    I haven't installed the Android SDK on my Mac. Dealing with Xcode was painful enough for me.

     

    However, I do have the Android SDK installed on Windows. I installed it at the top level of my C drive in C:\dw-android. All that was necessary to register it in the PhoneGap Build Settings panel was to enter C:\dw-android in the SDK location field. As long as you have the correct path to the SDK, it should be the same on a Mac.

     

    I used the PhoneGap Build Service panel to build the app, and then clicked the Download icon. Once it had downloaded, I selected the AVD and target version of Android, as shown in the following screen shot:

     

    phonegap_build.jpg

    After clicking Launch, it started the emulator and displayed the app. I found it necessary to make sure the AVD and target both used the same version of Android. Otherwise, it just launched the emulator, but the app didn't load.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points