Om Talsania's Geekypedia
Articles on .NET Architecture, Design, Development and Performance

Android App Development in HTML5 using Visual Studio 2012 Express for Web

Tuesday, October 8, 2013 10:35 PM

The Story So Far:

I love Visual Studio. I love their express editions for being FREE. I love it because it gives superb intellisense as well as debugging support. The reason I enjoy coding .NET is probably because it's done in Visual Studio. I don't mind coding in any programming language as long as it was available in Visual Studio.

I am a huge fan of Android platform, and I wanted to develop some Android Apps, but not in Eclipse. I learned that PhoneGap can be used to convert HTML5 applications into Android APKs, so I thought why not give it a try! And of course what could be a better HTML5 development IDE than Visual Studio Express 2012 for Web, which I love most!  Its JavaScript code-complete and debugging facility are second to none!

During this whole exercise, I had to perform a set of manual operations, so I thought of converting it into a reusable project template. Every time I want to create a new Android App, I just wanna have to click on 'New Project" and then "AndroidApp" and it should just work! And here it is! . I am sharing this template with all of you so that you can also share the joy of coding Android apps in Visual Studio.

 

Prerequisites:

You will still need the Java SE SDK and Android SDK because that is what's used underneath. Moreover, you will need ANT SDK as well in order to build. (CTRL+SHIFT+B in Visual Studio still works! It just calls the ANT SDK which performs the magic behind the scene).


The following is the list of prerequisites:

Android SDK: http://developer.android.com/sdk/index.html
Java SDK: http://www.oracle.com/technetwork/java/javase/overview/index.html
Ant SDK: http://ant.apache.org/bindownload.cgi

VS2012 Express for Web : http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products#product-express-summary
(It can work with any version, but I am targeting Express edition as it is FREE and who doesn't love FREE?)

 

Download The Template:

This is the template I keep on talking about.

 

download_button_2_mod

 

Steps To Install:

1. Install Java SDK
2. Install Android SDK
3. Install ANT
4. Set Environment Variables JAVA_HOME, ANDROID_SDK_HOME and ANT_HOME to the path of respective folder where these SDKs are installed.
5. Add the following to the environment variable named PATH
   %JAVA_HOME%\bin;%ANDROID_SDK_HOME%\tools;%ANT_HOME%\bin;

AndroidVSTemplate_0_EnvVar

6. Install Visual Studio 2012 Express for Web (or any edition as a matter of fact)
7. Extract the Bundle. It will have a readme file and a template file.
     Copy the AndroidAppVSTemplate.zip to
     My Documents\Visual Studio 2012\Templates\ProjectTemplates

AndroidVSTemplate_1_Copy

8. Launch Visual Studio 2012 Express for Web and create a New Project. If you select 'Visual C#' from the tree, you will be able to see a new project type 'AndroidApp'.
*** IMPORTANT ***  Don't use space in the name of the app or even in the whole path, otherwise the build will fail.

AndroidVSTemplate_2_NewProj

9. Go to assets/www/app.html to Start writing your android application fully in HTML5/jQuery Mobile/KnockOut.js

AndroidVSTemplate_3_Build

If you want to build your app, just press CTRL+SHIFT+B.  In case there was an error due to some missing environment variables, the build will fail.  You can see the detailed error log in 'Output' window.  If the build succeeds, an APK will be generated in the bin folder.

The app.html contains some sample HTML5+jQueryMobile code. The end result would look similar to the screenshot below

AndroidVSTemplate_4_SampleApp


Note:

You can test your apk in emulator by running util\run.bat. If it does not work somehow, you can still resort to old fashioned way of using ADB.exe from android platform-tools.

There are a couple other HTML/JS/CSS files from the cordova package which I kept as it is. I just changed their name to something more meaningful. You can delete them if you want to.

The main entry point of application is index.html, which can be changed by modifying res\xml\config.xml. The following entry needs to be changed.
<content src="index.html"/>

Please note that the template was created with Android SDK 12 as base. However, it is flexible and with just a little modification you can run in on any android version. The files you need to modify are
1. AndroidManifest.xml - Change the SDK number from 12 to the number of SDK you are using.
<uses-sdk android:minSdkVersion="12" android:targetSdkVersion="12" />
2. project.properties - Change the value of variable 'target' from 'android-12' to the number of SDK you are using.

Final Thoughts:

By the way, I am just a mediator, someone who thought of putting all pieces together in a single Visual Studio template. The real credit goes to folks who created wonderful frameworks such as PhoneGap, jQuery Mobile, knockout.js. The guys who thought of making HTML5 supercool also deserves their share of credit.

I hope you will like this template and be more motivated to create android apps, especially if you are not familiar with java or you are a Visual Studio lover like me. If you do like this, then don’t forget to drop a comment! Smile

 




Feedback

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

This is great 10/16/2013 12:12 AM | Johnson

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks Johnson! 10/18/2013 1:08 AM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Superb! This is exactly what I was looking for! 10/18/2013 10:32 AM | S.T.

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks S.T. 10/18/2013 10:33 AM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

I wanna know how can I convert my existing website in asp.net into an anroid app with the same database...........plz mail me its solution if u can ......thanks in advance :) 10/24/2013 6:42 PM | vivek

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Vivek. What you are asking is not technically possible, at least at this moment. However, there could be one possible workaround.

Let's suppose your asp.net webapp is created using standard multilayer pattern, where you have some ASPX Web Forms calling ASMX/WCF Web services, and the call passes through business layer, entity/data access layer and the actual DB (SQL Server for example). In this scenario, you will need to convert (re-write) the UI part using HTML5 + JavaScript. You can keep the rest of the architecture as it is on the server.

Now, you can call the web service from your HTML5+JS module using jQuery and bind the results with UI using knockout.js. Convert this presentation module into an android app using my template. You will still have to maintain the back-end architecture.

There is one catch here that you might face cross-domain calls issue. In that case, you might need to add a WebService endpoint exposing the data in JSONP format in order to solve the problem. 10/24/2013 7:48 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Cool mehn.. would definitely give it a shot. i code using eclipse do i still need to install the sdk's and ANT? 10/30/2013 11:17 PM | Victor

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Victor! Even for eclipse you will need Java SE Sdk and Android Sdk. Then you can use Adt plugin if you wish to do android development in java. If you stick to html5 then you will still need ant. However my template is tailored for VS. You can use the phonegap sample files and tweak them to run under eclipse. But I dont see a point in doing so as you might already be using java if you are using Eclipse. 11/1/2013 8:47 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi,

I have a issue.
Below error during bulding app.
It helps when I change adroid SDK version to 18 in:
AndroidManifest.xml and project.properties -
But I would like to stay at 12.
Can someone help me?

1> [dx] at com.android.dx.command.dexer.Main.main(Main.java:199)
1> [dx] at com.android.dx.command.Main.main(Main.java:103)
1>
1> BUILD FAILED
1> C:\androidSDK\tools\ant\build.xml:892: The following error occurred while executing this line:
1> C:\androidSDK\tools\ant\build.xml:894: The following error occurred while executing this line:
1> C:\androidSDK\tools\ant\build.xml:906: The following error occurred while executing this line:
1> C:\androidSDK\tools\ant\build.xml:284: null returned: 2
1> 11/6/2013 3:11 PM | Darek

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

hi

Error 1 The command "call ant.bat clean -f c:\users\aaro-pc\documents\visual studio 2012\Projects\AndroidApp1\AndroidApp1\build.xml
call ant.bat debug -f c:\users\aaro-pc\documents\visual studio 2012\Projects\AndroidApp1\AndroidApp1\build.xml" exited with code 1. AndroidApp1

i get this error.
HELP ME PLEASE 11/16/2013 5:12 AM | Aaro

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Aaro,

You are using spaces in path i.e. 'visual studio 2012'. Please create a project at some different path, for Example 'C:\Projects\AndroidApp1' where you don't have any space in the full path.

Hope this helps. 11/23/2013 12:43 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

hi Om Talsania
thank you for help me.
(my english is not good,sorry)
I get this error again:::::
Error 1 The command "call ant.bat clean -f D:\okkk\jeyjey\jeyjey\build.xml
call ant.bat debug -f D:\okkk\jeyjey\jeyjey\build.xml" exited with code 1. jeyjey 11/26/2013 10:03 PM | Aaro

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

and again:
Error 1 The command "call ant.bat clean -f C:\Projects\AndroidApp1\AndroidApp1\build.xml
call ant.bat debug -f C:\Projects\AndroidApp1\AndroidApp1\build.xml" exited with code 1. AndroidApp1
11/26/2013 10:05 PM | Aaro

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks a lot! do you have plans to build a vb.net template? It will be so much appreciated.! 11/27/2013 8:18 AM | Jet

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Jet,

Although this template is listed under 'Visual C#' you won't be writing a single line of code in C#/.NET. It is purely HTML5/JavaScript. So essentially it won't matter whether this project is listed under 'Visual C#' or 'Visual Basic'. You can directly use this template even if you are a VB.NET developer and you have knowledge of HTML5/JS

Thanks,
Om Talsania 11/27/2013 12:28 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Aaro,

It looks like something might be missing in the environment variable (PATH) setup.

You must be getting this error in the 'Error List' window of Visual Studio. There is another window located besides 'Error List', namely 'Output'. If you go there, you will get the exact error. If the 'Output' window is showing something like following, then it is definitely PATH issue:

'ant.bat' is not recognized as an internal or external command, operable program or batch file.

Could you please check and let me know? 11/27/2013 12:37 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi thanks for the great post. Followed the instructions and can get it to build only for SDK versions 16 - 19 (which is great but I'd like to target version 10). All other versions fail, including 12, which you created the template for. Here are the errors from the output. Any ideas to get this working?

###SDK version 10###
1> BUILD FAILED
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:698: null returned: 1

###SDK versions 11 - 15###
1> BUILD FAILED
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
1> C:\Users\devinp\Development\android\sdk\tools\ant\build.xml:284: null returned: 2
12/3/2013 3:03 AM | devbb

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi devbb,

Thanks for using the template. I believe the older SDKs had different naming conventions. Could you please try and check in your android\sdk\platforms folder whether the platform folders are following the android-n pattern? i.e. android-10, android-12 etc? If not, rename them.

Once that is all set, check that you have defined the target in the similar fashion in the project.properties file. See below ...
# Project target.
target=android-10

Finally, in the AndroidManifest.xml, the following should be set according to your need
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10"/>

Now, the AndroidManifest.xml itself was created using android-12. There would be some tags that might not be available in android-10. If you build your project at this stage, you will get to know that there are still some errors due to the incompatibility. In order to resolve this, you need to take a look at the Build Output window of Visual Studio. Just before the BUILD FAILED statement, there would be some entries, for example:

.
.
.
.

[aapt] \bin\AndroidManifest.xml:20: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] \bin\AndroidManifest.xml:29: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
[aapt] \bin\AndroidManifest.xml:55: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'

BUILD FAILED
android\tools\ant\build.xml:647: The following error occurred while executing this line:
android\tools\ant\build.xml:688: null returned: 1

.
.
.
.

So you need to go to that line no. 20, 29 and 55 of your AndroidManifest.xml and remove the attributes mentioned. (You may have different line no. and different attributes mentioned in your Build Output.)

Once you do that, clean the project and build again, It should work! 12/3/2013 10:51 AM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thank you Om Talsania that worked! I can now target SDK version 10. The "android-n" sub-directories of platforms directory were the correct naming scheme. The matching of min and target SDK versions in project.properties and AndroidManifest.xml files were also correct.

However, I did have to comment out android:hardwareAccelerated="true" in two places in AndroidManifest.xml.

Next, I was getting other build errors shown below. A quick Google search revealed to revert from Android SDK Build-tools ver 19 to 18.1.1. Reverting to a lower version did the trick for me. I'm sure if I spent more time I could stay with ver 19 without downgrading. But I'm happy with this result for now. Hope this helps someone else.

1> [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
1> [dx] java.nio.BufferOverflowException
1> [dx] at java.nio.Buffer.nextPutIndex(Buffer.java:519)
1> [dx] at java.nio.HeapByteBuffer.putShort(HeapByteBuffer.java:315) 12/3/2013 11:24 PM | devbb

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi devbb,

I am glad it worked for you :)

Best Regards,
Om Talsania 12/5/2013 12:07 AM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi there, very resourceful information here.

I'm having difficulties getting it to work. Below is my Build Output, I cant seem to figure out where the problem is from.

"
1>------ Build started: Project: AndroidApp1, Configuration: Debug Any CPU ------
1> Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
1> Buildfile: G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml:55: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.
1>
1> Total time: 0 seconds
1> Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
1> Buildfile: G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml:55: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.
1>
1> Total time: 0 seconds
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: The command "call ant.bat clean -f G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: call ant.bat debug -f G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
"

Thanks 12/21/2013 12:42 AM | Paul

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

hi ,am get this error can some one help me ..........



1>------ Build started: Project: AndroidApp1, Configuration: Debug Any CPU ------
1> Buildfile: D:\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> D:\AndroidApp1\AndroidApp1\build.xml:90: Cannot find C:\Program Files\Android_SDK\tools\ant\build.xml imported from D:\AndroidApp1\AndroidApp1\build.xml
1>
1> Total time: 0 seconds
1> Buildfile: D:\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> D:\AndroidApp1\AndroidApp1\build.xml:90: Cannot find C:\Program Files\Android_SDK\tools\ant\build.xml imported from D:\AndroidApp1\AndroidApp1\build.xml
1>
1> Total time: 0 seconds
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: The command "call ant.bat clean -f D:\AndroidApp1\AndroidApp1\build.xml
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: call ant.bat debug -f D:\AndroidApp1\AndroidApp1\build.xml" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

12/26/2013 2:47 PM | sskreddy

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

hi ,am get this error can some one help me ..........



1>------ Build started: Project: AndroidApp1, Configuration: Debug Any CPU ------
1> Buildfile: D:\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> D:\AndroidApp1\AndroidApp1\build.xml:90: Cannot find C:\Program Files\Android_SDK\tools\ant\build.xml imported from D:\AndroidApp1\AndroidApp1\build.xml
1>
1> Total time: 0 seconds
1> Buildfile: D:\AndroidApp1\AndroidApp1\build.xml
1>
1> BUILD FAILED
1> D:\AndroidApp1\AndroidApp1\build.xml:90: Cannot find C:\Program Files\Android_SDK\tools\ant\build.xml imported from D:\AndroidApp1\AndroidApp1\build.xml
1>
1> Total time: 0 seconds
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: The command "call ant.bat clean -f D:\AndroidApp1\AndroidApp1\build.xml
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1063,5): error MSB3073: call ant.bat debug -f D:\AndroidApp1\AndroidApp1\build.xml" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

12/26/2013 2:47 PM | sskreddy

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Paul,

You need to set ANDROID_HOME environment variable.

Regards,
Om Talsania 12/27/2013 8:01 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi Om Talsania , Thannks for a nice article. I have follow your steps and make one android project,. when i build it through below error -

The command "call ant.bat clean -f E:\JEGADEES\Android\AndroidApp1\AndroidApp1\build.xml call ant.bat debug -f E:\JEGADEES\Android\AndroidApp1\AndroidApp1\build.xml" exited with code 1.

My Environment variables are,.

JAVA_HOME
C:\Program Files\Java\jdk1.7.0_45

ANDROID_SDK_HOME
E:\JEGADEES\Android\adt-bundle-windows-x86_64-20131030\sdk

ANT_HOME
E:\JEGADEES\Android\apache-ant-1.9.3

PATH
%JAVA_HOME%\bin;%ANDROID_SDK_HOME%\tools;%ANT_HOME%\bin;

Am I miss anything? 1/8/2014 12:09 PM | Jegadeeswaran

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Continuation of above Command.

Hi Om Talsania , I missed the Output of project, So Attached here.

1> -check-env:
1>
1> BUILD FAILED
1> E:\JEGADEES\Android\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:397: Problem: failed to create task or type checkenv
1> Cause: The name is undefined.
1> Action: Check the spelling.
1> Action: Check that any custom tasks/types have been declared.
1> Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Total time: 1 second
1> Buildfile: E:\JEGADEES\Android\AndroidApp1\AndroidApp1\build.xml 1/8/2014 12:29 PM | Jegadeeswaran

# Android App Development in HTML5 using Visual Studio 2012 Express for Web

Cool man!
You have done a grt job (y).

But here at the time of compilation I am getting this error can help what could be the reason behind that.

Error 25 The command "call ant.bat clean -f D:\PS Practice\PhoneGap\PG_Practice\PhoneGap\AndroidApp\AndroidApp1\AndroidApp1\build.xml
call ant.bat debug -f D:\PS Practice\PhoneGap\PG_Practice\PhoneGap\AndroidApp\AndroidApp1\AndroidApp1\build.xml" exited with code 1. AndroidApp1

Thanks in anticipation :) 1/28/2014 4:16 PM | Pragati Singh

# i need to creat -how to get phone contacts from android mobile using jquery ..

hi cud u pls help me how to get contacts from android mobile using jquery 1/28/2014 4:50 PM | sskreddy

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

in response to sskreddy,

http://docs.phonegap.com/en/edge/cordova_contacts_contacts.md.html#contacts.find 2/11/2014 11:42 PM | bobdole

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

fantastic job 2/18/2014 11:07 PM | Mingo

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks Mingo! 2/25/2014 7:58 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks Pragati Singh,

Please have a look at your ANT configuration. What is the result in the Output window?
2/25/2014 8:01 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Jegadeeswaran and Pragati,

Please see my reply to devbb as well.

http://blog.geekypedia.net/archive/2013/10/08/android-app-development-in-html5-using-visual-studio-2012-express.aspx#634040

2/25/2014 8:04 PM | Om Talsania

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks mate. with few tweaks in cordova.js file.. the started working...

Cheers! God Bless! 3/6/2014 6:18 PM | Jagdish

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

hi
how to change cordova version to latest version in this template? 3/28/2014 4:03 PM | saeid

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

1> BUILD FAILED
1> G:\Code_Lab\AndroidApp1\AndroidApp1\build.xml:55: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.

To fix this problem you have to change de Environment Variables ANDROID_SDK_HOME to ANDROID_HOME

5/22/2014 7:44 PM | Thiago

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks for this great tutorial.
Could you please share the template on github.com since the dropbox is not allowed in our company?
Thanks! 6/10/2014 3:47 PM | rahoolm

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

I follow your instructions, the build was successful but when I run.bat, it displays a virtual device I defined but it is not running app. I don't see those five items. What can be wrong?
Thanks in advance.
Ben 8/4/2014 11:46 AM | Ben

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hi there!

I need some help.. :(
I got this message after i tried to build:
Error 64 The command "call ant.bat clean -f D:\TestAndroidApp\TestAndroidApp\build.xml
call ant.bat debug -f D:\TestAndroidApp\TestAndroidApp\build.xml" exited with code 1. TestAndroidApp

I checked the enviroment variables and it seems good.
What should i do? :(

Thanks for any response! 8/25/2014 1:11 AM | Gary

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thanks for your sharing this wonderful gift to humanity.

pls im having the followings errors

Error 26 The command "call ant.bat clean -f C:\Users\tintosman\documents\visual studio 2012\Projects\AndroidApp1\build.xml
call ant.bat debug -f C:\Users\tintosman\documents\visual studio 2012\Projects\AndroidApp1\build.xml" exited with code 1. AndroidApp1

pls how do i go about it

Thanks 10/13/2014 2:29 AM | Netrix

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Thank you for this. The other way that I was doing this is no longer free. This version of doing it seems to be more legit and I appreciate this tutorial.

I was hoping that you may know of a way to put in a javascript or something that can check for updates in the app within the HTML5 technology. I am still learning this but I will appreciate any input.

We do not have the money to put this in Google Play as we are a non-profit homeless shelter. www.steppingintothelightministry.org
12/3/2014 8:24 PM | Michael

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Hola, estoy buscando configurar mi visual studio para phonegap ojala puedas ayudarme por favor 12/17/2014 3:24 AM | richard

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Great post. I was wondering, how can I upgrade cordova version used in the project? 2/14/2015 6:31 PM | Vladimir

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Great! I'm Visual Studio lover too. I'm just wondering, let say I write SQLite database using JavaScript, where the path or SQLite database will be located after I install apk file on android?

Thanks. 5/11/2015 7:33 AM | Nike

# re: Android App Development in HTML5 using Visual Studio 2012 Express for Web

Great! I'm Visual Studio lover too. I'm just wondering, let say I write SQLite database using JavaScript, where the path or SQLite database will be located after I install apk file on android?

I did not find like App1.apk file but have App1-debug.apk. Can I use App1-debug.apk install on android? It's same function with App1.apk if have?

Thanks. 5/11/2015 8:32 AM | Nike

Post a comment