Skip to main content

Posts

Showing posts from July, 2012

Getting current geo location details of the mobile device using PhoneGap (Cordova)

 The PhoneGap library provide lot of useful functionalities for accessing native mobile features like Camera, Geo location, Voice recorder etc., In this tutorial I am going to collect current Geo location details of the mobile device using Geolocation methods available in PhoneGap (Cordova).  PhoneGap (Cordova) provides two different methods for getting geo location details. Those are,             1. geolocation.getCurrentPosition - Returns the current position as Position object.             2. geolocation.watchPosition - It continuously watch changes of device 's current position.  The example for above methods are shown here. navigator.geolocation.getCurrentPosition(geoLocationSuccess,geoLocationError,{timeout:30000}); (or) navigator.geolocation.watchPosition(geoLocationSuccess,geoLocationError,{timeout : 30000}); function geoLocationSuccess(posi...

"_NSURLIsExcludedFromBackupKey", referenced from: [CDVFile setMetadata:withDict:] in Cordova, ld: symbol(s) not found for architecture i386

 Hi, Last week I have updated my PhoneGap (Cordova) version from 1.3 to 1.9, for both IPhone as well as Android. In XCode I have installed the newer version of Cordova and I have created new project using Cordovo 1.9. When I was running my application I got the following error and also the compilation was failed. The error is, Undefined symbols for architecture i386:  "_ NSURLIsExcludedFromBackupKey", referenced from: [CDVFile setMetadata:withDict:] in Cordova,  ld: symbol(s) not found for architecture i386 For fixing this issue, I have updated my AppDelegate.h file with following code. #import <UIKit/UIKit.h> #ifdef CORDOVA_FRAMEWORK     #import <Cordova/CDVViewController.h> #else    #import "CDVViewController.h" #endif NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";  @interface AppDelegate : NSObject < UIApplicationDelegate > { }

The connection to the server was unsuccessful - Mobile development

 When I was working with mobile development using PhoneGap with JQurey mobile, many time I got error like "The connection to the server was unsuccessful" as shown in the figure, when launching the  application using Android simulator. I had searched using google and I found the following solution. What I had done is, I updated the Java class (main activity class) with following code present in src folder. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); //Needs to update the loadUrlTimeoutValue property super.setIntegerProperty("loadUrlTimeoutValue", 60000); super.loadUrl("file:///android_asset/www/index.html"); }  Here I have increased the  loadUrlTimeoutValue value as 60 seconds.

Sencha Touch 2.0 - Video tutorial for creating tabbed panel using Eclipse

 Hi, This video will help you to create a tab panel in sencha touch application. Here  you can download source code of the entire application.