Posts Tagged 'Android'

iPhone Getting GPS & SDK Getting Maps API…?

Since I dissed the iPhone SDK earlier this month (iPhone SDK lacks mapping function), I wanted to pass on this update. Looks like a GPS-enabled iPhone is in the works for Apple’s upcoming World Wide Dev Conference. Even if the announcement doesn’t come then, looks like it will come soon according to EnGadget:

Second-gen iPhone: 3G, GPS, only slightly thicker

Click to see new GPS-iPhone at EndGadget

This is great news for mobile map-based application developers but don’t count on the API being as slick and open as Android’s. Given Apple’s approach so far, they’ll still withhold the vital functionality to get your app really humming.

Why do I say that?

Well for example, Apple’s SDK doesn’t allow applications to run in the background. That means death to any Pocket Journey app that would run on an iPhone as the audio/video would be killed along with your application as soon as someone called. Apple says this is for security reasons, but we know it’s due to Apple’s “control freakish” corporate nature. Happily for us, Android solved this challenge through their Service API.

Seems like Apple wants to step back to the dark ages of the Palm OS which can only handle single-threaded tasks as well

Android Tutorial #4.2: Passing custom attributes via XML resource files

In tutorial #4.1, I mentioned that we passed custom attributes for the text and image variables from the XML resource file to our custom class. This is a critical skill for performing true object-oriented programming and how to do it wasn’t obvious from Google’s Android API Demos.

Luckily I was pointed to the solution myself by an experienced Android programmer in Guatemala by the username of cadlg (thanks again!). If you want to see the official Google Android example though, look at Android’s APIDemos’ custom LabelView example.

So here we go. We’ll use the same code as Tutorial 4.1 to keep this simple.

Continue reading ‘Android Tutorial #4.2: Passing custom attributes via XML resource files’

Android Tutorial #4.1: Image & Text-Only Buttons (UPDATED)

This very simple tutorial will add to your Android UI (user interface) development arsenal. How? Buttons that display as simple text or as images are basic elements of any application. By following the two steps below, these buttons can be easily created with Google’s Android by simply extending the current Button and ImageButton classes.

We will create these two new Button extensions as shown:

Text and Image Buttons

Continue reading ‘Android Tutorial #4.1: Image & Text-Only Buttons (UPDATED)’

iPhone SDK lacks mapping function (Android doesn’t of course)

Here’s a quick insight from research into the iPhone SDK in comparison to the Android OS.

Yes…you read this post’s title correctly. The iPhone SDK lacks the basic mapping API required by applications developers hoping to tie the mobile experience to a geo-specific location (GPS). The only GPS mapping function provided by the iPhone SDK is to send a URL to the iPhone’s built-in Google map application and to let Google handle the rest.

Curiously the iPhone SDK does provide a basic location service API providing the user’s location using cell signal triangulation, but without a map, this information is all-but-useless.

At first glance you might say, “that makes sense as the iPhone doesn’t have GPS built-in because it would have raised the price of an already expensive phone.”

Point taken but all this leaves me to believe that Apple’s take on the iPhone is too media focused and lacks clear understanding of the power provided by location-awareness. That’s great news for the upcoming GPS-enabled Android phones. They’ll have time to widely proliferate before the soon-to-be almost 10M iPhones out there will be replaced with GPS-enabled iPhones.

Imagine if Android had lacked the MapActivity API…?!? From my count, 90% of the most interesting Android Challenge entries would never exist. Without Android’s MapActivity API, we would be left with a few accelerometer-based games and non-SMS messaging apps.

This is great news for Google and perhaps that’s the point. Google wrote the iPhone’s map application and was either not given incentive to make expose its iPhone map through an API or perhaps decided it was smart to keep the iPhone limited in this crucial manner. OK…maybe Apple has a bigger plan as it always does. Maybe Apple is preparing to launch its own mapping application or perhaps AT&T didn’t want Apple to expose such location-based apps because AT&T has its own GPS agenda.

Thoughts anyone?

Android Video & Screenshots Released

We were inspired by all the great videos presenting other Android-enabled applications being entered into Google’s Android Challenge so we created a short (4 minute) video about Pocket Journey.

Video Splash

Continue reading ‘Android Video & Screenshots Released’

Android Tutorial 3: Custom Audio Streaming with MediaPlayer

Introduction

NOTE: This tutorial was written for Android v1.0.  I have just updated the Android streaming media player tutorial/code to v1.5 (Cupcake) with some additional information on the updated code.  You should read that post as well as this one.

This is a long tutorial, but for those of you that have been struggling with streaming of .mp3 audio to Google’s Android’s MediaPlayer, then I hope this tutorial proves useful as you finalize your entries into Google’s Android Challenge

This tutorial will show how to roll your own streaming audio utility for Android’s MediaPlayer. We will buffer 10 seconds of audio and start playing that audio while the rest of the audio loads in the background. We store the streamed audio locally so you could cache it on device for later use or simply let it be garbage collected.

Here’s the source code for those that just want to jump in. You’ll also notice code for the other tutorials as I didn’t have time to strip them out.

Here are a few screenshots of what we’ll be creating:

Tutorial #3 results screenshots

Continue reading ‘Android Tutorial 3: Custom Audio Streaming with MediaPlayer’

Android Tutorial 2: “Hit” testing on a View (MapView)

The following tutorial addresses how to perform ‘hit’ testing for user ‘clicks’ in a View. By hit testing, we mean the ability to determine when a user’s selection of a specific Point in a View overlaps with a region that we are monitoring for further action.

In other words at the end of this MapView tutorial, your users will be able to click on any icon that you draw onto the map, and you’ll be able to take whatever action you like such as displaying a transparent popup window (as we do in the tutorial).

Here’s what the final result will look like:

Screenshot of Tutorial 2 results

Continue reading ‘Android Tutorial 2: “Hit” testing on a View (MapView)’

Tutorial 1: Transparent Panel (Linear Layout) On MapView (Google Map)

This tutorial is for Google’s Android mobile operating system. If you haven’t already heard about Android, then check it out immediately because it’s way cool. We have benefited so much from the Android developer community that we want to give back our own insights into the platform and how to better design/develop on the platform.

For this tutorial, we’re going to help the several people that have asked us how to create transparent panels. While we show how to overlay onto a Google Map, you can use the same technique to overlay a transparent panel onto any other view.

Starting at the end, this what we’ll develop today – a transparent panel with a single button displayed at the base of an Android MapView

Tutorial 1 - final result

Tutorial 1 - final result (closeup)

Continue reading ‘Tutorial 1: Transparent Panel (Linear Layout) On MapView (Google Map)’

Welcome to Pocket Journey

We’ve been working towards this release for over a year now and the pieces are finally coming together. Our ‘official’ website has gone into public stealth mode…yes that’s a little cryptic but we guarantee your wait will be worthwhile.

In the meantime, please read on and explore this site. There will be enough leaked knowledge to wet your appetite for the final launch which we hope will arrive by year’s end. We’re participating in Google’s Android Challenge and will be releasing screenshots and more insights into Audible Journey over the next few months. If you haven’t heard about Android but like the vision of Pocket Journey, then you’re going to be in for a shock. We were. None of us expected so much progress on the mobile front in such a short time. Judging from the just announced release of Apple iPhone SDK, we’re about to experience a MAJOR shift in what we will expect from our cell phones over the next few years.

Please feel free to post your own thoughts about Pocket Journey or to contact us. Without community participation both on the business development & the member usage side, this vision will never become a reality.


a


Follow

Get every new post delivered to your Inbox.