Thursday, March 27, 2014

Setting PhoneGap server in your CF Builder and Creating a Sample Mobile Application

In my previous posts we have learned how to install Splendor Beta and install Thunder Beta and the creating Cert key for Android application development.

So, now we will see how we'll set up the key in Thunder (ColdFusion Builder) and how we'll create a sample mobile application.

  • Create one account in Phone Gap Server. ( https://build.phonegap.com/ )
  • Go to Windows -> Preferences -> ColdFusion -> PhoneGap. You will see a screen like below:


Server URI: URL of the PhoneGap server, use what I have wrote in the screenshot.
Email Address: Email address which you have registered during account creation.
Password: PhoneGap account password.

I mainly concentrated on android build only, so we only have to provide Android key details. 

.keystore file: Browse the key store file which you have created.
Title: Title you have provided during key creation
Alias: Alias name you have provided during key creation
Key Password: Key Password you have provided during key creation
Keystore Password: Keystore Password you have provided during key creation

Then click on Apply and Ok. We added our android key and setup the builder to generate android build.
  • Go to File -> New -> ColdFusion Mobile Project. Then you will see a new screen like below:

This window is for template selection, we are going to create a simple application so select blank template and click on Next. Then one new window will come like below:

 Provide the Project name and the location(Web Root) where this project will be created. Click on Next and you will get another screen.


In this window we will select server where our application will be linked, it will take default one but if you have more than one server configured in Thunder then you can select the server which you want. Then click on finish. 

Up to now we have created a project in ColdFusion Builder.
NOTE: Here my priority is to setup the mobile Application and create a build, so I'm using Ram Kulkarni's sample code. Ram is the developer who has developed this Mobile development feature in ColdFusion and it's better to refer his code. For more details you can visit his Blog: http://ramkulkarni.com/blog/creating-database-mobile-application-with-coldfusion-splendor/.
  • Right click on the ColdFusion Mobile Project and then Click on Generate PhoneGap Build.
  • Go to console of the ColdFusion Builder then you will see error messages for IOS build as we have not provide any key details for IOS and for android we will get a success message like below:

  • Go to PhoneGap Status tab and you will see the screen like below:

For iOS we got error and for Android there is a download link. It will take 2-3 mins or less for the download link to be visible so please wait for that. Now, click on download and give the path where to download and after few mins it will show a message that download completed.

So, if you will go that location you will see a .APK file. Move that file to your android device and now you install and run the application.

This post is for the first step towards mobile development. You can refer other materials for advance concept.

6 comments:

  1. http://www.oreillynet.com/pub/a/oreilly/web/news/coldfusion_0701.html

    ReplyDelete
  2. As claimed by Stanford Medical, It is in fact the one and ONLY reason women in this country get to live 10 years longer and weigh 42 pounds less than us.

    (And by the way, it is not about genetics or some secret-exercise and absolutely EVERYTHING to do with "HOW" they are eating.)

    P.S, I said "HOW", and not "what"...

    Tap on this link to find out if this brief questionnaire can help you find out your true weight loss potential

    ReplyDelete
  3. As claimed by Stanford Medical, It is indeed the one and ONLY reason this country's women live 10 years longer and weigh 42 lbs lighter than us.

    (Just so you know, it is not about genetics or some secret diet and absolutely EVERYTHING about "how" they eat.)

    P.S, What I said is "HOW", and not "WHAT"...

    Tap this link to uncover if this little questionnaire can help you find out your true weight loss potential

    ReplyDelete
  4. Strange "water hack" burns 2lbs overnight

    Well over 160,000 men and women are using a easy and secret "liquids hack" to lose 2lbs every night in their sleep.

    It is painless and works every time.

    You can do it yourself by following these easy steps:

    1) Grab a glass and fill it half the way

    2) And then follow this strange HACK

    you'll become 2lbs skinnier in the morning!

    ReplyDelete
  5. Water Hack Burns 2lb of Fat OVERNIGHT

    Over 160,000 women and men are trying a easy and SECRET "liquid hack" to burn 1-2lbs each and every night as they sleep.

    It's scientific and it works on anybody.

    You can do it yourself by following these easy steps:

    1) Go get a drinking glass and fill it with water half full

    2) And then learn this strange hack

    so you'll become 1-2lbs skinnier as soon as tomorrow!

    ReplyDelete
  6. In this fashion my pal Wesley Virgin's story launches with this SHOCKING AND CONTROVERSIAL VIDEO.

    As a matter of fact, Wesley was in the military-and soon after leaving-he unveiled hidden, "mind control" tactics that the CIA and others used to obtain whatever they want.

    These are the exact same tactics lots of famous people (especially those who "come out of nowhere") and the greatest business people used to become rich and successful.

    You probably know that you utilize only 10% of your brain.

    Mostly, that's because most of your BRAINPOWER is UNCONSCIOUS.

    Maybe that expression has even occurred INSIDE OF YOUR very own brain... as it did in my good friend Wesley Virgin's brain 7 years ago, while riding a non-registered, beat-up trash bucket of a car without a driver's license and with $3.20 on his debit card.

    "I'm absolutely fed up with living paycheck to paycheck! Why can't I turn myself successful?"

    You've taken part in those conversations, isn't it so?

    Your success story is going to start. All you have to do is in YOURSELF.

    Learn How To Become A MILLIONAIRE Fast

    ReplyDelete

Followers