Skip to main content

Posts

Showing posts from August, 2012

Android Web service using Ksoap 2

Create a new android project in eclipse. Open main.xml. -> Take 4  Textview with id 1)  android:id="@+id/txtAddition" 2) android:id="@+id/txtSubraction"  3) android:id="@+id/txtMultiplication"  4) android:id="@+id/txtDivision". Download Ksoap library from this link . we have to include “<uses-permission android:name=”android.permission.INTERNET” />” inside AndroidManifest.xml. Notes : NAMESPACE = “http://calculator.backend.web.org”; We refer this name from the actual web project on backend. The name of package on backend on serverside was org.web.backend.calculator. So we need to write the reverse order of package name. URL = “http://192.168.0.103:8080/AndroidBackend/services/Calculate?wsdl”; Here Your comp Ip addr is required. Localhost wont work. Thats it, you can run the following application. Before running the app, make sure your server is running on Backend.

Android Web service using Ksoap 1

Shaadi.com Matrimonials 1)       Install WSD2java plugin ( org.apache.axis.wsdl2java.eclipse_1.1.0.1.zip   and ( org.apache.axis_1.1.zip   plugin in eclipse (To install the plugin, simply copy and extract both org.apache.axis.wsdl2java.eclipse_1.1.0.2.zip and org.apache.axis_1.1.zip  into the %ECLIPSE_HOME%/plugins        directory and (re)start your Eclipse workbench.)        After that setup “ Axis2-1.4 "  in eclipse.          Open Eclipse. Go to Window -> Preference and you will get the following screen Click on “Web Services -> Axis2 Preferences” Browse the directory to the location, where we have extracted The “axis2-1.4” We should get the following screen “Axis2 runtime loaded sucessfully”. ->Ok Create a new “Dynamic Web Project Make sure Server is configured Properly. -> Finish Create a new package. Right Click on “src -> New -> Package “ -> Finish Shaadi.com Indian Matrimonials Create a new Java class inside the same P

Android Interview Questions and Answers

DJ-Android Android is an operating system for mobile devices that includes middleware and key applications, and uses a modified version of the Linux kernel. It was initially developed by Android Inc..It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries….. The Android SDK includes a comprehensive set of development tools . These include a debugger, libraries, a handset emulator (based on QEMU), documentation, sample code, and tutorials. Currently supported development platforms include x86-architecture computers running Linux (any modern desktop Linux distribution), Mac OS X 10.4.8 or later, Windows XP or Vista.   Android does not use established Java standards, i.e. Java SE and ME. This prevents compatibility among Java applications written for those platforms and those for the Android platform. Android only reuses the Java language syntax, but does not provide the full-class libraries and APIs bundled wi