Developing with Moto X

android, mobile, Moto X, programming

Just recently upgraded from an Android 2.1 device (HTC Aria) to an Android 4.4 device (Moto X).

To enable the developer USB feature that allows installing and running (let alone debugging) programs, two things need to be done:

  • Install the Motorola USB drivers (https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth)
  • Enable the Developer feature on the phone:
    • Go to Settings
    • Scroll to the “About phone” option under the “SYSTEM” section and click the option 7 times (after clicking it 3-4 times you should see a message saying something like “you are X steps away from being a developer”)
    • After clicking it 7 times, you will “become a developer” and will then see a “{ } Developer options” entry under the “SYSTEM” section where you will be presented with a LOT more settings.

 

Mobile-enabling a Web page

android, mobile, programming

Stop that condensation

By default, my mobile Web browser attempts to make everything smaller so that a “normal” web page will fit in the phone’s screen, even when the page has a few items that would fit in the mobile browser’s native resolution.

One way I found (that this WordPress page is doing) to prevent that over-eager condensation of the page is adding a meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

See the viewport page from Apple.