How do i create android application to integrated with wordpress? - android

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.

Related

WordPress Api + Android

I have a blog which is written in WordPress but not hosted on Wordpress.com, and I would like to develop an Android app to interact with this blog via the Wordpress REST Api. I searched in the Wordpress developper documentation and it seems that you can interact with this API only through Wordpress.com.
I have also made some Google searches and I found that many plugins provide this functionality but I don't know which one to use.
My Android app will interact with this blog. It will get all the blog posts, comment, post comments. If the user is an admin, he can create new posts. Note that I could simply create an RSS feed and everything would be alright but I want to take advantage of the Wordpress API.
What are the best solutions to achieve this?
One Doubt, if its API Means you can Use JSON or XML for Android
First Check for JSON
Check This
other wise use that API and Create a Custom RestFul web services which Reads Data form that API,.. Automatically.
Better to Use API for Fast Results..
Is there a reason to develop this app yourself? Because if there's none, you should check the official app by Wordpress in the Google Play. I use it for some self hosted blogs and it's very helpful.
As I understand - to get required functions you need WordPress REST API (Version 2) and one of plugins for authentication: Basic-Auth of OAuth1 WP-API on GitHub
For more details please see official documentation on v2.wp-api.org

How to access one Cloud Datastore(Google App Engine) from Android app and django-website?

so I created App Engine Connected Android Project, I successfully deployed it to app engine server and I`m able to upload and retrieve my entities from my android app.
Now I want to create a website, which should access same entities and most preferably I want to code it in python-django. Is it possible? Or create django website and then somehow add android access endpoints? I couldn`t google anyhing useful.
Im stuck here and will be really really thankfull. This is my first app engine app so I hope Im not asking stupid question.
If I understand correct, you already have deployed your core functionality on the server side via Cloud endpoints and are able to access that functionality from your Android client.
You can definitely access the same functionality via a web application (this could be the same App Engine application in which you have hosted the cloud endpoints) or it could be another web application also. The Endpoints can be accessed via a JavaScript client API that Google provides. Take a look at the following API : https://developers.google.com/api-client-library/javascript/ and the documentation for accessing endpoints via JavaScript : https://developers.google.com/appengine/docs/python/endpoints/consume_js
The projected you created using the wizard using Java on both Android and GAE. You could add a web client to that as described in #Romin's answer, but you can also use Django.
I think the best way to do this is to scrap the Java server that the wizard generated and replace with a Django/Python runtime. As you suggested, you can then use Cloud Endpoints to generated Android client code from your Python code.
It is possible to stick with the generated Java Server and use Django but I think that adds unncessary complexity. YOu would need to either communicate between the Python and Java applications, or use the new modules feature to have 2 different runtimes in one app, but this will probably result in greater cost and it would be a cutting edge use of a new feature. I"ve looked at the Java modules docs and don't see how one would add a Python runtime to complement your existing Java runtime, but apparently it is possible:
https://groups.google.com/forum/#!msg/google-appengine/1228g7-qXZY/_ubjgHlE2_wJ

Creating native android application for a Wordpress website

I want to create a native android application for a wordpress website. I want the user to be able to
view the blogs according to the categories.One approach I found is to use xml-rpc api which is
provided by Wordpress. With administrator rights it is working, but I would like to read blog
categories and posts without hardcoding administrator credentials for security reasons.
Another approach I found is to use RSS feed parsing. But I'm not able to get through it properly. Is there any other alternative for doing this? Any suggestion or advice would really be helpful..
An other way you can explore is to use the JSON API Plugin. I used it for a previous app, and the features provided are quite good to retrieve blog content. Anyway you retrieve data in a JSON file then you have to treat it. I used Jackson library which provided simple features too.

SalesForce with Android?

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..

How to create a full-featured Android app for a website?

This is my website: http://www.stustu.co.uk..
I want to create an app that can pull down the listings from this website and display the entries in the form I want; enable users to manage their online accounts conveniently within the app; post new entries. Basically, a similar app to Amazon and eBay.
But I've no clue about how to query the information from the website in the app...
The website itself is WordPress based (quite simple, therefore), and my initial thought was to find some API from WordPress. I did find the official WordPress app, which comes with the source code, but it helps little as its code mainly deals with blogging.
So here's my question:
What are the normal ways a web developer would use on the server side to achieve my aim?
Is that achievable for WordPress?
If not, are there workarounds?
I'm a new self-taught developer, sorry that the question is a bit broad.
The most common approach when you're trying to communicate between an app and a website is to use a web service. Popular architectures include using REST or SOAP to communicate with your server.
This video will teach you how to use REST interface properly on your Android application, while in this link you will find that using SOAP has its disadvantages over REST especially on Android(or mobile in general).
I personally recommend using REST APIs with responses in JSON format for your web service. Twitter did the right thing with their own rest api, and you can structure yours similarly.
Other links you will be finding useful as you develop your application:
google-gson
jackson JSON
http://blogs.developerforce.com/developer-relations/2011/02/rest-api-android-awesome.html
Sorry about not answering your question about Wordpress, as I never had the opportunity to use it. For my apology, have this potato.
How much experience do you have with android? If you have none you should go find the getting started tutorials on the developer site and complete a few of them to familiarize your self with the structure of an android application before you attempt something like this.
The next thing to consider is: does your site look and act nicely on mobile? If so do you want your application to simply be a dedicated browser that pulls up your site? Or do you want to create the entire application natively? In the latter case you'll have to build (or find) some sort of APIs that allow you to tie in to the functionality of your site from within the java in the application.
My experience is mostly on Android so I cannot suggest any strategies or examples for how you'd go about setting up your APIs. But I do know if you attempt to build something that sophisticated natively on android with little experience you'll likely get frustrated early.

Categories

Resources