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?
Related
I need to develop an Android App which will sync the work-items from RTC Server and show as push notifications to the manager, who can approve, comment or cancel that work-item.
For this, i did explore RTC APIs on jazz.net and integrate its client to Eclipse, after this i also successful in making connection to the Server by using RTC Example provided, So please tell me how can i integrate it into Android App
whether i need to work on eclipse plugin development OR using Plain Java Client Libraries?
and whether i can use worklight for integration and get server rich features?
Worklight does not have anything to do with this.
It's just a framework to develop mobile applications.
You need to figure out if RTC provides API to do what you want.
If yes, you need to implement this API in the application.
The communication to the server is done by adapters, assuming that the RTC server has endpoints that allow connecting to.
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.
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.
We are planning to develop a client server application. The server component shall be developed as REST based WCF Services. The server component needs to send some notification to clients... The clients can be any of the following
1- WPF based windows apps
2-ASP.NET web application
3-Android or iOS apps
What is the best way of sending notifications
Thanks in advance
You could use SignalR
It was originally built for ASP.net:
http://signalr.net/
But now also Works for Andriod:
http://msopentech.com/blog/2014/03/06/android-java-developers-signalr-sdk/
There is also a possibility to use it With a WPF Client:
http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-net-client
Is it possible implement an Android application as a web service?
On the official site I've read:
Note: If you want to develop a server-side application, we recommend
that you implement your application as
a servlet running in a servlet engine
like Tomcat or full-blown JSEE
container like Geronimo. If you prefer
to implement a server-side application
based on our HttpService, we'll assume
that you know what you're doing and
that you don't need help in figuring
out which interceptors need to be
configured.
How can I implement this? Apache TOMCAT can run on Android?
Is it possible implement an Android
application as a web service?
You can create an Android service that will open up some server socket and will listen for HTTP requests. However, Android will eventually kill off that service, either automatically after it is unused or at user request. And, nobody will be able to access the service except on the same WiFi LAN.
IMHO, truly implementing a Web service on Android is pointless.
I think they're saying that you can write a server-side application for an Android user to access, not that you'd run Tomcat on the Android device itself.