SlideShare a Scribd company logo
Andrea Tortorella a.tortorella@baasbox.com
+39 06 62 27 54 18
eliantor
Apps	are	complex
Great	app	design
Apps	are	connected
No	one	cares
About
Your	
Backend!
…	YET
WITHOUT	YOUR	APP	
IS	JUST	A	TOY
Put	some
BaasBox
In	your	engine
DEMO	TIME
BaasBox - Your mobile backend made easy
Android	SDK
• Simplify	BaasBox integration
• Integrate	with	Android	apis
• Favor	native	best	practices
A	SHORT	GUIDE	TO	THE	API
Login
public void login(String username,String password) {
BaasUser user = BaasUser.withUserName(username)
.setPassword(password);
user.login(new BaasHandler<BaasUser>() {
@Override
public void handle(BaasResult<BaasUser> baasResult) {
if (baasResult.isSuccess()) {
//user successfully logged in
}
}
});
}
Get	some	data
public void loadDocuments (String collection) {
BaasQuery.Criteria filter = BaasQuery.builder()
.where("where condition")
.pagination(0, 3)
.orderBy("field desc")
.criteria();
BaasDocument.fetchAll(collection, filter,
new BaasHandler<List<BaasDocument>>() {
@Override
public void handle(BaasResult<List<BaasDocument>>
baasResult) {
//work with the data
}
});
}
Working	with	documents
BaasDocument doc = BaasDocument.create("collection");
doc.put("key","value");
doc.put("key2", JsonArray.of("val1", 2, true));
BaasACL acl = BaasACL.builder()
.users(Grant.READ, "username1", "username2")
.roles(Grant.UPDATE, Role.REGISTERED)
.build();
doc.save(acl,...);
Upload	files
BaasFile file = BaasFile.create();
// BaasFile.create(new JsonObject().put("key","metadata"));
byte[] inMemory = ...;
file.upload(inMemory,...);
InputStream stream = ...;
file.upload(stream,...);
File fileOnDisk = ...;
file.upload(fileOnDisk,...);
Download	files
BaasFile.fetchStream("id", new BaasHandler<BaasFile>() {
@Override
public void handle(BaasResult<BaasFile> baasResult) {
if (baasResult.isSuccess()){
BaasFile value = baasResult.value();
byte[] fileContent = value.getData();
JsonObject serverMeta = value.getMetadata();
JsonObject userData =value.getAttachedData();
}
}
});
Simple	image	handling
BaasBox.builder(context)
.addPlugin(GlidePlugin.PLUGIN)
.init();
Glide.with(context)
.load(file)
.into(view);
*	Effortless	integration	with	common	android	image	loaders
Links	support
BaasLink.create("relationship","id","target-id",...);
BaasObject source = BaasLink.withId("id").in();
BaasObject target = BaasLink.withId("id").out();
BaasLink.fetchAll(BaasQuery.Criteria.ANY,0,...);
Collaboration/Social
BaasUser.withUserName("wannabe friend").follow(...);
BaasUser.withUserName("my worst enemy").unfollow(...);
BaasUser.current().followers(
BaasQuery.builder()
.where("....")
.criteria(),...);
BaasUser.withUserName("a user")
.following(...);
Role.friendsOf("my friends role");
Server	push
BaasCloudMessagingService ms = BaasBox.messagingService();
ms.newMessage()
.timeToLive(…)
.collapseKey(…)
.profiles(
BaasCloudMessagingService.DEFAULT_PROFILE,
BaasCloudMessagingService.PROFILE2)
.extra(
JsonObject.of("key","value",
"key2",true))
.send(...);
Low	level	access
// direct yet simplified restful access
RequestToken token = BaasBox.rest()
.async(httpMethod,
"endpoint”,…);
BaasResult<JsonObject> res =
BaasBox.rest().sync(httpMethod, "endpoint”,...);
// concurrency and lifecycle control
// suspend remote calls
token.suspend();
// resume calls
token.resume(new BaasHandler<JSONObject>() {
@Override
public void handle(BaasResult<JSONObject> baasResult) {
//...
}
});
G-Rate
http://www.androidev.it/commit/
Thank you

More Related Content

PDF
Designing Secure APIs in the Cloud
Postman
 
PDF
Making App Developers More Productive
Postman
 
PPTX
Sharepoint Saturday India Online best practice for developing share point sol...
Shakir Majeed Khan
 
PDF
Node.js and Parse
Nicholas McClay
 
PDF
Building Android apps with Parse
DroidConTLV
 
PDF
Making connected apps with BaaS (Droidcon Bangalore 2014)
Varun Torka
 
PDF
第一次用Parse就深入淺出
Ymow Wu
 
PDF
Parse cloud code
維佋 唐
 
Designing Secure APIs in the Cloud
Postman
 
Making App Developers More Productive
Postman
 
Sharepoint Saturday India Online best practice for developing share point sol...
Shakir Majeed Khan
 
Node.js and Parse
Nicholas McClay
 
Building Android apps with Parse
DroidConTLV
 
Making connected apps with BaaS (Droidcon Bangalore 2014)
Varun Torka
 
第一次用Parse就深入淺出
Ymow Wu
 
Parse cloud code
維佋 唐
 

What's hot (20)

PDF
Real world Windows Azure
Solidsoft Reply
 
PPTX
Icinga Camp Bangalore - Icinga2 API use cases and BlueJeans Inc.
Icinga
 
PPTX
Monitoring as code
Icinga
 
PPTX
Monitoring as Code - Ignite
Icinga
 
PDF
Parse: A Mobile Backend as a Service (MBaaS)
Ville Seppänen
 
PPTX
Intelligent Cloud Conference 2018 - Next Generation of Data Integration with ...
Tom Kerkhove
 
PPTX
Intelligent Cloud Conference 2018 - Building secure cloud applications with A...
Tom Kerkhove
 
PPTX
Intranet Development in Office 365
Eric Shupps
 
PPTX
Intro to Firebase Realtime Database and Authentication
kristinferrier
 
PDF
Icinga Camp Belgrade - Icinga 2 Apify Them All
Icinga
 
PPTX
Intro to Lucidworks Fusion - Esther Quansah & Kord Campbell, Lucidworks
Lucidworks
 
PPTX
A serverless IoT story from design to production and monitoring
CodeValue
 
PPTX
Programming Azure Active Directory (DevLink 2014)
Michael Collier
 
PDF
Icinga 2 - Apify them all at Icinga Camp Amsterdam 2016
Icinga
 
PPTX
Angular 4 with firebase
Anne Bougie
 
PPTX
Building a Real-Time IoT monitoring application with Azure
Davide Mauri
 
PPTX
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
MSDEVMTL
 
PDF
Icinga Camp San Diego 2016 - Enter the Metrics
Icinga
 
PPSX
Azure Mobile Services .NET Backend
Shiju Varghese
 
PPSX
Azure DocumentDB
Shiju Varghese
 
Real world Windows Azure
Solidsoft Reply
 
Icinga Camp Bangalore - Icinga2 API use cases and BlueJeans Inc.
Icinga
 
Monitoring as code
Icinga
 
Monitoring as Code - Ignite
Icinga
 
Parse: A Mobile Backend as a Service (MBaaS)
Ville Seppänen
 
Intelligent Cloud Conference 2018 - Next Generation of Data Integration with ...
Tom Kerkhove
 
Intelligent Cloud Conference 2018 - Building secure cloud applications with A...
Tom Kerkhove
 
Intranet Development in Office 365
Eric Shupps
 
Intro to Firebase Realtime Database and Authentication
kristinferrier
 
Icinga Camp Belgrade - Icinga 2 Apify Them All
Icinga
 
Intro to Lucidworks Fusion - Esther Quansah & Kord Campbell, Lucidworks
Lucidworks
 
A serverless IoT story from design to production and monitoring
CodeValue
 
Programming Azure Active Directory (DevLink 2014)
Michael Collier
 
Icinga 2 - Apify them all at Icinga Camp Amsterdam 2016
Icinga
 
Angular 4 with firebase
Anne Bougie
 
Building a Real-Time IoT monitoring application with Azure
Davide Mauri
 
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
MSDEVMTL
 
Icinga Camp San Diego 2016 - Enter the Metrics
Icinga
 
Azure Mobile Services .NET Backend
Shiju Varghese
 
Azure DocumentDB
Shiju Varghese
 
Ad

Similar to BaasBox - Your mobile backend made easy (20)

PDF
VBA API for scriptDB primer
Bruce McPherson
 
PPTX
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
Chris O'Brien
 
PDF
Managing Application Lifecycle using Jira and Bitbucket Cloud and AWS Tooling
Atlassian
 
PDF
AWS Serverless Workshop
Mikael Puittinen
 
PPTX
MSFT Dumaguete 061616 - Building High Performance Apps
Marc Obaldo
 
PDF
Spring Cloud Function & Project riff #jsug
Toshiaki Maki
 
PDF
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
Corley S.r.l.
 
PPTX
Google apps script database abstraction exposed version
Bruce McPherson
 
PPTX
Serverless archtiectures
Iegor Fadieiev
 
PDF
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
AWS Chicago
 
PDF
Terraform introduction
Jason Vance
 
PPTX
Designer's Favorite New Features in SQLServer
Karen Lopez
 
PPTX
Azure serverless security
Pratik Khasnabis
 
PPTX
Creating real life serverless solutions with Azure Functions - dotNet Amsterd...
Jan de Vries
 
PDF
A Blueprint for Scala Microservices
Federico Feroldi
 
PDF
Programming IoT Gateways in JavaScript with macchina.io
Günter Obiltschnig
 
PPTX
A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...
Karen Lopez
 
PPTX
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
walk2talk srl
 
PDF
ITCamp 2018 - Magnus Mårtensson - Azure Resource Manager For The Win
ITCamp
 
PDF
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
mfrancis
 
VBA API for scriptDB primer
Bruce McPherson
 
Chris O'Brien - Best bits of Azure for Office 365/SharePoint developers
Chris O'Brien
 
Managing Application Lifecycle using Jira and Bitbucket Cloud and AWS Tooling
Atlassian
 
AWS Serverless Workshop
Mikael Puittinen
 
MSFT Dumaguete 061616 - Building High Performance Apps
Marc Obaldo
 
Spring Cloud Function & Project riff #jsug
Toshiaki Maki
 
JavaScript & Cloud: the AWS JS SDK and how to work with cloud resources
Corley S.r.l.
 
Google apps script database abstraction exposed version
Bruce McPherson
 
Serverless archtiectures
Iegor Fadieiev
 
Serverless Framework Workshop - Tyler Hendrickson, Chicago/burbs
AWS Chicago
 
Terraform introduction
Jason Vance
 
Designer's Favorite New Features in SQLServer
Karen Lopez
 
Azure serverless security
Pratik Khasnabis
 
Creating real life serverless solutions with Azure Functions - dotNet Amsterd...
Jan de Vries
 
A Blueprint for Scala Microservices
Federico Feroldi
 
Programming IoT Gateways in JavaScript with macchina.io
Günter Obiltschnig
 
A Designer's Favourite Security and Privacy Features in SQL Server and Azure ...
Karen Lopez
 
CCI2018 - Automatizzare la creazione di risorse con ARM template e PowerShell
walk2talk srl
 
ITCamp 2018 - Magnus Mårtensson - Azure Resource Manager For The Win
ITCamp
 
OSGi and Spring Data for simple (Web) Application Development - Christian Bar...
mfrancis
 
Ad

More from Commit University (20)

PDF
Accessibilità ed equità digitale: un impegno, non una scelta
Commit University
 
PDF
GitHub Copilot:vediamo chi comanda - Commit University.pdf
Commit University
 
PDF
Contract Driven Development - Branch 2024.pdf
Commit University
 
PPTX
Cybersecurity & AI: Illusioni e Speranze
Commit University
 
PDF
Migliorare la Developer Experience in un mondo Cloud Native
Commit University
 
PPTX
Scopri come sfruttare la potenza della Hybrid RAG
Commit University
 
PDF
Introduzione a AWS Forecast e SageMaker DeepAR: Prevedere la Domanda con il M...
Commit University
 
PDF
Oltre l'hype: vulnerabilità e limiti dell'intelligenza artificiale.pdf
Commit University
 
PPTX
Alla scoperta dei Vector Database e dei RAG
Commit University
 
PDF
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
 
PDF
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Commit University
 
PDF
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Commit University
 
PDF
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Commit University
 
PDF
Slide-10years.pdf
Commit University
 
PDF
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Commit University
 
PDF
Vue.js slots.pdf
Commit University
 
PPTX
Commit - Qwik il framework che ti stupirà.pptx
Commit University
 
PPTX
Sviluppare da zero una Angular Web App per la PA
Commit University
 
PDF
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Commit University
 
PDF
Prisma the ORM that node was waiting for
Commit University
 
Accessibilità ed equità digitale: un impegno, non una scelta
Commit University
 
GitHub Copilot:vediamo chi comanda - Commit University.pdf
Commit University
 
Contract Driven Development - Branch 2024.pdf
Commit University
 
Cybersecurity & AI: Illusioni e Speranze
Commit University
 
Migliorare la Developer Experience in un mondo Cloud Native
Commit University
 
Scopri come sfruttare la potenza della Hybrid RAG
Commit University
 
Introduzione a AWS Forecast e SageMaker DeepAR: Prevedere la Domanda con il M...
Commit University
 
Oltre l'hype: vulnerabilità e limiti dell'intelligenza artificiale.pdf
Commit University
 
Alla scoperta dei Vector Database e dei RAG
Commit University
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
 
Crea il tuo assistente AI con lo Stregatto (open source python framework)
Commit University
 
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Commit University
 
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Commit University
 
Slide-10years.pdf
Commit University
 
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Commit University
 
Vue.js slots.pdf
Commit University
 
Commit - Qwik il framework che ti stupirà.pptx
Commit University
 
Sviluppare da zero una Angular Web App per la PA
Commit University
 
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Commit University
 
Prisma the ORM that node was waiting for
Commit University
 

Recently uploaded (20)

PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Information Retrieval and Extraction - Module 7
premSankar19
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
Introduction to Data Science: data science process
ShivarkarSandip
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Software Testing Tools - names and explanation
shruti533256
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
Inventory management chapter in automation and robotics.
atisht0104
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 

BaasBox - Your mobile backend made easy