Archive for category Mobile Web

Android Emulator Problems

I’ve been having loads of problems getting the Android Emulator that comes with the SDK to load anything. After successfully running it when i made the Hello World App I could never get it running again. Googled the problem and tried everything i read to no avail. However last night I got it running again after I’d had to do a reboot, not something that happens often with a Linux machine.

With the emulator running I managed to get through some of the chapters in Pro Android by Apress , I now have a better understanding of the android architecture and the development environment and I’m now starting to get my head around Resources, content providers and Intents and how they tie together.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

,

No Comments

Setting up an android development enviroment on FC10

A newbie guide to android development

One of the reasons  I wanted an Android based smart phone was that I was feeling the need to try something different from the daily php based work . It was time to learn something new , something a little exiting and on the forward edge.

Any time access to the web from mobile platform’s is without doubt the culmination of the dream. This is the killer app aspect of the Internet and people are waking up to this reality. Smart phones , net book’s and in the near future pad style devices will change the way we interact with the cloud. By its open nature I believe android will play a big part in this.

First task then was to get the environment set-up.

To do this we need two pieces of software installed eclipse the popular cross platform IDE and  the Android SDK. You will also need to ensure you have Java installed and set-up on your machine.

I tried to set this up using the version of eclipse available to FC10 via Yum but encountered real issues late in the process so I downloaded the classic version from the eclipse website http://www.eclipse.org/downloads/, which just needs extracting and then runs with out any futher installation .

Download the Android SDK from Google and install it

This is easy enough just unpack the download into a directory. Like eclipse the software runs in place

Set up your path

While not an essential step adding the location of the CLI android tools to your path will probably make life a little easier.

To do this edit your ~/.bashrc file and add a line to the bottom:

export PATH=${PATH}:/home/matt/android/android-sdk-linux_86/tools

Install the Android Development Tools (ADT) for Eclipse

Firstly launch Eclipse.

Follow the excellent instructions at http://developer.android.com/sdk/eclipse-adt.html to install the development tools.

Install packages for eclipse

Next you need to install a bunch of packages . In Eclipse, click “Window->Android SDK and AVD Manager.” In the resulting window, on the left-hand side will be an “Available Packages” option. Click that, then click the checkbox beside the “repository.xml” package to select all available packages and then click “Install Selected“. Once this has completed your ready to begin developing your first android application

Create you first application

The traditional starting point for learning any new language is the humble ‘Hello world’ and is android is no different. Follow the tutorial at
http://developer.android.com/guide/tutorials/hello-world.html for a nice introduction to the android architecture.

Set up a connection to your hardware

The hello world tutorial introduces you to the emulator included with the SDK. But if you have an Android powered handset you’ll find it a lot less pain to set up a debug/test connection to your hardware.

To do this first, set your phone for USB debugging.
In your Android phone, go to Settings -> Applications -> Development menu, and make sure “USB debugging” is checked (activated).

Connect the phone to your computer via USB cable.
In a terminal type the lsusb command to list all USB devices.

Identify the VendorID and ProductID of your device

Bus 001 Device 065: ID 22b8:2d66 Motorola PCS

VendorID in my case is 22b8 the ProductID is 2d66

As root type

vi  /etc/udev/rules.d/51-android.rules
to create a new file and paste the following rule into the file

UBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2d66", MODE="0666"

Re-connect your phone.
Your phone should be detected if you unplug and reconnect it to the computer.

Restart the ADB server

adb kill-server
adb devices

You should see your device listed.
You can now access your phone from the Eclipse IDE and run/debug applications on it.

Useful links

http://www.mattcutts.com/blog/install-android-on-ubuntu/

http://developer.android.com/guide/tutorials/hello-world.html

http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

1 Comment

Hello android

I made my first android app

hello android

OK its just a glorified hello world but we all got to start some where ;)

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

No Comments

Living with the Android

In an earlier post I mentioned my plans to get a new smart phone running the Google Android operating system. After some deliberation I settled on the new Motorola DEXT phone.

motorola dext

motorola dext

The DEXT is  a nicely sized handset that comes complete with  a slide out physical qwerty keyboard with nicely bevelled buttons that allows for easy two thumb typing. The touch screen interface provides access to 5 home screens much like the multiple desktops that are a feature of many Linux  Desktops. This provides and easy to organise and uncluttered interface to access your most used applications.

It has all the features you would expect to find on a modern mobile phone, such as a camera for still and video and a decent media player as well as some nice extras like  GPS and WiFi support.

Billed as the ‘first social phone’  the phones address book and messaging systems are fully integrated with a number of social media and cloud based services making the whole social networking experience seamless and the thousands of applications available in the Android market place allow you to easily expand the phones social networking functionality. Obviously being an Android phone integration with Google’s services such as Gmail, Google Calender and Google maps is excellent. It will interesting to see how the new Buzz service Google launched this week and supported in android version 2 will  integrate in any future  upgrades to the installed operating system.

My only criticism is that the battery can take a pounding due to its always connected nature especially if using the WiFi or you have the GPS turned on. However this is helped by the fact that charging is via the new micro USB standard so at work or home  I can easily keep the battery topped up by leaving it connected to a USB port on the PC. An in car charger will be a wise buy if you intend to make use of the GPS with any SatNav application.

In the earlier post I highlighted what I felt were some of the limitations of using the mobile web on a handset rather than via a netbook as my colleague does. So does this new generation of handsets address these limitations? The answer would have to a very resounding yes.

Using the new phone with some additional applications downloaded from the market place I have been able to do the following.

  • Surf the web using the built in browser either via the 3G network or on any available WiFi network A simple but effective zoom option even allows for the resizing of non fluid pages to avoid the horror of horizontal scrolling .
  • Read and manage all my personal email through my Gmail account.
  • Write this and other posts via the Wordpress Android application.
  • Login to and control my home server via a SSH terminal application.
  • Carry out some work for a friend on his remote web server again via the SSH terminal application.
  • Upload pictures taken on the phones camera to my Flickr and Facebook accounts.
  • Carry out micro blogging tasks such as posting to Twitter  or updating my Facebook status.

Offline I’m now using the phone to store all my passwords in an encrypted vault application and to read and edit documents in common formats such as .doc and .pdf.

With the hardware in place I am now looking forward to getting an android development enviroment setup on my home machine so I can investigate the writting and building of some homebrew applications to fulfill some perosnal wants. It’s definatly an interesting time to be a web developer.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

No Comments

Mobile blogging

With the installation of the Wordpress mobile pack not only does my hidden corner display a mobile specific style to mobile devices it also adds a mobile posting interface.
This brings me another step closer to the anywhere any time solution that i want.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

No Comments

Jamming up the mobile highway

BBC NEWS | Technology | Mobile net ‘heading for data jam’.

10 years ago they were telling us that the Internet was going to grind to a halt. Now it seems that it’s the mobile web that’s about to collapse. In this case the cheap rates needed to drive widespread adoption leaves little left for investment in the growth of the network.

I’m finding myself increasingly making use of mobile web access during the day. In fact Internet capability will be a major factor when I upgrade my mobile phone in  a few weeks time but it’s still not the most satisfying of experiences. Yes it’s great for Facebook status updates and Twitter, checking my email via a Gmail client is okay and catching up on the latest headlines on the BBC by means of an RSS client is acceptable. But go beyond these simple tasks and it can be a wholly frustrating experience.

Maybe it’s the limitations of my hardware  that frustrate me.  My colleague uses a netbook pc with built in mobile modem and loves the experience. Small light and usable anywhere, but he still log’s onto a WiFi network at lunch time and at home.

Mobile anywhere Internet is without doubt the future and perhaps that is where the government should be directing the financial resources it plans to raise with its ‘broadband tax’

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

1 Comment