i am new to Android development
i have a web service made in php now i want to consume it in android can any one guide me how to achieve this..???
i have tried many code samples on net but failed to achieve this goal.
i am using Eclipse with ADT.
any help would be appriciated.
Kindly go through the following link. you will find code examples here
http://www.anddev.org/calling_a_web_service_from_android-t348.html
Android is developed using Java platform. what you should do is create a WebService and expose the WSDL via HTTP.
write your java program calling this Webservice.
its easier and simpler.
Related
I need to know that whether we can use same database or URL for ios as well as android.
For example I am logged in with android so in the section where we use the URL , can we use the same URL for android which we use for ios. Actually I want to make an app for ios and android both.
But I want to make only one database for both that is android and ios.
I have tried using one URL in my login activity which was working on ios..but its not working.can somebody guide me?
Yes. It is very possible. It depends on the method youu are using to retrieve/send data to the database. The most popular ways to do the same is use of REST or SOAP to do client-server communication. Both work fine, but you will need to learn about doing the same. I would recomment REST for android since it is the most commonly used and is also easy to understand and use.For Ios i would recommend the AFNetworking library, speed is recommendable. You can download the library using this link:
https://github.com/AFNetworking/AFNetworking
I'm trying to create a WCF (web service) in order to connect a oracle data base server and use it on a android app. Could someone tell me which language is the best in order to create a WCF? I know visual basic .Net is good for it. Is there other langague for it? And could someone show me a good tutorial in order to create this WCF? I don't want to create a ASMX, I think WCF is better.
Please Help!
Thanks in advance.
I'm not sure whether categorizing one vs. other as best is the right way to think about it. There is a ton of code out there written in both languages. Personally and because of my background - I use c# and all the .NET jobs I've had over the years have required c# knowledge and not VB.NET.
That being said - you can implement a WCF service in either language.
I'm sure you have investigated what WCF is. If not - you can start here: https://msdn.microsoft.com/en-us/library/ms731082(v=vs.110).aspx
The following tutorial should get you started:
http://www.tutorialspoint.com/wcf/
You will need a .NET library that allows you to connect to an Oracle Database. One that I've used is the Oracle Data Provider for .NET which is from Oracle.
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html
I have android WebRTC Android demo app code running with https://apprtc.appspot.com/ server.
But what i want to archive is, I want to replace the server https://apprtc.appspot.com/ with my own server, i want to also modify/remove the part of the code where it communicants with the server as my server communicates differently.
I want to keep the WebRTC related API calls as it is, and only replace the part of the source code which is communicating with the https://apprtc.appspot.com/ server.
So basically i want to know, what are the WebRTC APIs that i must call for allowing AV calls using my server, I have STUN/TURN and registration servers.
I just want to reuse the core WebRTC functionality only and write app on top of it.
Can someone please guide me on this!
Thanks in advance.
you can achive android webrtc app by two ways.. both are working perfectly..
1.
Follow this example, i have tried it and work success fully.
Only need to make one change is the link provided in this example for gclient config command is older one. Follow your link gclient config http://webrtc.googlecode.com/svn/trunk
Also make sure that you have oracle jdk-6, other version creates issues while following the steps to get the native code.
2 .
You can use Frozen mountain library, which provides you variety of apis for developing webrtc app..
Hope this will help you..
check here
I have also created 1 demo project where I set my turn and stun server. There is a site http://sipml5.org which provide good detailing example.
You can download their code and set your own configuration or you can take reference in your application. Created demo project link is http://telzy.webuildapps.co, reference taken from http://sipml5.org/call.htm .
Hope this will help you.
I have a wsdl service and as i generate it with svcutil.exe, it gave me a .cs file. Now my question is how can I call the service with javascript for android. where do I go from here? any suggestions or any reference/step-by-step tutorial or a sample demo would be a great help for me. I am developing an application for android with phonegap 1.4.1, Many thanks.
This tutorial describe how to call a webservice directly from javascript:
http://www.ibm.com/developerworks/webservices/library/ws-wsajax/
i am using a WSClient++ Java for Android project to generate the classes of my webservice but the version is the trial soo the program only generate two methods. My webservice have only one but miss some classes after generating. Anyone knows other software like this?
thanks
I think you can use DOM t generate your xml from WS. (http://www.w3schools.com/dom/default.asp)
Also, generate the Web service using simple java program with the help of Apache tomcat and Axis2. (http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html)
Then call these Web Service in Android using kSAOP library.
Regards,
Sneha