MIAD, our own SDK, 2005–2006
MIAD: server-driven UI on 2006 phones, years before it had a name.
MIAD was our own mobile app SDK. App screens were written in an XML markup, served from any web server or bundled in the app, and drawn as native screens by a small Java ME client. Change the page on the server and every phone shows the new screen, with no new download. It powered Clixo and B-Live Radio for Bacardi.
- Owner
- MIAD (Mobile Internet Application Development), our own SDK
- Industry
- Media & brands
- Services
- Mobile apps, SDK and platform building, server-driven UI
- Platforms
- Java ME (CLDC 1.1, MIDP 2.0, MMAPI) on the phone; Java on the server; any standard web server
- Our role
- We designed and built the SDK, its markup language, the client, the server and the apps built on it.
The challenge
In 2006 a phone app was a jar file of well under 100 KB, and once it shipped it was frozen. Every screen was drawn by hand in code, so changing a word, a colour or a menu meant a new build, a new round of handset testing and a new download for every user, over networks that charged by the kilobyte.
Every phone was also different. Screens ran from 128×128 to 240×320, and soft keys, OK and back keys had different codes on every brand.
Phones already had a way to show server content: WAP, whose WML markup was rendered by the phone's browser as small text and underlined links. Nothing felt like an app. Brands wanted branded mobile apps they could update the way they updated websites, and mobile Java developers were scarce. Web designers weren't.
Our approach
MIAD split the job in two. The server decides what a screen holds; the client decides how a native screen looks and behaves. That one boundary shaped everything else:
- Separate content, style and behaviour. Pages, themes and the client changed independently, which is why one client could serve many brands.
- Design for the people who'll use the tool. The markup was built so web designers could make branded phone apps the way they already built websites, and we documented it for them.
- Local first, network second. A page in the app opens instantly with no data charge; the network is used only when it earns its place.
- Normalise devices at runtime. Push handset differences into one layer so pages never have to know which phone they're on.
What we built
MML, a markup language for app screens
MML, based on XML, described each page: text, text boxes, buttons, check boxes, radio buttons, images, rectangles, scroll bars, hidden fields and a live audio stream. Positions could be numbers, CENTER, LEFT or RIGHT, or left out, in which case widgets flowed down the page with the theme's spacing. Any standard web server could host it.
Markup to native widgets
The client parsed each page with a small XML parser and built a native widget for each element, every widget class knowing how to create itself from its node. Forms worked the way web designers expected: fields carried the form's name and GET or POST method, and a button submitted them. The parser tidied up after authors, selecting a radio button if a group had none, because a form should never start in an impossible state.
Themes, skins and bitmap fonts
Look and feel lived in a theme file, also MML: button images, highlight states, alert windows and spacing. Text used our own bitmap fonts in three sizes, so it looked the same on every handset instead of depending on each phone's system font. A missing image fell back to a default inside the app, so a bad URL never left a hole in the screen. Branded apps are image-heavy, so images went through a reference-counted cache: a page asking for an image already in memory got the same one, and it was released only when the last page let go.
Local first, with a watchdog
Every address went through one loader. Pages marked file:// came from the jar immediately; everything else joined a fetch queue on a background thread, guarded by a 30-second watchdog so a hung GPRS connection could never hang the app. People could browse bundled pages and fill in forms with no connection, then choose when to send.
One jar for every phone
MIAD asked the phone for each key's name and normalised it: "soft1", "softkey 1" and "left soft" all became the left soft key; "select", "fire" and "navi-center" all became OK. Raw key codes were the fallback. Per-resolution builds handled phones that misreported their screens. The first page came from a property in the jad, so the same client could be rebranded by editing a text file.
A server and the apps on it
MIADServer, a small Java socket server, sat beside ordinary web hosting for features that needed a live connection. Clixo, a mobile social and messaging app, was the first app built on MIAD, and a mobile news app followed. B-Live Radio for Bacardi, the world's first radio streaming application for mobile phones, was built on it too: the radio player was one more MIAD widget.
Architecture
A generic client and a server that describes what to show.
- Start pageNamed in the jad: in the jar or on the web
- Content loaderJar first, then a queued fetch with a watchdog
- MML parserXML to native widgets
- ThemeFonts, images, highlights and alerts
- FormsPosted to any web server or MIADServer
Change a page on the server and every phone shows it next time it loads.
Results
- 1jar and jad to cover the devices, with screens served from the web
- 10native widget types, from buttons to a live audio stream
- 2006B-Live Radio for Bacardi, the world's first radio streaming app for mobile phones
Under the hood
The idea big apps now call server-driven UI, on a 2006 feature phone.
- Java ME (J2ME)
- CLDC 1.1
- MIDP 2.0
- MMAPI
- XML markup (MML)
- nanoxml
- Native widgets & themes
- Bitmap fonts
- Reference-counted image cache
- Java socket server
Why it matters now
Today this is called server-driven UI, and large consumer apps use it to change screens without an app-store release. Field apps whose forms change weekly, and platforms that serve many clients from one code base, still need what MIAD did: screens defined on the server, rendered natively, working offline and styled per customer. We build those as web and SaaS platforms and mobile and field apps.
The idea also carries into AI. MIAD pages told a generic phone client what to show; today, MCP tool descriptions tell an AI assistant what a system can do and how to call it. In both, behaviour changes on the server without shipping a new client. That's the thinking behind our assistants and MCP work.
What we'd do now
- Version the schema from day one. A server-driven client lives for years in the field. Every page should say which schema version it speaks, and the client should degrade gracefully on anything it doesn't know.
- Keep the component set small and boring. Ten well-built widgets beat fifty half-built ones. Every new component is a promise every client version has to keep.
- Put logic on the server, not in the markup. The moment a layout language grows loops and conditions, it becomes a second programming language with none of the tools.
- Cache the last good screen. Offline should mean "show what worked last time", not a blank page.
Questions
What is server-driven UI?
An app design where the server describes each screen and a generic client renders it natively. Screens can change without a new app release, which is what MIAD did on 2006 phones.
How was MIAD different from WAP?
WAP pages were rendered by the phone's browser and looked like web pages. MIAD's client turned markup into full-screen, skinned, native widgets that looked and felt like an app.
Did MIAD apps work offline?
Yes. Pages and images could ship inside the app and open with no data charge, and forms were sent only when the person chose to.
What was built on MIAD?
Clixo, a mobile social and messaging app, a mobile news app, and B-Live Radio for Bacardi, the world's first radio streaming application for mobile phones.
Related
The services behind this work, and more stories like it.
Services
Case studies
Bacardi, 2006The world's first radio streaming app for mobile phones. B-Live Radio played live internet radio on 2006 handsets, in English and German.
Mobstar Games, 2004–2007Mobile games since 2004. Our own J2ME games tuned for around 150 handsets, ports for publishers and branded games for the BBC.
Essential Energy3,000+ paper forms and workflows removed. Field Portal put Essential Energy's crews on 3,500+ iPhones and iPads, and Apple told the story in iOS at Work.
Bring us the hard problem.
A 45-minute discovery call with the engineer who'll build it.