I have a WCF Service hosted by an ASP.net web application where user is authenticated using windows authentication. Now I am trying to write an Android application to consume this WCF Service.
Any idea how to get my application windows-authenticated to be able to start consuming the service?
You won't be able to use Windows Integrated authentication (it's proprietary), but you could use either Basic auth (transport-layer encryption/SSL highly recommended) or OAuth combined with OWIN.
Out of the box, there is no support. But you could look into JCIFS (http://jcifs.samba.org/); a library that implements the CIFS/SMB networking protocol. That library coupled together with the documentation here on Apache's HTTP client (https://hc.apache.org/httpcomponents-client-ga/ntlm.html) should help you integrate Windows Authentication into your Android app.
Related
I'm writing an Android app that calls microservices written with Spring Boot. We're working to integrate Eureka for service discovery and move to a cloud native architecture.
I've read a lot of documentation about how to use Eureka in Spring client calls. However we're writing a native Android app without Spring.
What are my options to use service discovery? Do I need to use an API gateway or is there another way?
I have a web application built on java and an android application. Both are deployed on different servers. How can i send request from android application to web application? Also, how can i send corresponding response from the web application to android application?
use REST api's (in JSON format).
This can be done with the help of web API's . You have to create webApi's on your server and, You can use AsyncTask in your android application to communicate with those web Api's.
I have developed simple Ruby on Rails based API. I want to use resources from my API with my Android application. My Rails backend uses devise and doorkeeper for OAuth 2 based authentication. How can I use authentication process from my Android app. Do I need to use WebView or ?
You should definitely use token based authentication. You should follow the guide from Doorkeeper's documentation, it's well documented there.
https://github.com/doorkeeper-gem/doorkeeper/wiki/Interacting-as-an-OAuth-client-with-Doorkeeper
Also, you should check how to implement this on android.
http://docs.huihoo.com/android/4.2/training/id-auth/authenticate.html
Hope this helps.
I have a GWT App deployed on Google App Engine that makes use of RPC Calls to function.It uses Bigquery Cloud as a backend for database operations.How can i create an android app from existing google app or do i have to code again to build a native android app for this application.
You can use a combination of mgwt and GWT-Phonegap to create apps for Android and iOS.
if RPC is your problem, you can use GWT-P REST to change your RPC in REST-FULL service. You need to refactoring your GWT client code and Server code. I had ever use in project GWT-P rest with an SPRING-REST on server side, that's work well. This can solve the problem's of RPC and serialization policy from GWT.
If you want to use the client code from gwt and use this in android Application, your only choice is to use phonegap and MGWT to create responsive design, but you must separate you server code and client code in three differents module with maven (client - server - DTO).
In first if i was at your place, i will transform my RPC service in REST-FULL service.
After if your application is only to android and not too complexe, i advise to create an Native App android. MGWT + PHONEGAP + GWTP is more to create mobile cross-platform application.
I would like to provide syncing to cloud feature to an Android app.
I had read the tutorial at http://developer.android.com/training/cloudsync/index.html & http://android-developers.blogspot.com/2013/06/adding-backend-to-your-app-in-android.html
The examples being shown is using Google App Engine as backend storage.
I was wondering, is it possible not to tie to Google App Engine platform? For instance, using Amazon EC2?
Yes it is possible but you have to do more work on hosting a web service in EC2. Then your Android app will connect to it like this Android example. To write data instead of reading, use HTTP POST or PUT instead of GET. You would also have to implement your own user authentication.
Sure you can. Here's the Amazon AWS SDK for Android:
http://aws.amazon.com/sdkforandroid/
Yes, you will lose a little of the ease and integration of GAE, but you will gain something in flexibility. The GAE features (e.g. user authentication) tie you into Google's Android, making it harder to support Amazon or BB Android. And GAE limits you to their transactional HTTP model of communication.