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
(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:
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
Lexogram I would recommend going to http://phonegap.com/. They have a seperate forum there which you may want to post your inquiry too.
Hi Jeff,
Thanks for your answer. It's good to see input from Adobe staff.
I have searched the PhoneGap forum in Google Groups, but there seems to be no answer to this question there either. I would prefer to post the question in just one place, in order to keep the whole discussion in just one place. This is a Dreamweaver question rather than a PhoneGap one, so this is likely to be the forum that others will turn to when looking for an answer to the same question. To rephrase it:
Within Dreamweaver, I select Site > PhoneGap Build Service > PhoneGap Build Settings, in order to provide the root path to the Android sdk. How do I identify which folder Dreamweaver is expecting this path to point to?
In the original description above, are there any steps missing?
Perhaps the engineer from the Dreamweaver CS6 development team who implemented the PhoneGap Build Settings dialog in would be the best person to answer this question.
Thanks in advance for any insights,
James
Here's a screenshot showing how I imagine the root path to the Android SDK should be selected.
However, this selection leads to this error when I select Site > PhoneGap Build Service > PhoneGap Build Service, and then click on the Android Emulator button.
Following the instructions on developer.android.com and an independent blog post, I have now been able to install the proof-of-concept "Hey, it's PhoneGap!" app on the Android emulator, launch the emulator and test the application. This indicates that the Android SDK and the Android Virtual Device have been correctly installed.
All that's missing is to understand how to convince Dreamweaver CS6 to perform the same steps, rather than going through a Terminal application.
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.
Jeff A Wright wrote:
...you are currently posting in a forum regarding installation and download issue for the Creative Suite software...
Hi Jeff,
Thank you for your patience. It seems to me that this is the tail end of an installation issue. The question is about where to find a folder that allows Dreamweaver to provide one of its advertised features. Untill that is resolved, Dreamweaver is not fully operational.
Thanks all the same,
James
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:
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.
North America
Europe, Middle East and Africa
Asia Pacific