Top Banner
03/14/2022 1 Building Apps Using appMobi
58
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Microsoft hackathon presentation 2013.02.15

04/18/2023 1

Building Apps Using appMobi

Page 2: Microsoft hackathon presentation 2013.02.15

Who am I?

Andrew SmithappMobi Developer Evangelist

Web Development@profMobi

Page 3: Microsoft hackathon presentation 2013.02.15

o What is appMobi all about?o What makes an appMobi app tick?o How do I make an app?o How do I make a Windows app?o Where do I get started?

Agenda

Page 4: Microsoft hackathon presentation 2013.02.15

Hackathon Questions

[email protected]

Page 5: Microsoft hackathon presentation 2013.02.15

What is appMobi all about?

Page 6: Microsoft hackathon presentation 2013.02.15

04/18/2023 6

Mission:To unify the technologies used in delivering web and mobile

apps, simplifying the process of development and resulting in a new class

of creative and compelling native mobile apps and interactive ads.

Strategy:Offer a cloud-based, white-label platform that opens up the

world of cross-device native mobile app creation to web developers, using familiar languages and tools:

HTML5 and JavaScript

Page 7: Microsoft hackathon presentation 2013.02.15

What does appMobi do?

The appMobi mission is to help developers create awesome mobile apps using HTML5

Page 8: Microsoft hackathon presentation 2013.02.15

Make Native Apps Using HTML5

Build your appswith these

Distribute your apps here

Page 9: Microsoft hackathon presentation 2013.02.15

One HTML5 Codebase for 1.5B+

Deviceshttp://www.appmobi.com/boomtown

Page 10: Microsoft hackathon presentation 2013.02.15

Free XDK Development Tool

Page 11: Microsoft hackathon presentation 2013.02.15

Cloud Based Build System –

appHub

Page 12: Microsoft hackathon presentation 2013.02.15

jqMobi

Page 13: Microsoft hackathon presentation 2013.02.15

• Game Engine Interfaces• directCanvas• directBox2d physics• Android Multi-Touch• Multi-Sound

HTML5 Game Development

Page 14: Microsoft hackathon presentation 2013.02.15

The appMobi Cloud Services provide enhancements for mobile HTML5 applications• Frictionless Payments• Analytics• Game Development

Tools• Over the air updates• Push Messaging

Cloud Services

Page 15: Microsoft hackathon presentation 2013.02.15

• Over 130K Developers Using our development tools

• 60K XDK Accounts Created

• Over 6000 Apps Delivered to App stores

Facts

Page 16: Microsoft hackathon presentation 2013.02.15

100’s of Publishers Using HTML for Native Apps

Page 17: Microsoft hackathon presentation 2013.02.15

What makes an appMobi

application tick?

Page 18: Microsoft hackathon presentation 2013.02.15

• All native appMobi applications are built using a full-screen web view control as its UI

• This application configuration is commonly called a “hybrid” application

The Anatomy of an appMobi

Application

Page 19: Microsoft hackathon presentation 2013.02.15

• The HTML, JavaScript, data, and images that make up a tiny mobile website are collectively known as a “bundle”

The Anatomy of an appMobi

Application

Page 20: Microsoft hackathon presentation 2013.02.15

• Features of the device itself are accessed through integrated JavaScript libraries served by the application itself

• Find the documentation for these commands at http://appmobi.com/documentation/jsAPI

The Anatomy of an appMobi

Application

Page 21: Microsoft hackathon presentation 2013.02.15

• The “bundle” is tested by loading it into either the XDK or a test application over the Internet

• Once the application is ready for production, it would be built into its own mobile application for distribution through the appropriate application stores

The Anatomy of an appMobi

Application

Page 22: Microsoft hackathon presentation 2013.02.15

How do I make an app?

Page 23: Microsoft hackathon presentation 2013.02.15

Write your code

Page 24: Microsoft hackathon presentation 2013.02.15

Test your code in the XDK

Page 25: Microsoft hackathon presentation 2013.02.15

Preview your app on device

Page 26: Microsoft hackathon presentation 2013.02.15

• Go to the App Store or Android Market and install the appLab application

• Find it in the app store by doing a search for “appLab”

Install the appLab application

Page 27: Microsoft hackathon presentation 2013.02.15

• Open the application link in your mobile web browser to get the launch page

• Touch Launch to see your application run just as it will when you build a binary

Open the link on the device’s web

browser

Page 28: Microsoft hackathon presentation 2013.02.15

Build your appLog into appHub

Build your app

Page 29: Microsoft hackathon presentation 2013.02.15

What steps are necessary to

build for Windows 8 and

Windows Phone 8?

Page 30: Microsoft hackathon presentation 2013.02.15

The build process for Windows 8 and Windows Phone 8 are currently under construction

Here’s how you can build them yourself right now

Windows Build

Page 31: Microsoft hackathon presentation 2013.02.15

I’ll make these demo apps available to

you following this

presentation

Demonstration

Page 32: Microsoft hackathon presentation 2013.02.15

First we’ll build an appMobi app for Windows 8 Store

Windows 8

Page 33: Microsoft hackathon presentation 2013.02.15

• Create a new Windows Store project

Create a new Visual Studio 2012

Project

Page 34: Microsoft hackathon presentation 2013.02.15

• Go to NuGet and grab the an appropriate project template

Get a template from NuGet

Page 35: Microsoft hackathon presentation 2013.02.15

• Load the template through the Package Manager Window

Load the template

Page 36: Microsoft hackathon presentation 2013.02.15

• For Windows 8 Store applications, make sure to edit the rootFrame.navigate command to use the appMobi browser object

Edit app.xaml.cs

Page 37: Microsoft hackathon presentation 2013.02.15

• Get the application bundleo Through the XDKo Downloading it from appHub

Wrangle your application bundle

Page 38: Microsoft hackathon presentation 2013.02.15

• Copy the application bundle into the HTML directory of the project, making sure to leave the _appMobi directory intact

• Edit index.html and change the reference to appmobi.js to the _appMobi directory

Add the application bundle

Page 39: Microsoft hackathon presentation 2013.02.15

• Build the application and then submit to the Windows 8 App Store

Build and test

Page 40: Microsoft hackathon presentation 2013.02.15

Now to build for Windows Phone 8

Windows Phone 8

Page 41: Microsoft hackathon presentation 2013.02.15

• Create a new Windows Phone 8 project

Create a new Visual Studio 2012

Project

Page 42: Microsoft hackathon presentation 2013.02.15

• Go to NuGet and grab the an appropriate project template

Get a template from NuGet

Page 43: Microsoft hackathon presentation 2013.02.15

• Load the template through the Package Manager Window

Load the template

Page 44: Microsoft hackathon presentation 2013.02.15

• For Windows Phone 8 applications, edit the WMAppManifest.xml file to point to AppMobiPage.xaml instead of MainPage.xaml

Edit the WMAppManifest.xml file

Page 45: Microsoft hackathon presentation 2013.02.15

• Get the application bundleo Through the XDKo Downloading it from appHub

Download the application bundle

Page 46: Microsoft hackathon presentation 2013.02.15

• Copy the application bundle into the HTML directory of the project, making sure to leave the _appMobi directory intact

• Edit index.html and change the reference to appmobi.js to the _appMobi directory

Add the application bundle

Page 47: Microsoft hackathon presentation 2013.02.15

• For Windows Phone 8 applications, edit the AppMobiWebSource.xml file to include a reference to all assets that are necessary from the bundle

Reference your bundle’s files

Page 48: Microsoft hackathon presentation 2013.02.15

• Build the application and then submit to the appropriate app store

Build and test

Page 49: Microsoft hackathon presentation 2013.02.15

Where do I get started?

Page 50: Microsoft hackathon presentation 2013.02.15

Get the XDK

Page 51: Microsoft hackathon presentation 2013.02.15

Watch Videos

Page 52: Microsoft hackathon presentation 2013.02.15

Read Articles

Page 53: Microsoft hackathon presentation 2013.02.15

Grab Samples

Page 54: Microsoft hackathon presentation 2013.02.15

For video demonstrations of this process, find these videos on YouTube.

• How to use Visual Studio and appMobi to port your hybrid HTML5 app to Windows 8

• How To Create Windows Phone 8 apps• How to do on-device testing with Windows Phone

8

• http://www.youtube.com/watch?v=x8eMev43Q3g• http://www.youtube.com/watch?v=L_tz3juWzTk• http://www.youtube.com/watch?v=0bgqeiD5jpY

More Information

Page 55: Microsoft hackathon presentation 2013.02.15

I’ll put a link to this presentation and demo apps

on my Twitter feed shortly

Demo Apps

@profMobi

Page 56: Microsoft hackathon presentation 2013.02.15

Hackathon Questions

[email protected]

Page 57: Microsoft hackathon presentation 2013.02.15

Find more information at:

http://www.appmobi.com/documenta

tion

Find out where here I’ll be next:

@profMobi

Page 58: Microsoft hackathon presentation 2013.02.15

04/18/2023 58