Web Wishes, Intents, Extensions, .. Friedger Müffke, droidcon London 2014

Post on 24-May-2015

389 views 1 download

Tags:

description

Overview of app-to-app application in Android and other platforms.

Transcript of Web Wishes, Intents, Extensions, .. Friedger Müffke, droidcon London 2014

Web Wishes, Intents and other app-to-app communication

Friedger Müffke

Good Examples - AndroidShare

Book a table

Barcode scanner

Bad Examples - AndroidGoogle Maps at first start loses information (VIEW)

OfficeSuite does not allow to confirm picked file (PICK_FILE)

Facebook launch new task on “install now” (VIEW)

Banking app to insert invoice data

What is new in Android Intents

Document provider intents

FitnessIntents.ACTION_TRACK, AlarmClock.ACTION_SET_TIMER

No more implicit service intents

Document ProviderCREATE_DOCUMENT

EDIT_DOCUMENT

returns openable content:// url

(similar to PICK_FILE)

App-to-App Communication

iOS 8 - Extensions

Windows Phones - Charms/Contracts

Rhomobile - Intents API

FireFox OS - WebActivities

Web - WebWishes (was WebIntents)

A2A - iOS

Action (UI, non-UI)

Document Picker, File Provider

Photo Editing

Share

A2A - Windows PhoneCharms: Search, Share, Start, Devices, Settings

Contracts/Extension:

Account picture provider

(extension)

AutoPlay (extension)

Background tasks (extension)

Update task (extension)

Cached file updater contract

Camera settings (extension)

Contact picker (extension)

File activation (extension)

File Open Picker contract

File Save Picker contract

Play To contract

Print task settings (extension)

URI activation (extension)

Search contract

Settings contract

Share contract

SSL/certificates (extension)

A2A - Rhomobile

Rho.Intent

Broadcast intents across platforms

send and start/stop listen

A2A - FireFox OS

Register activity in manifest

Set message handler “activity” with

postResult, postError

MozActivity (Intent object) with

onSuccess, onError

A2A - FireFox Android

From Web, open Android app via fixed mapping for

dial, open, pick, send, view

WebIntents Agent (Google Summer of Code 2012)

A2A WebWebIntents are dead, …

Issue with User experience

… long live WebWishes

Registration in Manifest

CurrentWishDuplex Communciation

Embedded Wish Services

A2A - Android app on Chrome

App Store API

Query for apps that implement an intent

Google Play

AppBrain

OpenIntents

Data as in F-Droid or One Platform’s APPDF

Friedger Müffke

fmdroid

+FriedgerMüffke

friedger