Android :: Building Phonegap Example App?
Sep 16, 2010
I am trying to build android example app by using phonegap. Here are the the system details.
Operating System : Windows XP
Android Sdk : 1.5 ( Previously i had 2.2 but deleted suspecting problem was with that)
Ruby : 1.9.1-p430
Ant: 1.8.1
Java JDK 5
PhoneGap 0.9.1
System Enviroment Variables
ANDROID_HOME : D:workandroid-sdk_r3-windowsandroid-sdk-windows
ANT_HOME : D:workANTapache-ant-1.8.1
JAVA_HOME : C:SunSDKjdk
CLASSPATH : C:SunSDKjdklib
Path : D:workandroid-sdk_r3-windowsandroid-sdk-windows;C:Ruby191in;D:workANTapache-ant-1.8.1in;D:workandroid-sdk_r3-windowsandroid-sdk-windows ools;
I ran ruby script and get output as below
$ ruby ./droidgap "D:/work/android-sdk_r3-windows/android-sdk-windows" pgtest c
om.example.android.pgtest example/ "D:/work/droid_apps/output1"
Building the JAR...
BUILD FAILED
D:workandroid-sdk_r3-windowsandroid-sdk-windows oolsantant_rules_r3.xml:28
3: null returned: 1
Total time: 1 second
Creating Android project for target level 1
Adding www folder to project...
Generating manifest...
Copying over libraries and assets and creating phonegap.js...
c:/Ruby191/lib/ruby/1.9.1/fileutils.rb:1265:in initialize': No such file or dir
ectory - D:/work/phonegap/phonegap-android/framework/phonegap.jar (Errno::ENOENT)
CODE:......
I even changed ant to ant.bat at one place, android to android.bat at two places in ruby script. I also set target_id = 1 which is for 1.5 sdk.
View 3 Replies
Sep 5, 2010
I'm trying to get PhoneGap working. I've hit a hurdle getting started. I've downloaded version 0.9.1. I've been following the instructions at http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse.
Using MacOS 10.5.8. Android SDK is already installed and working with Eclipse. My .bash_profile file looks like this:
$PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
export PATH=${PATH}:/Applications/android-sdk-mac_86/tools
export PATH=$PATH:/Applications/phonegap-android/bin
(and I restarted my terminal window to make it take effect) I've tried the following command cd /Applications/phonegap-android/bin
ruby ./droidgap /Applications/android-sdk-mac_86 HelloPhoneGap com.myidentity.android /Users/myidentity/Documents/workspace/HelloPhoneGap/assets/www /Users/myidentity/Desktop
and I get the following error: ./droidgap:4:in `require': no such file to load -- /Applications/phonegap-android/bin/lib/generate.rb (LoadError) from ./droidgap:4
View 1 Replies
View Related
Oct 8, 2010
I need to scan a barcode using phonegap in Android and iPhone.
Is there a way to do this? If yes, please share links.
View 2 Replies
View Related
Jun 19, 2010
i've read about phonegap which enables to write web-based apps for android and i was wondering:how is performance of phonegap compared to a "real" android app.what would NOT work in phonegap?i know it's possible to implement google maps with phonegap but i guess there's a lots of limitation compared to direct coding the maps under android?as a newbie to android (but intermediate in web-programming), should i rather go for direct android coding instead of phonegap? i'm planning to write an app which uses google maps service+gps, database access and such, and i'm afraid it's not really possible with phonegap.
View 2 Replies
View Related
Aug 9, 2010
Currently I've been using google's static maps to display maps in a phonegap app I'm developing. But I'm wondering if there's any way to load a google map that the user could scroll into and out of? I would want similar functionality as the maps app in most mobile environments. Is there any way to incorporate that type of service into my app?
View 2 Replies
View Related
Apr 28, 2010
I believe that it's possible to call Java methods from (PhoneGap) Javascript. Anyone knows how to do that?? (I know how to do it by changing the source code of PhoneGap, but I'd avoid that)
View 3 Replies
View Related
Jul 7, 2010
I followed the tutorial here but when I create the project in Eclipse, i get an error "invalid resource directory name. Resource: "drawable-hdpi" path "/HelloAndroid/res" type "Android AAPT Problem"
View 1 Replies
View Related
Jul 28, 2010
I want to be able to make an iphone and android app using php. I have looked at phonegap and appcelerator and it seems like only html and javascript can be used. These frameworks want to make it easy to make apps using web technologies and PHP i would argue is one of the biggest web technologies, but I'm not seeing much (if any) support. I am new, so I could be wrong on multiple levels. So please enlighten me and let me know if what I am trying to achieve is possible.
View 2 Replies
View Related
Mar 26, 2012
how to develop an offline sync app using the OpenMobster Sync Plugin for the PhoneGap framework. You can develop your App using HTML5 and Javascript instead of the native programming language.
Features:
-two way synchronization between the local sqlite database and the corporate backend in the Cloud
-Offline mode operation. All data changes are tracked and auto synchronized with the Cloud once the connection returns
-Use of Push notifications to push data changes from the Cloud to the device
-Support for replicating changes to multiple devices like iCloud does
-A Java based Channel Framework for integrating your backend with the Cloud
View 1 Replies
View Related
Nov 4, 2009
i need my app to support 1.5 and above. i noticed that if I create my build.xml file using --
c: oolsandroid2.0r3 oolsandroid update project --name MyProject -- path C:MyProject --target 2
it complains about my resource directory names "res/drawable-hdpi, res/ drawable-ldpi, etc... res/layout-large, etc..." saying "invalid resource directory name".
If I use 1.6r1 tool set c: oolsandroid1.6r1 oolsandroid update project --name MyProject -- path C:MyProject --target 2
Everything works fine.
If I use target 3 (1.6 and above) c: oolsandroid2.0r3 oolsandroid update project --name MyProject -- path C:MyProject --target 3
Everything works fine. So, do I basically *have* to use 1.6r1 to build for 1.5? And does that mean that those special directory names will only work on 1.6 and above?
View 6 Replies
View Related
Dec 1, 2009
I've G1 dev phone. Earlier I upgraded it to 1.5 using HTC website. Now I want to customize (make some changes to ) source code and keep the changes running on G1 phone. I wanna go with cupcake release. Could any body please give me some pointers. If I download cupcake source code from android website and do 'make' for which target it will generate the images ?[Emulator or G1 phone etc.,]
View 3 Replies
View Related
Nov 5, 2009
I was just wondering where there is any information on creating custom user interface libraries for Android. I would like to create a library and include it in an application by specifying something like <uses- library android:name="com.foo.bar" /> in the manifest (just like maps) and have an Activity that can be inherited from like the MapActivity. How can one create and build a library like this?
View 7 Replies
View Related
May 19, 2010
So, I'm new to developing apps (altogether) and I thought that it would be fun to start out on the Android. I did the test with "HelloAndroid" app, but I have no clue on how to run the app on my phone via Eclipse. I remember reading about it a long time ago (sometime in February) but I have no idea where to find it.
View 2 Replies
View Related
Jun 1, 2010
I want to use DTLS (on OpenSSL) using JNI on Android 2.1/2.2. Can someone help me get started (tutorials, howto, pointers etc) with building OpenSSL for Android (2.1/2.2) using the Android NDK?
View 1 Replies
View Related
Aug 31, 2009
When I download the source and build it according to http://source.android.com/download, then try to build the eclipse dev evironment as described on http://source.android.com/using-eclipse, I get 100s of Java Errors when trying to build the project.
Linux is 2.6.28-15-generic #49-Ubuntu Eclipse is eclipse-java-galileo-linux-gtk.tar.gz
18# java -version java version "1.5.0_18" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02) Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing) 19#
View 5 Replies
View Related
Apr 23, 2010
When using an Android-generated ant build file, the file references your SDK installation via an sdk.dir property inside the local.properties files which is generated by "android update project -p .".
The comments in build.xml suggest that local.properties should NOT be checked into version control.
BUT, when you run your build from Hudson, it does a fresh checkout of your code from version control, hence local.properties does not exist and subsequently the build fails without sdk.dir being set. So its kind of chicken and egg problem. As a workaround I have checked local.properties into version control for now (nobody else will use it) but I was curious as to how other developers had tackled this problem ?
View 2 Replies
View Related
Feb 4, 2009
Solved this by following the instructions at http://www.mail-archive.com/android-porting@googlegroups.com/msg01340... Also realised - that looks like a more appropriate mailinglist too :)
View 2 Replies
View Related
Oct 17, 2010
I'm tinkering around with trying to build a speedometer using only the accelerometer for use when I go snowboarding. I can read values from the accelerometer but I'm not sure how I would derive the velocity. I was thinking of taking the square root of (X^2 + Y^2 + Z^2) where X, Y, and Z are the values reported by the accelerometer in each axis but that only would only give me the amplitude of acceleration at any given instant. I could multiple that by the sampling frequency to get my instantaneous velocity but this approach fails when I'm moving at a constant speed.
View 2 Replies
View Related
Feb 26, 2010
I want to know if we can create builds using ant's build.xml and when i'm trying to do this an error is displayed SDK location not mentioned and besides that I'm unable to find local.properties file to mention the SDK Location. My aim is that I want to use my exiting code and make a build for new Android SDK's with changes in the resources and and some constant values is this task Possible with making a build using Ant and if by some other way. I have no idea about Ant and its functioning so it would very appreciable if minute details are also provided.
View 2 Replies
View Related
Apr 21, 2010
I just installed NetBeans and the Android SDK following the instructions here. I am running Ubuntu 9.10 (Karmic). NetBeans is 6.7.1. The Android SDK is version 7.W.When I go into that directory, I see that the file does exist and it has proper permissions to be executable by anyone, yet even bash can't find it!
View 3 Replies
View Related
Jul 1, 2010
Suggestions for building a treeview control in Android
View 1 Replies
View Related
Aug 6, 2010
I want to start making cellphone apps with Android as first choice but not the only one. I have 10 years of experience with Java, C#, C++ in commercial applications and I know that many things and practices for this applications are not valid for cellphones. Where do I start reading? How do I adapt my way of thinking to this new environment as quickly as posible? I plan to make some money with it sometime in the future as an extra income or a career change maybe, who know.
View 6 Replies
View Related
Jul 15, 2010
I want to build Alarm Clock application on android .Is there any tutorial available on net??
View 1 Replies
View Related
Sep 10, 2010
I seek instructions for buiulding Android on the HTC Nexus. I have tried looking atthe OpenMoko ones, but could not find any useful guides. I have the Android SDK and Java JDK and this is it. All the guides on the Android site refer to installing Eclipse, which is for build Java apps so not a lot of use. Has anyone got some links? Please note that this is a question about building the kernel and the distribution around it. It is not about building applications for Android).
View 1 Replies
View Related
Mar 5, 2010
I want to modify the Skia graphics library in Android slightly.
Is it possible to only rebuild the modified library without downloading and building the whole platform? The platform is massive and this is too much a bother..
Downloading and building the small number of projects Skia depends on seems ok to me, but the build script requires everything!
View 1 Replies
View Related
May 15, 2010
I'm trying to build dschaefer android-box2d, and did follow the recipe.
I do get this error when trying to build the TestBox2d with eclipse:
Make all
CODE:........................
The only thing I did change was in the TestBox2dMakefile where i did change the path to the NDK.
View 1 Replies
View Related
Dec 23, 2009
I'm going to start building some apps for android in the new year and i was wondering if people would like to suggest any apps they would like to see developed for their HEROS.Any suggestions welcome - the more unique the better.
View 34 Replies
View Related
Mar 16, 2010
With my current code base I'd like to build two or more different versions of my Android app (free, premium,). For the iPhone (XCode) I can definte different targets. Is there something similar implemented in Eclipse?
View 1 Replies
View Related
Feb 23, 2013
I am trying to make an app base on HTML and java actually I have this mobile site and contents are mostly text and 2 java picture galleries, and I need to run it as a native app. Is it possible to make mobnile website in other tools and somehow import them manually to Eclipse to get the app built? Because when I use new-->android application, the projects have only XML files and I am not familiar with xml.
View 9 Replies
View Related
Nov 1, 2011
I am doing a project where we have to use the Android Terminal Emulator. I downloaded the the Jackpal Android Terminal Emulator from github and using the instructions in the document to build the terminal emulator.
[code].....
I am having trouble installing the package in the first step itself, i.e. building the ndk shared libraries.
According to the instructions provided:
Build the shared library:
cd <the-android-terminal-emulator-directory>
<path-to-the-android-ndk>/ndk-build
Accordingly, I typed the following in my cmd
C:>cd androidterm
C:androidterm>android-ndk-r6b/ndk-build
I got the following error message:
'android-ndk-r6b' is not recognized as an internal or external command, operable program or batch file.
I am still learning Android and have never worked with the command line before. Is it a problem with the way I have typed the command?
View 8 Replies
View Related