I am using android studio and I want to test the web service I create on .net 2010 in an android application but every tutorial or link I found is related with a "ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar" library. Is this library necessary to invoke a web service? or the android studio now provide a new way to call WS...
Thanks in advice :)
Well after searching other methods to use web services I found that is not the only way, there are other ways, the thing is that ksoap2 had many helps, tutorials and continue in research... I commend it to use it.
Related
1)How do I create android application which integrated with wordpress website? and please give me perfect solution and references.
2)I had completed my wordpress websites and also try simple plugin of wordpress json api.
*https://wordpress.org/plugins/search.php?q=json
3) I found where i need to create my custom web services so if i got something that create my own custom web service which I used in my application.
4) I tried to fix it with simple static data but I realise that it would give bad impression and helpless app if I do that.
5) Give me any reference and perfect example regarding android application integrated with wordpress.
Ok, This is my own example of integrating android with wordpress.
Install Wordpress Rest APi plugin (Which you have already done)
Go through the documentation: http://v2.wp-api.org/
Get postman running on your machine https://www.getpostman.com/, and learn how to use it. http://www.sitepoint.com/api-building-and-testing-made-easier-with-postman/
Try to make a simple request: http://yourwebsite.com/wp-json/wp/v2/posts, It should print out in Json format and you are good to go.
Use jsonschema2pojo.org to generate plain Java Objects from JSON or JSON-Schema.
Learn how to consume API's, I recommend using Retrofit, learn how to use it. You can start here: https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit
Create a simple MainActivity and model to test your data, just to see how it works.
If you already have a good knowledge of android development, I think this info should get you started with developing a Wordpress android app.
I want connect sales Force from my Android Program please suggest which one is correct way to achieve this I am new to sales Force I have some knowledge in Android Application Developement.
Thanks in Advance.
You definitely want to use the REST API for mobile apps. The SOAP API is really heavy, and is better for Server-to-Server integrations. The best way to get started building an Android app for Salesforce.com is to take a look at the Salesforce Mobile SDK for Android:
http://wiki.developerforce.com/page/Mobile_SDK
There's a very helpful getting started PDF linked on that page.
However, the SDK is meant mostly for starting new apps, so you'll have some work ahead of you integrating it into an existing application. The main things you want are the oAuth 2.0 User-Agent login and REST wrappers.
You may also find this app useful -- I put it together for a presentation at Dreamforce '11, which was shortly before the Mobile SDK for Android came out, so I wrote the oAuth and REST stuff myself. Might be a simpler starting point for you.
https://github.com/tomgersic/DreamforcengerHunt
Hope that helps!
You can either use the RESTful interface or the SOAP webservices. The latter is a bit easier to deal with IMHO.
Under setup in salesforce, download the partner or enterprise WSDL (partner = generic, enterprise = specific for your SF-instance). Now with wsdl2java you can create Stubs for those wsdl entries. Import those into your android app and use them. See here for a Java Exampe by Salesforce.com.
Be sure your user has the permission to "do API". You might want to look into SSO if you want to make a "production"/commercial app. Also, to login, remember to use the correct password, you might need to add the API key (generate using the Setup tab in SF). Hope this helps.
Try checking out some of the open-source SDK projects the developer evangelists have added to the forcedotcom github
Lots of good examples on different platforms, including android with phonegap/html5 and a native SDK for android (iOS and Android) to get you past authentication and onto building your app.
Salesforce Provides mobile SDK for development on mobile device, here is the link for android SDK:
http://wiki.developerforce.com/page/Getting_Started_with_the_Mobile_SDK_for_Android
You need to:
Download SDK.
Add a sample project included in SDK's native/SampleApps folder(make sure you check include to the workspace while importing the project).
Get your remote access form salesforce and update in your app.
--This should get you started with a sample app form salsforce.
After this you need to modify existing code to your own code.
You can go to trailhead and start browsing on it, while working with your own application you will have to learn a lot about smartStore and smartSync,
I did implemented A smartStore App with using salesforce as database provider, if you want i can upload it to drive and share a link to you and
if you have any doubts about using or understanding the flow be free to ask..
Is there any tutorial online which explains how access files from Google app engine using an android application? I'm trying to find online but no luck so far..
Thanks,
Not sure what files you mean, but a while ago I wrote a simple tutorial that shows how to invoke a webservice from android calling into GAE.
http://broschb.blogspot.com/2009/08/android-and-google-app-engine.html
http://broschb.blogspot.com/2009/08/restful-service-on-google-app-engine.html
It has been a couple of weeks and I am having so much trouble making C2DM work. I've read a million guides and watched video tutorials but have had no luck. I just need a way to communicate with my server and my phone in the simplest way. Any help?
If you're still interested in trying C2DM, try installing the Google Plugin for Eclipse and use it to generate the Android / App Engine sample project. It should be able to generate a skeleton project that is able to communicate between AppEngine and a basic Android application. You could verify that the sample works and use it as a basis to debug your custom application.
There was also a related AppEngine + Android session at Google I/O this year.
The easiest way to get push into your app is to use a third party push provider like Urban Airship or Xtify. Instead of writing the code to interface with google directly you integrate the third party SDK into your app and they handle the messy stuff.
Additionally, you don't have to worry about scaling if your app gets (or already is) big. And going cross-platform (iOS, Blackberry) is that much easier.
I am currently working on an application in android where I need to call the Web Service. I am working in Android and I don't have an idea about how to call a web Service in Android.
So, can anybody please help me out in how to call a Web Service in Android Programming.
Thanks,
david
We use Ksoap2 WS-Stack implementation, suitable for constrained devices such a mobile phone. You can not use it directly on Android. However there is a port with some small tweaks so it can work. You can find it here.