Software developers who develop mobile web sites often like to test if these web sites render correctly on various mobile devices. To do this, they may publish their web site and try to access it from a mobile device. This can become a time-consuming and tedious process as the web site may be re-published and re-loaded on the mobile device multiple times in the course of development. In addition, debugging these web sites using the development tool may also be very limited.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
Briefly, aspects of the subject matter described herein relate to mobile emulator integration. In aspects, an indication of a desired mobile device to emulate is received by a component of a development platform. In one approach, an appropriate emulator is installed, if needed, and executed to emulate the mobile device, a browser is launched within the emulator, and the browser is instructed to load a Web page. After a development session ends, the emulator may be uninstalled. In another approach a browser emulator is provided with an identifier of the mobile device. The browser emulator finds characteristics of the mobile device and emulates a browser appropriate for the mobile device.
As used herein, the term “includes” and its variants are to be read as open-ended terms that mean “includes, but is not limited to.” The term “or” is to be read as “and/or” unless the context clearly dictates otherwise. The term “based on” is to be read as “based at least in part on.” The terms “one embodiment” and “an embodiment” are to be read as “at least one embodiment.” The term “another embodiment” is to be read as “at least one other embodiment.”
As used herein, terms such as “a,” “an,” and “the” are inclusive of one or more of the indicated item or action. In particular, in the claims a reference to an item generally means at least one such item is present and a reference to an action means at least one instance of the action is performed.
Sometimes herein the terms “first”, “second”, “third” and so forth may be used. Without additional context, the use of these terms in the claims is not intended to imply an ordering but is rather used for identification purposes. For example, the phrase “first version” and “second version” does not necessarily mean that the first version is the very first version or was created before the second version or even that the first version is requested or operated on before the second versions. Rather, these phrases are used to identify different versions.
Headings are for convenience only; information on a given topic may be found outside the section whose heading indicates that topic.
Other definitions, explicit and implicit, may be included below.
Aspects of the subject matter described herein are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations that may be suitable for use with aspects of the subject matter described herein comprise personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microcontroller-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, personal digital assistants (PDAs), gaming devices, printers, appliances including set-top, media center, or other appliances, automobile-embedded or attached computing devices, other mobile devices, distributed computing environments that include any of the above systems or devices, and the like.
Aspects of the subject matter described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and so forth, which perform particular tasks or implement particular abstract data types. Aspects of the subject matter described herein may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
With reference to
The computer 110 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the computer 110 and includes both volatile and nonvolatile media, and removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media.
Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile discs (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer 110.
Communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.
The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation,
The computer 110 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media, discussed above and illustrated in
A user may enter commands and information into the computer 110 through input devices such as a keyboard 162 and pointing device 161, commonly referred to as a mouse, trackball, or touch pad. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, a touch-sensitive screen, a writing tablet, or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB).
A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such as speakers 197 and printer 196, which may be connected through an output peripheral interface 195.
The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110, although only a memory storage device 181 has been illustrated in
When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 may include a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160 or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
As mentioned previously, developing Web pages for mobile devices may be time-consuming and tedious. Wherever the term “mobile device” is used herein, in one embodiment, this term means a device that is designed to be held in one or two hands while interacting with the device. Such devices include cell phones, smartphones, and other mobile phones, PDAs, hand held gaming devices, and the like. In other embodiments, this term means a computing device that is designed to generally not be held in human hands while being used. Such devices include personal computers, lap top computers, notebook computers, automobile-embedded or attached computing devices, other mobile devices, computing appliances, printers, and the like.
As used herein, the term component is to be read to include hardware such as all or a portion of a device, a collection of one or more software modules or portions thereof, some combination of one or more software modules or portions thereof and one or more devices or portions thereof, and the like.
Turning to
The various components may be located relatively close to each other (e.g., on the same machine or on machines on the same network) or may be distributed across the world. The various components may communicate with each other via various networks including intra- and inter-office networks.
The development tool 205, emulator 206, and user interface 208 may comprise or reside on one or more computing devices. Such devices may include, for example, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microcontroller-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, cell phones, personal digital assistants (PDAs), gaming devices, printers, appliances including set-top, media center, or other appliances, automobile-embedded or attached computing devices, other mobile devices, distributed computing environments that include any of the above systems or devices, and the like. An exemplary device that may be configured to act as one of the above comprises the computer 110 of
The development tool 205 may include a process that is capable of communicating with one or more of the other entities of
In one embodiment, the development tool 205 may include a software development tool. The software development tool may implement an integrated development environment (IDE) that allows a software developer to enter and update code, debug code, create and update databases, associate the code with one or more databases, compile the code, create packages, do other actions, and the like.
In operation, the development tool 205 may interface with a user via the user interface 208. The user interface 208 may include a keyboard, pointing device, monitor, and other input and output devices mentioned in conjunction with
In response, the development tool 205 may determine whether an emulator is installed that can emulate the indicated mobile device. To do this, the development tool 205 may consult the store 210. The store 210 may include an indication of installed emulator(s), installable emulators, data that indicates where code that implements the emulators may be found, data regarding mobile devices including characteristics of devices associated with emulators, and the like. The code that implements an emulator may be stored locally or remotely without departing from the spirit or scope of aspects of the subject matter described herein.
The store 210 is any storage media capable of storing data. The store may include volatile memory (e.g., a cache) and non-volatile memory (e.g., a persistent storage). The term data is to be read broadly to include anything that may be represented by one or more computer storage elements. Logically, data may be represented as a series of 1's and 0's in volatile or non-volatile memory. In computers that have a non-binary storage medium, data may be represented according to the capabilities of the storage medium. Data may be organized into different types of data structures including simple data types such as numbers, letters, and the like, hierarchical, linked, or other related data types, data structures that include multiple other data structures or simple data types, and the like. Some examples of data include information, program code, program state, program data, other data, and the like.
If after consulting the store 210, the development tool 205 determines that an indicated (e.g., by the software developer) emulator is not installed, the development tool 205 may install and execute the emulator (e.g., the emulator 206). In conjunction with executing an emulator, the development tool 205 may instruct the emulator to launch a browser and to load within the emulator a Web page indicated by the development tool 205. The Web page may be a page the software developer wants to debug or change, a new page the software developer wants to develop, or the like.
In being operable to instruct an emulator to launch a browser, the development tool 205 retrieve an identifier of the mobile device from the store and to pass the identifier to the emulator. In response, the emulator may receive the identifier, retrieve data that includes a size (e.g., dimensions) of a display of the mobile device, a browser to use for the mobile device, and a rendering engine to use for rendering within the browser.
An emulator may include software, hardware, or a combination of hardware and software. An emulator may be used to mimic hardware and/or software of a device. For example, a printer may emulate a popular printer so that the printer is compatible with software that is used with the popular printer. As another example, a computer may emulate another device (e.g., such as a mobile device) to develop, test, and/or maintain compatibility with software designed to run on the other device.
There is no intention by using the term emulator to limit emulators to devices that are specifically built to emulate other devices and have no other purpose. Indeed, a general purpose computer may have software and/or hardware that may be used to emulate another device.
The browser 207 is an application that executes on the emulator 206. The browser 207 may be used to browse Web sites including a Web site created by the development tool 205. The user interface 208 may display a control that displays the output of the emulator 206. This output may include, for example, the rendering of the browser 207. The control may also include device specific input to be provided to the emulator 206. For example, the control may include a rotate button to allow the display of the emulator to be rotated 90 degrees as is found in some mobile devices. As another example, the control may also include other buttons that correspond to buttons that are specific to a particular mobile device emulated by the emulator 206.
The development tool 205 may be operable to install and execute an emulator on demand. For example, the development tool 205 may be operable to perform actions, including:
1. Determining whether an indicated emulator is already installed in the development platform;
2. If the emulator is not already installed, installing the emulator on the development platform; and
3. After installing or determining that the indicate emulator is already installed, executing the emulator.
The development tool 205 may also be used to assist in debugging a Web page rendered in the browser 207. For example, the development tool 205 may cause a process to attach to the emulator 206 and may then communicate with that process to perform debugging actions such as running code to a particular point, setting and removing breakpoints, stepping through code, and the like. As will be appreciated by those skilled in the art, this integration may greatly speed software development for Web sites that are to be viewed in the browser 207.
The development tool 205 may also be operable to uninstall an emulator in response to ending a development session for a mobile device associated with the emulator.
In particular, the environment 300 of
It will be readily understood that mobile devices often have different screen sizes and ways of interacting with a browser. Furthermore, the mobile devices may have different rendering engines and/or skins applied. For example, a mobile device produced by Apple may be configured to use SAFARI® while a mobile device produced by Microsoft may be configured to use INTERNET EXPLORER®. These browsers look different (e.g., have different skins) and may use different rendering engines.
Instead of using a device emulator, the development tool 205 may use the browser emulator 305 and supply an identifier of a device. The browser emulator 305 may use the identifier to obtain characteristics (e.g., screen dimensions, color characteristics, rotation capability, and the like) of the device as well as characteristics (e.g., browser name, skin, rendering engine, and the like) of a browser commonly or exclusively used on the device. Using this, the browser emulator 305 may emulate the browser of the device including the browser's rendering engine without emulating the actual device itself. In some implementations, the browser emulator 305 may emulate a browser of a device but may emulate a different rendering engine than is normally used by the browser.
The development tool 205 may also be used for debugging purposes with respect to a browser emulated by the browser emulator 305. For example, the development tool 205 may cause a process to attach to the browser emulator 305 and may then communicate with that process to perform debugging actions such as running code to a particular point, setting and removing breakpoints, stepping through code, and the like. As will be appreciated by those skilled in the art, this integration may greatly speed software development for Web sites that are to be viewed in the browser emulated by the browser emulator 305.
Turning to
At block 415, a determination is made as to whether an emulator for the mobile device is already installed on the development platform. If an emulator for the mobile device is not installed, the actions continue at block 420; otherwise, the actions continue at block 425. For example, referring to
At block 420, the emulator is installed on the development platform. For example, referring to
At block 425, the emulator is executed. This may involve spawning a process to execute code that implements the emulator. For example, referring to
At block 430, the emulator is instructed to launch a browser and to load within the browser a Web page developed via the development platform. For example, referring to
At block 435, a process may attach to the emulator for use in debugging the Web page. The process is operable to communicate with the development platform to set and remove breakpoints, to allow code of the Web page to execute to a breakpoint, and to pause the emulator at the breakpoint until instructed to resume execution by the development platform.
At block 440, the debugger is executed on the development platform. For example, the development tool 205 may spawn a process to load a debugger that may then communicate debug messages with the process attached to the emulator 206. Debug messages may include breakpoints, instructions to run or pause, variable and other values, other debug data, and the like. This may allow a software developer, for example, to set breakpoints and debug a Web page for a mobile device using an IDE of the development tool 205.
At block 445, the emulator is uninstalled if desired. For example, referring to
At block 450, other actions, if any, may be performed.
Turning to
At block 515, an identifier of the mobile device is obtained. For example, referring to
At block 520, the identifier is provided to a browser emulator. For example, referring to
At block 525, the screen size of the mobile device may be obtained. For example, referring to
At block 530, a browser associated with the mobile device is identified. For example, referring to
At block 535, the render engine associated with the browser is identified. For example, referring to
At block 540, the browser is emulated using the rendering engine and the screen size to load a Web page indicated by the development platform. For example, referring to
At block 545, other actions, if any, may be performed. For example, referring to
As can be seen from the foregoing detailed description, aspects have been described related to mobile emulator integration. While aspects of the subject matter described herein are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit aspects of the claimed subject matter to the specific forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of various aspects of the subject matter described herein.