Planet Android Headlines

↑ Grab this Headline Animator

March 11, 2010

Android Device Exchange

Everyone has heard about Google’s Device Seeding Program. (Yes, it’s real.) So in the next few weeks (days? months?) lots and lots of people will be getting a nice 2nd-gen Android device. Except… nobody gets to choose their device. Google will send either a Nexus One or a Motorola Droid, at random. That is somewhat [...]

by Disconnect at March 11, 2010 04:14 AM

Android UI vs iPhone UI

So why am I trashing my own app UI design? Well, with the ad space of 100px I get this:

As you can see the ad space size does not play well as far as taking up too much space. But there are some other concerns.

If you view the iPhone demo:

..you see applications with bulky top and bottom menus. nOw look at the Nexus One gallery application(no its not in the emulator yet):

..notice that you have some floating menus. That seems the standard-in-quotes that visually Google and OHA seem to be pushing towards as far as visual lok of the application.

Thus I change the top most container from relative layout to frame layout to enable me to float a small menu. I eliminate the status bar and the ad space as I can have the free version just organize by file name tags and the premium version organize by file names and picture object detection.

Reblog this post [with Zemanta]

Filed under: Android Tagged: Add new tag, Apple, Google, IPhone, Nexus One, Smartphone, User interface

by Fred Grott at March 11, 2010 01:15 AM

Wordcube feedback

This page was created for feedback from users of wordcube available via the wordcube website or as an app for android phones (available in market). Filling in these polls and leaving feedback will help improve wordcube for everyone. Thanks for your feedback. Please post any bugs, suggestions, complaints or ideas below.

by mat at March 11, 2010 12:45 AM

March 10, 2010

GDC 2010 Demo Videos

So I figured while I wait for more Android related announcements during GDC that I would post a collection of the game demo videos released so far at GDC for everyone to enjoy. If I've missed one, please feel free to comment and let me know or just comment on what games you like so far.

Read more...


by ExtremeT (702records@gmail.com) at March 10, 2010 10:15 PM

There’s a web site dedicated to selling Android stickers

Well, a man’s gotta eat, and selling Android stickers on the internet has got to be a better way to earn a living than cleaning up congealed vomit from train carriages at 4.30am.

android stickers

Found via the maker’s Twitter feed. Web site and shop located here, if you’re a little bit too “into” your phone’s bloody operating system and want to show it to the world.

by EURODROID 00001 at March 10, 2010 08:50 PM

Android App Recommendations from Android App Gurus on Facebook

As many new consumers are buying smart phones with Google’s Android operating system, many are greeted with an overwhelming amount of apps and want to know “what apps they should download“?

Thankfully we offer a premium service to help with that. Research shows that consumers are more influenced to purchase products from: friends/family or trusted recommendations, expert reviews, followed by advertising. This is why we have partnered with mPlayIt’s Android Arcade, a platform for social discovering what Android apps Facebook friends are using. Thus combining the top two impulses in consumer recommendation spending; recommendations and expert opinion.

Today mPlayIt social sharing apps on Facebook for iPhone, Blackberry and Android launches an update to introduce “Gurus” in their “Apptivity Feed”. Gurus are targeted experts; be it users, bloggers or resource websites like ours whom offer highly valued opinions on mobile applications for better discovery. Their Apptivity Feed is a real-time stream of latest activity of recently viewed, rated, commented and Guru Approved apps.

For obvious reasons we were hand selected to represent Android as a Guru. Our colleagues at AndroidGuys.com and AndroidandMe.com top out the list along with IntoMobile and Stuart Dredge. So join us on Facebook to discover some awesome Android apps! Check out our Profile and become a Fan on our new Facebook page!

Algadon Free Online RPG. Fully Mobile Friendly.

by Antonio Wells at March 10, 2010 08:45 PM

App creation gets even easier – thanks to ComboApp

Another one of those automated app creation tools has launched today, in the form of ComboApp – which has an astonishingly simple web-based (!), button-clicking app-maker interface. This will free up so much spare time for Michael Quach !

Here’s the official explanation:

“Meet ComboApp© – the iPhone, iPad and Android App Builder for the rest of us! ComboApp gives anyone the tools to create cutting-edge iPhone, iPad and Android applications in three easy steps in as little as 5 minutes. ComboApp is an innovative and affordable way to promote any type of business. Whether you need an iPhone or Android app to promote your brand, stream radio broadcasts, sell products and services, provide the latest news or maintain a blog via the iPhone / iPad / Android phone – ComboApp© is the right tool to get the job done”

And here’s a look at the we-still-can’t-believe-it web interface, which lets you select from a decent range of RSS feeds, image providers, shops and social networks for pulling in your app content.

comboapp android 1

Unbelievable. Developed by Intersog, ComboApp claims to publish your apps with “immediate” availability on both Android AND Apple’s App Store, with pricing starting at $39 for certain pro-level packages.

Go say hello to them and ask them how they hell they do it over on Twitter.

by EURODROID 00001 at March 10, 2010 07:41 PM

Ever get the impression that people want to free the MILESTONE bootloader?

Here’s the current state of play over at Motorola Europe, where the entire front page of its Facebook profile is now chock-a-block with complaints about the MILESTONE’s locked-down bootloader.

And look – it’s all different people, not just one mad loner on a mission!

motorola-bootloader-campaign

Motorola Europe has been very quiet for a few days now, apart from the odd reply to people about “not having any news” – we wouldn’t be surprised if Motorola quietly axes its social networking presence soon. It’s become a bit of a liability.

by EURODROID 00001 at March 10, 2010 07:13 PM

Ad Space UI Impact

The above gives you an idea of what 100px ad space takes up in a UI as my free version of Gallerie will be carrying ads. which means I should move the custom status text to between the two navigation buttons.


Filed under: Android Tagged: Ad Space

by Fred Grott at March 10, 2010 06:30 PM

Vodafone launching own-brand budget Android phone?

Bit of a wild rumour this one, but it would go some way toward explaining why Vodafone UK is SHAMEFULLY only offering the HTC Tattoo as its sole Android phone option at the moment – it will soon launch it’s own affordable Android handset under the Vodafone name.

Mobile blog Unwired View claims the new “Vodafone 845″ Android phone will cost around 145 euros, although there’s obviously a catch – it’ll only feature a 2.8″ screen, placing it down at the “entry level” end of things.

vodafone-845

However, Unwired’s source says it’ll pack Android 2.1 – which will make 145 euros seem like a pretty good deal and certainly a much better offering than the equally affordable T-Mobile Pulse, a phone currently left out in the firmware-update wilderness.

by EURODROID 00001 at March 10, 2010 04:24 PM

NewsRob

NewsRob Pro is a RSS/Atom reader that auto syncs with Google Reader. There is also a paid version that is ad-free and unlocks extra features in this version, like Share With Note. Also more features will be added in future releases here: http://bit.ly/nr_pro

Price: Free, €4.99

AndroidTapp.com Android App Review:

Pros & Cons:

Pros

  • Google Reader sync tool
  • Read online or download feeds locally to SD Card for offline reading
  • Ability to receive Android notifications of new feed content

Features:

NewsRob Android App syncs your Google Reader of RSS feeds with your Android phone. Use the app to conveniently read RSS feeds online or offline, mark read, favorite and categorize various subscribed RSS feeds. Receive Android notifications of new feed content, and cache contents to SD card versus internal memory storage. With the paid version of NewsRob you can add a note to a shared article, or add/view comments.

Video: NewsRob

http://www.youtube.com/watch?v=MBXC8qI_VCE

NewsRob Feed NewsRob News Feed Snippet NewsRob News Article on Source Website NewsRob Settings Menu

Usefulness:

Great alternative Android app for RSS feeds (even better then mobile version of Google Reader for Android phones).

Ease of Use:

You have to sign into your Google Account to use the app plus subscribe to feeds via Google Reader as NewsRob is a sync and display tool.

Frequently Used:

Really dependent on how often you read your feeds. Potentially used multiple times daily.

Interface:

NewsRob Android App is a mixture of native app and web-based content from your subscribed sources.

AndroidTapp.com Rating

AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating! (4.2 out of 5)

Should you Download NewsRob? Yes! Be sure to Subscribe to AndroidTapp.com RSS Feed!

Algadon Free Online RPG. Fully Mobile Friendly.

by Antonio Wells at March 10, 2010 02:24 PM

DriveSafe.ly

DriveSafe.ly reads your text messages (SMS), emails and caller-id out loud. Eliminate the temptation to reach for your phone by letting DriveSafely read to you and automatically respond for you. Stay connected by listening to your messages without texting while driving in your car. TXT hands-free.

Price: Free

AndroidTapp.com Android App Review:

Pros & Cons:

Pros

  • Listen to text messages, emails and screen caller ID while the app reads them aloud to you
  • Auto-respond to the person who text messaged or emailed you with a pre-generated response
  • Audible feedback quality is clear and sounds conversational and not robotic
  • Safer use of receiving text and email messages while driving
  • Available for Android, iPhone, Blackberry and Windows Mobile

Cons

  • The email integration has to be setup… not automatic
  • In evaluating this app there were a few glitches when answering a call, it continued to speak the caller’s name after answering
  • Would be cool if you could reply hands-free. I initially assumed it work similar to Voice Assist. Another cool feature would be to have it automatically activate when driving by tapping into GPS to determine that you’re driving.

Features:

DriveSafe.ly Android App is an innovative way to listen to your SMS text messages, emails and even screen your caller ID hands-free as the app reads then aloud to you. It automatically responds to the person who text messaged or emailed you with a message you generate prior. Similar to how PhonePlus Callback is to phone calls, which text messages or emails a caller if you’re busy on the other line. Provides a safer atmosphere while driving as you don’t have to mess with your phone and drive. Shake to the phone to stop the audio.

The audible voice-over quality is impeccable. The dialect truly sounds conversational with: expression pitches at exclamation or questions and recognizes acronyms like LOL and BRB. Does not sound robotic like Text-To-Speech Library or semi-robotic like Google Maps Navigation.

Video: DriveSafe.ly

http://www.youtube.com/watch?v=RWO7T0ap3mM

http://www.youtube.com/watch?v=faQZjLQot4w

DriveSafe.ly Toggle Screen DriveSafe.ly SMS Text Message Auto-Responder DriveSafe.ly Email Auto-Responder DriveSafe.ly Preferences Menu

Usefulness:

Very useful while driving and helps keep eyes on the road.

Ease of Use:

If used for the text message or caller ID setup the app is straight-forward. However becomes a bit more involved for email integration. The email integration has to be setup, it’s not an automatic setup like text message and  caller ID integration. For each email account you must setup POP3 or IMAP (check our quick guide how to do it).

Frequently Used:

Intended for use every time you drive.

AndroidTapp.com Rating

AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating!AndroidTapp.com Rating! (4.1 out of 5)

Should you Download DriveSafe.ly? Yes! A Must Have App While Driving!

Algadon Free Online RPG. Fully Mobile Friendly.

by Antonio Wells at March 10, 2010 01:12 PM

Big Box Stores, Coffee and ATMs are Top Searches while Driving with GPS Navigation

As more drivers equip their vehicles with GPS devices or use navigation enabled smartphones; data suggests most common searches are often used during shopping. TeleNav reveals some interesting data about GPS navigation usage from their users nationwide. According to that study, the top 10 U.S. businesses searched with GPS navigation are as follows:

  1. Wal-Mart
  2. Starbucks
  3. Target
  4. Best Buy
  5. Bank of America
  6. Walgreens
  7. Pizza Hut
  8. Home Depot
  9. McDonald’s
  10. Chase bank

I recently wrote a developer spotlight on TeleNav noting their GPS navigation product tends to be most accurate regarding routing among GPS navigation apps for Android. The chart below illustrates or concurs my user experience as my city (Chicago) is fourth on the list for cities most likely to use GPS to reroute around traffic.

Cities Most Likely to Use GPS to Reroute Around Traffic

Cities Most Likely to Use GPS to Reroute Around Traffic

Algadon Free Online RPG. Fully Mobile Friendly.

by Antonio Wells at March 10, 2010 01:02 PM

Apple’s Patents Prior Art

I wonder how feasible it is for Google since they have not been sued to launch a Search for Prior Art on Apple’s Patents campaign? I do not think they could offer Nexus One’s as direct prizes but I am sure they could come up with other prizes.

But on a good note, all the OEMs attempts at new UIs gets pushed right back in the Google/OH camp to accomplish thus decreasing fragmentation.  Talk about unintended consequences.


Filed under: Android Tagged: Apple Patents

by Fred Grott at March 10, 2010 11:00 AM

How to use Multi-touch in Android 2: Part 4, Setting up for Image Transformation

Today’s entry in the Android multi-touch series is a short one. In it, we set up the matrices that will be used later for moving and resizing the image. All source code can be downloaded from the web site for Hello, Android! (3rd edition).

In case you missed the previous articles, here’s an outline of the series so far:

  1. Introducing multi-touch
  2. Building the Touch Example
  3. Understanding Touch Events

Setting up for Image Transformation

In order to move and zoom the image we’ll use a neat little feature on the ImageView class called matrix transformation. Using a matrix we can represent any kind of translation, rotation, or skew that we want to do to the image. We already turned it on by specifying android:scaleType=”matrix” in the res/layout/main.xml file. In the Touch class, we need to declare two matrices as fields (one for the current value and one for the original value before the transformation). We’ll use them in the onTouch( ) method to transform the image. We also need a mode variable to tell whether we’re in the middle of a drag or zoom gesture:

From Touchv1/src/org/example/touch/Touch.java:

public class Touch extends Activity implements OnTouchListener {
   // These matrices will be used to move and zoom image
   Matrix matrix = new Matrix();
   Matrix savedMatrix = new Matrix();

   // We can be in one of these 3 states
   static final int NONE = 0;
   static final int DRAG = 1;
   static final int ZOOM = 2;
   int mode = NONE;

   @Override
   public boolean onTouch(View v, MotionEvent event) {
      ImageView view = (ImageView) v;

      // Dump touch event to log
      dumpEvent(event);

      // Handle touch events here...
      switch (event.getAction() & MotionEvent.ACTION_MASK) {
      }

      // Perform the transformation
      view.setImageMatrix(matrix);

      return true; // indicate event was handled
   }
}

The matrix variable will be calculated inside the switch statement when we implement the gestures.

To be continued in Part 5, Implementing the Drag Gesture…

Copyright notice:
This is an excerpt from Hello, Android 3rd edition, published by the Pragmatic Bookshelf. For more information or to purchase a paperback or PDF copy, please visit http://www.pragprog.com/titles/eband3.

Copyright © 2010 The Pragmatic Programmers, LLC. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher.

by Ed Burnette at March 10, 2010 08:18 AM

BreakTheBlocks Lite Updated

Hello all,

I released an update for BreakTheBlocks Lite this past weekend.  The main update was switching advertising providers from Admob to the beta for Google Adsense for Mobile Applications.

I have received some feedback regarding “lag” in this game.  The main thing that can be done to prevent this lag is kill unneeded tasks with a task manager like Advanced Task Manager or Taskiller.  Applciaitons that run in the background are still doing work, and creating new Java objects, so the Java Garbage Collector has to perform its duties more often.  When the garbage collector runs it essentially blocks anything that my games can do, so there is a lag while my games wait to be able to run again.  I am currently reviewing some enhancements to further help this problem from appearing so often, but the best thing to do for now is to kill unneeded tasks.

by admin at March 10, 2010 04:30 AM

Flight Frenzy

In the spirit of line drawing games where you control an items path with the line you draw such as in Flight Director comes another game similar to it called Flight Frenzy by Big Fun Games. Like Flight Director, you control the fate of airships (and their passengers) by plotting a course for it to land safely while trying not to crash into the other airships you're controlling.

Read more...


by ExtremeT (702records@gmail.com) at March 10, 2010 03:15 AM

March 09, 2010

Replica Island

Even while GDC is going on I can still manage to download and try out new games. One that just got onto the market is called Replica Island by Team Replica which is an open source 2D scrolling shooter game. Sort of like older Mega Man games but with our beloved Android instead of a blue child looking robot.

Read more...


by ExtremeT (702records@gmail.com) at March 09, 2010 10:30 PM

Asking Steve Ballmer on Mobile & Android at SMX West

Last week I was speaking on Android at SMX West an Internet Marketing conference in Santa Clara California just outside San Jose.

Keynoting the SMX West conference was Microsoft CEO, Steve Ballmer, when Q&A was opened to the audience I asked him his vision of Microsoft in the mobile space going forward.

At the 1 hour 21 minute 50 seconds point in the Ustream video below I spoke to Steve Ballmer.

I first complemented the Windows Phone 7 which does look impressive although I believe Android & the iPhone will leapfrog it by the time it actually comes out at the end of the year.

I then asked Mr Ballmer where Microsoft sees the monetization play in mobile as they won’t remove their licensing fees with Windows Mobile 7 while at the same time scoffing at Android with its no licensing fee as “free as a puppy“.

His answer was a summation of focusing on licensing fees along with subscription services and advertising.

When he didn’t mention mobile applications, I asked is that because of HTML5, and he said HTML5 IS apps and there will always be a need for local applications but didn’t specify how Microsoft will approach it.

I then spoke on a Mobile Search Apps & Opportunities panel as I talked about Android and its emergence not just in units sold but mind-share.

The audience was Internet marketers and marketers in general so its purpose was to make sure they divert internal resources and focus to producing Android applications for marketing purposes.

The slidedeck from my presentation is below although I verbally added many points not in the slides themselves.

Please let me know anything I should add or update as I will be speaking on Android in April across the border in Canada at SMX Toronto.

Asking Steve Ballmer on Mobile & Android at SMX West

Post from: Google And Blog


by Michael Martin at March 09, 2010 08:30 PM

Game Devs Get Helping Hand

Even though this isn't directly related to a particular game, it's important because it helps every game developer out there developing games for Android. Google announces NDK r3 for Android and the main deal with this revision is about OpenGL ES access for developers.

Read more...


by ExtremeT (702records@gmail.com) at March 09, 2010 06:45 PM

Weekly Theme Category Review Mar.2-Mar.9

It's time for another review of the past week's action in the Theme category on the Android market. Just like last week, this week there wasn't a huge amount of action taking place aside from some slight shuffling of positions here and there. Two weeks ago there was a huge change up in the themes in the top 10 for both paid and free themes so it seems everyone is settling in nicely now.

For the paid themes category there actually wasn't any changes at all, not even one theme moving a single rank. I suppose this will happen from time to time but I don't expect it to last, especially with some of the newer themes being released which I think could easily knock a few out of the top 10 given some time.

Free themes saw some movement though. Nike Kicks by Extreme Themes went back up to 4th place while Spongebob by MTM dropped back down into 5th. iPad theme by GWDesigns dropped out of the top 10 being replaced by Loveable by mAPPn in 10th place. So even though there was some action in this section, it's still not a whole lot to write home about. Not much to write about when it comes to the top 10.

Some notable themes to look out for that may invade the paid or free top 10 section that just came out.

- WTF Theme by Extreme Themes (Completely whacked out theme)

- Gorillaz Theme by Elia Alberti (Not a fan of the icons but it's a good solid theme, some great design to it)

- Neon Nites by RJPThemes (Don't like the search bar but other then that a great concept and pretty well executed)

- Golden Floral by RJPThemes (Another solid entry into the themes market)

And now it's time for the usual quick review and this week's review will be on Modern Warfare 2 by K-J Themes who produce a lot of name brand themes.

Overall this theme is pretty solid with decent icons, a decent tab/dock and a great looking radar looking clock with a world map on it. Another feature I like is the drawer background being black with just the game name on it with some graphical enhancements, adds a bit more flare to it. The icons could use a bit more consistency to them since some are circle, some are rounded squares and others are face cut-outs. The best looking ones are the rounded squares and that's what I would like to see all the icons as. Still it's a good theme and flows pretty good and currently is keeping a rating of 4.5/5 stars on the market.

Overall Rating: 4/5

If you are a fan of the game you have this and about 5 other Modern Warfare themes to choose from, this is one of the better ones.


by ExtremeT (702records@gmail.com) at March 09, 2010 05:45 PM

Portable apps for iPhone, Android, Pre, n900 - Can Processing.js help?

I don't know. But if you want to find out, then I have something for you.

Processing.alt

Visit this website from your desktop browser. You will see an IDE. Write some processing code to create a sketch and save it when you are done.

Visit the same website from your iPhone/Android/n900/Pre browser. You will get a simple viewer interface. Find your sketch under My Sketchbook and run it.

Processing is a well known language to create sketches, animations, games. It is a simplified dialect of java. The resulting sketches are in the form of bytecode and can be run on desktop or in java applets. In Summer of 2008, John Resig (jQuery fame) ported Processing to javascript. Processing.js uses the HTML5 canvas element to render the sketches.

The modern browsers that ship with today's smart phones support HTML5 element. So it is very much plausible to get your Processing sketch/game working on all the modern smart phones without any knowledge of native app development for each platform. Processing.js has a potential to become an uber-portable library for mobile development.

That was the idea I started out with about a month ago. After several iterations, I ended up with a website that you see now. It is an IDE when opened from desktop browser. You can write Processing code, run it, save it, share it for others to see in the Gallery. There are also some samples you can find in Gallery right now. Try them out.

The same website acts as a viewer for your processing sketch when opened from a mobile phone. You can view the shared sketches from the Gallery or you can login and find your saved sketches in My Sketchbook.

One great advantage of Processing.js is, it can intermix javascript with Processing code. So in the samples you will find how javascript is used to automatically find  the kind of browser and adjust the dimensions of the sketch accordingly.

I have tested the site on Android HTC Magic and Nokia n900. A friend told me it worked as expected on his iPhone too. Also I am treating Palm Pre's user agent as mobile platform. So on these four platforms you should see the mobile interface of the website. But in case if you don't, let me know and I'll see what is wrong.

As you will see that running Processing code on smartphones is indeed possible, but is fairly sluggish. However I believe the future is not far when the phones will become more powerful, browsers will become more optimized and Processing.js can also be tuned for speed. We already have two gadgets with 1GHz processors - Nexus One and iPad.

The IDE also has a lot of scope for innovation. But before jumping ahead of myself, I decided to open it as beta. I would like to hear your thoughts and suggestions on this idea.

So try it out and leave your opinion in the comments.

P.S. For logging in to save your sketches, use your GMail account. You don't need to login to browse through the Gallery.

by Jayesh (noreply@blogger.com) at March 09, 2010 10:02 AM

Orangify aHome Theme for android

Prerequisite/Works with either of the following:
aHome
aHome mini
aHome Lite
PandaHome
Freshface
openHome


by HydTech at March 09, 2010 05:15 AM

March 08, 2010

Android NDK r3

The third release of the Android Native Development Kit (NDK) is now available for download from the Android developer site.

It can be used to target devices running Android 1.5 and higher. In addition to a few bug fixes and improvements, this release includes the following new features:

Toolchain improvement

The toolchain binaries have been refreshed for this release with GCC 4.4.0, which should generate slightly more compact and efficient machine code than the previous one (4.2.1).

Note that the GCC 4.4.0 C++ frontend is more pedantic, and may refuse to compile certain rare and invalid template declarations that were accepted by 4.2.1. To alleviate the problem, this NDK still provides the 4.2.1 binaries, which can optionally be used to build your machine code.

OpenGL ES 2.0 support

Applications targeting Android 2.0 (API level 5) or higher can now directly access OpenGL ES 2.0 features. This brings the ability to control graphics rendering through vertex and fragment shader programs, using the GLSL shading language.

A new trivial sample, named "hello-gl2", demonstrates how to render a simple triangle using both shader types.

Name simplification

This NDK release is just called "r3", for "Revision 3", to indicate that it is not limited to a specific Android platform/API level. Some developers thought that the previous release's name (1.6_r1) was confusing and indicated that it could only be used to target Android 1.6, which was not true.

Enjoy!

by David Turner (noreply@blogger.com) at March 08, 2010 07:25 PM

Gallerie Image Processing Feature

Part of the innovation in replacing the default gallery application in Android is having meta-data used of generating tags that than are assign to user defined categories, sort of an automated organizer of sorts. Obviously, I can use file names as the first version of this feature.

But, with all the buzz in getting higher GHZ devices into th market not just the low end at 800 MHZ at the low end but the ones at both 1 GHZ and 1.5 GHZ cpu speeds it would seem that innovation of tagging should use image processing. For people objects that would be called face recognition, for non people object its called object recognition.

You the user choose an image on the SDcard and Gallerie calibrates the tagging of that object in the picture so your photo album has all the pictures on the Sdcard of that object in one album. with the new device cpu speeds it should be fast enough as I would be using an Android specific processing.org image library. I could even make this the premium feature and the picture tagging by file name the freemium feature.


Filed under: Android Tagged: Android, Image processing

by Fred Grott at March 08, 2010 02:00 PM

How to use Multi-touch in Android 2: Part 3, Understanding touch events

In this installment of the Android multi-touch series, we try to understand touch events by writing some sample code that dumps them out and then examines the results. All source code can be downloaded from the web site for Hello, Android! (3rd edition).

Understanding touch events

Whenever I first learn a new API, I like to first put in some code to dump everything out so I can get a feel for what the methods do and in what order events happen. So let’s start with that. First add a call to the dumpEvent() method inside onTouch():

From Touchv1/src/org/example/touch/Touch.java:

@Override
public boolean onTouch(View v, MotionEvent event) {
   // Dump touch event to log
   dumpEvent(event);
   return true; // indicate event was handled
}

Note that we need to return true to indicate to Android that the event has been handled. Next, define the dumpEvent() method. The only parameter is the event that we want to dump.

From Touchv1/src/org/example/touch/Touch.java:

/** Show an event in the LogCat view, for debugging */
private void dumpEvent(MotionEvent event) {
   String names[] = { "DOWN" , "UP" , "MOVE" , "CANCEL" , "OUTSIDE" ,
      "POINTER_DOWN" , "POINTER_UP" , "7?" , "8?" , "9?" };
   StringBuilder sb = new StringBuilder();
   int action = event.getAction();
   int actionCode = action & MotionEvent.ACTION_MASK;
   sb.append("event ACTION_" ).append(names[actionCode]);
   if (actionCode == MotionEvent.ACTION_POINTER_DOWN
         || actionCode == MotionEvent.ACTION_POINTER_UP) {
      sb.append("(pid " ).append(
      action >> MotionEvent.ACTION_POINTER_ID_SHIFT);
      sb.append(")" );
   }
   sb.append("[" );
   for (int i = 0; i < event.getPointerCount(); i++) {
      sb.append("#" ).append(i);
      sb.append("(pid " ).append(event.getPointerId(i));
      sb.append(")=" ).append((int) event.getX(i));
      sb.append("," ).append((int) event.getY(i));
      if (i + 1 < event.getPointerCount())
         sb.append(";" );
   }
   sb.append("]" );
   Log.d(TAG, sb.toString());
}

Output will go to the Android debug log, which you can see by opening the LogView view (see Section 3.10, Debugging with Log Messages).

The easiest way to understand this code is to run it. Unfortunately you can’t run this program on the Emulator (actually you can, but the Emulator doesn’t support multi-touch so the results won’t be very interesting). So hook up a real phone to your USB port and run the sample there (see Section 1.4, Running on a Real Phone). When I tried it on my phone and performed a few quick gestures, I received the output below:

 1. event ACTION_DOWN[#0(pid 0)=135,179]
 2. event ACTION_MOVE[#0(pid 0)=135,184]
 3. event ACTION_MOVE[#0(pid 0)=144,205]
 4. event ACTION_MOVE[#0(pid 0)=152,227]
 5. event ACTION_POINTER_DOWN(pid 1)[#0(pid 0)=153,230;#1(pid 1)=380,538]
 6. event ACTION_MOVE[#0(pid 0)=153,231;#1(pid 1)=380,538]
 7. event ACTION_MOVE[#0(pid 0)=155,236;#1(pid 1)=364,512]
 8. event ACTION_MOVE[#0(pid 0)=157,240;#1(pid 1)=350,498]
 9. event ACTION_MOVE[#0(pid 0)=158,245;#1(pid 1)=343,494]
10. event ACTION_POINTER_UP(pid 0)[#0(pid 0)=158,247;#1(pid 1)=336,484]
11. event ACTION_MOVE[#0(pid 1)=334,481]
12. event ACTION_MOVE[#0(pid 1)=328,472]
13. event ACTION_UP[#0(pid 1)=327,471]

Here’s how to interpret the events:

  • On line 1 we see an ACTION_DOWN event so the user must have pressed one finger on the screen. The finger was positioned at coordinates x=135, y=179, which is near the upper left of the display. You can’t tell yet whether they’re trying to do a tap or a drag.
  • Next, starting on line 2 there are some ACTION_MOVE events, indicating the user moved their finger around a bit to those coordinates given in the events. (It’s actually very hard to put your
    finger on the screen and not move it at all, so you’ll get a lot of these.) By the amount moved you can tell the user is doing a drag gesture.
  • The next event, ACTION_POINTER_DOWN on line 5, means the user pressed down another finger. “pid 1” means that pointer id 1 (that is, finger number 1) was pressed. Finger number 0 was already down, so we now have two fingers being tracked on the screen. In theory, the Android API can support up to 256 fingers at once, but the first crop of Android 2.x phones is limited to 2. The coordinates for both fingers come back as part of the event. It looks like the user is about to start a pinch zoom gesture.
  • Here’s where it gets interesting. The next thing we see is a series of ACTION_MOVE events starting on line 6. Unlike before, now we have two fingers moving around. If you look closely at the coordinates you can see the fingers are moving closer together as part of a pinch zoom.
  • Then on line 10 we see an ACTION_POINTER_UP on pid 0. This means that finger number 0 was lifted off the screen. Finger number 1 is still there. Naturally, this ends the pinch zoom gesture.
  • We see a couple more ACTION_MOVE events starting on line 11, indicating the remaining finger is still moving around a little. If you compare these to the earlier move events, you’ll notice a different
    pointer id is reported. Unfortunately the touch API is so buggy you can’t always count on that.
  • Finally, on line 13 we get an ACTION_UP event as the last finger is removed from the screen.

Now the code for dumpEvent() should make a little more sense. The getAction() method returns the action being performed (up, down, or move). The lowest 8 bits of the action is the action code itself, and the next 8 bits is the pointer (finger) id, so we have to use a bitwise AND (&) and a right shift (>>) to separate them.

Then we call the getPointerCount( ) method to see how many finger positions are included. getX( ) and getY() return the X and Y coordinates, respectively. The fingers can appear in any order, so we have to call the getPointerId() to find out which fingers we’re really talking about.

That covers the raw mouse event data. The trick, as you might imagine, is in interpreting and acting on that data.

To be continued in Part 4, Setting up for image transformation >

Copyright notice:
This is an excerpt from Hello, Android 3rd edition, published by the Pragmatic Bookshelf. For more information or to purchase a paperback or PDF copy, please visit http://www.pragprog.com/titles/eband3.

Copyright © 2010 The Pragmatic Programmers, LLC. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher.

by Ed Burnette at March 08, 2010 08:20 AM

Android Market Device Seeding Program

Last time I posted that Google was sending me a Free Nexus One or Verizon Droid, Here is the confirmation letter I got from Google!

Dear Hydtech,

We’ve received your information for the Android Market Device Seeding Program and have successfully validated the Google Order Number from your developer account.

Your information will now be sent to our shipping partner for order processing. Just to confirm, the information we received from you was:

HydTech
**********
*********, *******
US

*******@gmail.com
*************

If you need to make any changes to your information above, please contact us at android-market-seeding@google.com as soon as possible. Otherwise, you should receive your phone in 2-4 weeks!

On behalf of the Android team,
Thanks, and happy coding!

Google, Inc.
1600 Amphitheater Parkway
Mountain View, CA 94043

by HydTech at March 08, 2010 02:00 AM

March 07, 2010

Apple Macbook Theme for aHome on android

Prerequisite/Works with either of the following:
aHome
dxtop
aHome mini
aHome Lite
PandaHome
Freshface
openHome full






by HydTech at March 07, 2010 10:45 PM

Getting root on your new Nexus One Android Google Phone

The Nexus one was rooted before it even got released. Paul at modaco forums showed us how to perform this hack. I’ll try to simplify the method here.

1. First unlock your bootloader if you have a T-mobile Nexus One (this voids the warranty) or get an unlocked version from Google for like $550:

a. download fastboot
b. open terminal or command line and type
– Windows fastboot-windows oem unlock
– Mac ./fastboot-mac oem unlock
– Linux ./fastboot-linux oem unlock

2. Rewrite the Bootloader to obtain root privileges:

a. Download either SuperBoot or InsecureBoot and extract. (The difference is that with the insecure boot you won’t make any changes to the system and you would have to launch su manually)
b. Put the device in bootloader mode:
– Turn off the phone and restart holding the trackball.
c. Flash the bootloader:
– Windows = double click the windows bat file
– Mac = open terminal and cd to the directory containing the file. type
chmod +x install-superboot-mac.sh
./install-superboot-mac.sh

– Linux = open terminal and cd to the directory containing the file. type
chmod +x install-superboot-linux.sh
./install-superboot-linux.sh

Now you should have root!

Rooted Nexus One Google Phone
Pic courtesy of Stericson.

by HydTech at March 07, 2010 10:45 PM