Sunteți pe pagina 1din 19

Ernesto Suarez

esuarezlo@unsa.edu.pe
 Many business applications were
developed decades ago, long before
mobile devices became ubiquitous.
 For example, ERP, CRM, BPM, database
applications, medical records, energy
management systems and flight
management systems, etc.
 None of them were originally
designed to interface with today’s
mobile devices.

https://microservices.io/patterns/monolithic.html
http://www.qababu.com/2019/02/api-testing-03-client-server.html
 Interacting with software applications was request-response interaction.
 In the mobile era, users perform tasks standing in line at any where.
 These tasks are geared towards shorter interactions.
 Mobile applications need to be able to respond in real or be able to push to updates a
user’s mobile.
 Authorization

AndroidManifest.xml
HttpsURLConnection client supports TLS, streaming uploads and
downloads, configurable timeouts, IPv6, and connection pooling.
 To avoid creating an unresponsive
UI, don't perform network operations
on the UI thread.
 Android 3.0 (API level 11) and
higher requires you to perform
network operations on a thread other
than the main UI thread.
1. Params, the type of the parameters sent to the task upon execution.
2. Progress, the type of the progress units published during the background
computation.
3. Result, the type of the result of the background computation.
 onPreExecute(), invoked on the UI thread before the task is executed.
 doInBackground(Params...), invoked immediately after onPreExecute() finishes
executing. This step is used to perform background computation that can take a
long time.
 onProgressUpdate(Progress...), invoked on the UI thread after a call to
publishProgress(Progress...). The timing of the execution is undefined.
 onPostExecute(Result), invoked on the UI thread after the background
computation finishes. The result of the background computation is passed to this
step as a parameter.
 Minimize the amount of sensitive or personal user data that you transmit over the
network.
 Send all network traffic from your app over SSL.
 Consider creating a network security configuration, which allows your app to trust
custom CAs or restrict the set of system CAs that it trusts for secure
communication.
 https://program.developer.samsung.com/2016/04/20/the-imperative-of-a-
microservice-approach-to-mobile-app-development/
 https://developer.android.com/training/basics/network-ops/connecting.html

S-ar putea să vă placă și