I'm trying to build an Android app that consumes data from a Magento Server. I'm looking for a good sample (using oAuth authentication) or even a framework that would help me to make it faster. Any tip?
Thanks!
Me also Googled for the same nearly a week, At last I got one tutorial here
http://gmartinezgil.wordpress.com/2013/08/05/using-the-magento-rest-api-in-java-with-scribe/
I follow the method, But I can't produce the result.This may help you.
Check this also- android connect to magento
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.
Folks,
With the advent of Twitter 1.1 API, my single line query:
http://search.twitter.com/search.json?q=#DCComics&rpp=25&page=1
No longer works. I would like to use Application Only Authentication via oAuth, but I can't say I've found any tutorials or samples to use to hepl me pound it out. I'm a relative newcomer to JAVA and Android development. Can someone offer up a code snippet or point me in a direction where I could find additional assistance?
Many thanks.
I found a tutorial that walked me through both user and application authentication at
http://ttlnews.blogspot.com/2013/07/integrating-twitter-11-api-in-android.html
This one is based on Twitter4j library which uses OAuth
https://github.com/swavkulinski/twitter-oauth-demo
I have been checking around the web, and havent found a clear cut answer. What im trying to do is authenticate against windows azure active directory tenants in an android app. The authentication protocol isnt an issue, but i was thinking that saml 2.0 would be prefered.
*I have been able to do this in .net quite simply. so if the above is not possible, i was wondering if creating a web app using .net and the using this app in android to authenticate by detecting cookies.
*Note im quite new to authentication and android in general, so i would love any pointers u can give me. Thanks in advance.
I was looking for the same thing. I found this website from Mircorsoft which has steps to add in authentication to your Android app.
https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-users-android/
This link starts the intro to Mobile services for Android
https://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-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..
I have a huge demand for people who want an application to connect to Uniquez from their Android devices.
I want to build an application to connect to my PHP and MySQL ShoutBox to send and receive information. First we need the user to be-able to login to the website. I am sure once I know how to do this I could use these techniques to send and receive shouts.
I do have access to Google's App Inventor and I have also downloaded and taken a quick peek at Eclipse. It seems App Inventor is a lot easier to use than Eclipse.
It all seems a little daunting and very complicated/
I do have knowledge in PHP and some JavaScript that could help me progress my knowledge.
Please could someone demonstrate how this could be done?
I want to learn this is why I am asking for help and not asking some one to do this for me.
I do need examples and a lot of help as I am totally new to building applications for the Android platform.
I am sorry I don't have any source code to go off right now as this is something I want to start building.
If you can do this in App Inventor this would be amazing. If not I will learn the hard way!
All information will be great full and I really am enthusiastic about completing my task.
please find an example how to connect App Inventor with a MySQL database using a php script here http://ai.kittywolf.net/index.php/WebMysql (App Inventor Classic) and https://puravidaapps.com/mysql.php (App Inventor 2)
and here are more examples using App Inventor together with php scripts https://groups.google.com/forum/#!searchin/app-inventor-developers-library/php
and here some App Inventor examples using embedded HTML/JavaScript http://puravidaapps.com/snippets.php#javascript
for login to a webpage using App Inventor you also might want to look at this thread https://groups.google.com/d/msg/programming-with-app-inventor/FQSBZGcK1WE/CuUWZmEU5KkJ
Hope that helps
Please refer http://appinventorapi.com/app-inventor-php-application-framework/ for log-in framework and http://ai.kittywolf.net/index.php/PHP_TinyWebDB_with_MySQL for TinyWebDB to MySQL PHP Interface. I tried both, they worked well.