Skip to content Skip to sidebar Skip to footer

Dreamweaver + Phonegap Startup

I am trying to get Phonegap to work for the first time using Dreamweaver CS5.5. I'm able to configure the application framework and the application settings. When I build and emul

Solution 1:

Got it running successfully on Win7:

Here's are some tips that I've rummaged around finding on the web.

Getting this going was a lot more complicated than advertised. Makes me wonder if I should just be using Eclipse instead.

Download the full install of the Android SDK manually. Use the executable. The Easy install was a complete fail even after downloading the upgrade patch and restarting. I understand you can download something else and fix the js. I wouldn't bother. It's not that hard. Download and install the Java SDK. Run it before installing the Android SDK. Android SDK needs it running. You can do this by going to the Start Menu and searching for Java and clicking it. Install the Android SDK in something like c:\android not the default directory under Program Files. This avoids possible permissions problems. Update your Android packages. I did all of them but you can choose what you'd like I suppose. It took me a few hours. Restart your computer. Create an icon.png that's 72x72 and a splash.png that's 320x480 and put them in an img directory in your app site folder. Not necessary but nice. You'll get some error messages. ignore them. Restart Java after restarting the computer. Not sure if this is necessary but I'd do it. Start the emulator from the command line not in Dreamweaver 5.5. Calling it from there is buggy. go to Start and enter cmd. From the command line enter this:

type in:

cd c:\whateverfoldeyouinstalledadndroidsdk\tools\

then:

emulator -avd DW_AVD

This starts it up. You could use another avd if you've created one in the avdManager.exe in the Android SDK.

Then go through the process to emulate and build. This won't work either. Find the build.xml under whatever folder you published to.

Follow the advice at the end of this post:

http://www.tricedesigns.com/2011/11/01/building-phonegap-applications-with-dreamweaver/

Build and Emulate again.

It should work now.

To transfer the file, take the whatever-your-app-is-called-debug.apk from the bin folder in the published folder and transfer it to your SD card on the phone or wherever you can put it.

This is an unsigned app so it won't be deployable to the Android Marketplace as is. You'll need to go through the process. Here are the guidelines:

http://developer.android.com/guide/publishing/app-signing.html

You may need to take the project back into Eclipse anyway to go through the final steps. I haven't gotten this far yet.

Use a file manager app like Astro to open it up and try to install it. You may need to change the install permission to allow unknown apps to be installed. I'd of course set it back later.

Find your app in the app menu. enjoy! Whew. I just thought I'd share the info to save others pain.


Solution 2:

It seems to be a problem with processing the application icon. Is it your icon a true png?

Try to replace it or leave it blank (don't worry, Dreamweaver will put a default icon for you) to test if that is the problem.

Hope that helps. Martin


Post a Comment for "Dreamweaver + Phonegap Startup"