Skip to main content

Posts

Showing posts from 2010

Location sharing and updating in iphone iOS 4

iOS Devices (iPhone, iPod touch, iPad) On the native application, which you can download from the App Store: Enable location services on your device by going from your Home screen to Settings >General and turning "Location Services" to On. Open the application and sign in to your Google Account if you haven't yet (Google Apps users learn more). Enable background location reporting by going to Settings > Background updating > and turning to On. Note: the native application will run on the iPhone 3GS, iPhone 4, iPad, and iPod touch (3rd/4th generation), with iOS 4+. However, background location updating is only supported on the iPhone 3GS, iPhone 4, and iPad 3G. Your location will only update in the background when you're moving (exceptions: when you switch the app from foreground to background mode, or go from a "moving" to a "stationary" state, the app will continue to update your location for a few minutes). The background locatio...

Async in c#, web service Credential

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimActivation.aspx.cs"  Async="true" Inherits="SimActivation" %> com.att.wireless.eod.Provision p = new com.att.wireless.eod.Provision(); p.Credentials = new System.Net.NetworkCredential("xx", "xx", "costudio.com"); p.Activate_SIM_PPUCompleted +=new com.att.wireless.eod.Activate_SIM_PPUCompletedEventHandler(UpdatePhoneNumber); p.Activate_SIM_PPUAsync(koreId, "VRG1", activateDate, "lbt", string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, 99, string.Empty); public void UpdatePhoneNumber(object o, com.att.wireless.eod.Activate_SIM_PPUCompletedEventArgs e) { if (e.Result.Status_Code.Equals("1")) dm.ActivateWithPhone(koreId, e.Result.MSISDN); Response.Write("Status Code: " + e.Result.Status_Code + ", MSISDN:" + e.Result.MSISDN + ", Batch_Identi...

Wordpress install

Famous 5-Minute Install http://codex.wordpress.org/Installing_WordPress Users of XAMPP (Windows):   Some versions of   XAMPP   do not enable   mod_rewrite   by default (though it   is   compiled in Apache). To enable it — and thus enable WordPress to write the   .htaccess   file needed to create pretty permalinks — you must open   apache/conf/httpd.conf   and uncomment the line   LoadModule rewrite_module modules/mod_rewrite.so (i.e., delete the hash/pound sign at the front of the line). \wamp\www\wordpress\wp-includes\httpd.conf LoadModule rewrite_module modules/mod_rewrite.so step1: download/install http://www.wampserver.com/en/download.php step2: C:\wamp\bin\apache\apache2.2.13\conf httpd.conf : change port from 80 to 8x step3: create database for wordpress in mysql step4: download wordpress and unzip to www folder step5: Editing wp-config.php

Location Sensor , wifi, gps

http://geosenseforwindows.com/   Geosense is a Windows Sensor that provides positioning information. The sensor utilises the Google Location Services for WiFi and IP triangulation to provide reasonably accurate location data. http://www.turboirc.com/gps7/ Welcome to  GPSDirect  NMEA Sensor Driver for Windows 7. A driver that maps any COM-based NMEA-compatible GPS hardware to a Windows 7 Sensor.

Geolocation, Google Gear, Html5

The Gears   Geolocation API   can make use of network servers to obtain a position fix. The server determines the client's position using a set of data provided by the client. This data includes the client's IP address and information about any cell towers or WiFi nodes it can detect. This document describes the protocol used to send this data to the server and to return a response to the client. http://code.google.com/apis/gears/geolocation_network_protocol.html http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/examples/index.html map-geolocation.html // Try W3C Geolocation method (Preferred)   if(navigator.geolocation) {   browserSupportFlag = true;   navigator.geolocation.getCurrentPosition(function(position) {   initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);   contentString = "Location found using W3C standard";   map.setCenter(initialLoca...

bluetooth Application with Microsoft Location API

Windows® API Code Pack for Microsoft® .NET Framework http://code.msdn.microsoft.com/WindowsAPICodePack/Release/ProjectReleases.aspx?ReleaseId=3574 bluetooth sensor  driver http://www.turboirc.com/gps7/ Namespace:     System.Device.Location Assembly:     System.Device   (in System.Device.dll) http://msdn.microsoft.com/en-us/library/system.device.location.civicaddress.aspx Identifying Bluetooth-enabled notebook computers Bluetooth software is part of the Windows operating system; however, that does not mean that Bluetooth hardware is installed on a particular notebook. To determine if your notebook has Bluetooth hardware installed, refer to the product specifications for your particular notebook model. Click  Start  , enter  hp wireless  in the search field, and then select  HP Wireless Assistant  from the list. The HP Wireless Assistant opens. The Wireless devices that are installed on your computer display. If you h...

different layout orientations in Android Emulator

It’s important to test your application on different layout orientations and also on different screen sizes. I am going to show how to change your emulator orientation. The solution is next: Switch to previous layout orientation (for example, portrait, landscape) -  KEYPAD_7 or  Ctrl-F11 Switch to next layout orientation (for example, portrait, landscape) -  KEYPAD_9  or Ctrl-F12 Note: If you prefer to use  KEYPAD_7  or  KEYPAD_9  you need to  turn off your Num Lock. As you see it is very easy.

Configuring Web Applications for iphone, ipod, ipad

http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html <link rel="apple-touch-icon" href="/custom_icon.png"/> <link rel="apple-touch-startup-image" href="/startup.png"> <meta name="apple-mobile-web-app-capable" content="yes"  /> <meta name="apple-mobile-web-app-status-bar-style" content="black"  /> 

USB Driver Android

USB driver for MOtorola Cliq XT http://www.droidforums.net/forum/tech-issues-bug-reports-suggestions/31212-motorola-adb-interface-driver.html http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM1000008806b00aRCRD&pubid=987654 adb logcat adb devices

iPhone Web Application with jQuery

http://www.jqtouch.com http://developer.apple.com/safari/library/navigation/index.html http://iphone.hohli.com http://www.leapbeyond.com/ric/scuba/appletdemo/FullScreenMap.htm http://econym.org.uk/gmap/example_fullscreen1.htm

WebKit App for Android / iPhone

A quick look: There are two externally loaded JavaScript files: one for the jQuery library and one for helper functions for the application. The use of the viewport metatag to adjust the content's rendering scale. A primary stylesheet is loaded: main.css. The userAgent is interrogated to determine which additional stylesheet to load: one for iPhone, one for Android, and one for Desktop. When the page is loaded, the data is displayed through the help of jQuery and a helper function in the helper.js file. The balance of the page contains a couple of div tags. viewport metatag: <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=yes" />

Android Developer Learning Resource

Developing In Eclipse, with ADT http://developer.android.com/guide/developing/eclipse-adt.html Signing Your Applications http://developer.android.com/guide/publishing/app-signing.html Compile and sign with Eclipse ADT To create a signed and aligned .apk in Eclipse: Select the project in the Package Explorer and select File > Export . Open the Android folder, select Export Android Application, and click Next . The Export Android Application wizard now starts, which will guide you through the process of signing your application, including steps for selecting the private key with which to sign the .apk (or creating a new keystore and private key). Complete the Export Wizard and your application will be compiled , signed , aligned , and ready for distribution. DroidDraw is a graphical user interface (GUI) builder for the Android platform http://code.google.com/p/droiddraw/

Android Virtual Devices

Creating an AVD [android create avd -n -t [- ] ... ] android create avd -n avd1.6 -t 3 [android list targets] Available Android targets: id:1 Name: Android 1.1 Type: platform API level: 2 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P id:2 Name: Android 1.5 Type: platform API level: 3 Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P id:3 Name: Google APIs Type: add-on Vendor: Google Inc. Description: Android + Google APIs Based on Android 1.5 (API level 3) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: HVGA (default), HVGA-L, QVGA-P, HVGA-P, QVGA-L Deleting an AVD You can use the android tool to delete an AVD. Here is the command usage: [android delete avd -n ] android delete avd -n avd1.6 http://developer.android.com/guide/developing/tools/avd.html

web service: Request format is unrecognized for URL unexpectedly ending

<system.web> <webservices> <protocols> <add name="HttpGet"> <add name="HttpPost"> </add></add></protocols> </webservices> .... ASP.NET Webservices "The test form is only available for requests from the local machine" This would enable the Web service to be able to be invoked from remote machine. However, this invoking would work only for simple data types and would not work in the case of complex datatypes. Similarly, this setting would only be useful in development / testing scenarios and it is advisable to remove / comment the above section when releasing for production, due to security reasons.