Posts tagged android

Sensors

Ever since I heard that Android devices come with a wide array of sensors, I have been excited about the possibilities. I am a firm believer of the ubiquitous computing vision and all the consequences it brings, including sensors that can be accessed wirelessly. Some parts of the vision (e.g. self-powering microsensors embedded into wallpaint) are still futuristic but mobile phones can be equipped with such sensors easily. Google has a strategy about sensor-equipped mobile devices where the sensor values are processed by powerful data centers. As I did not have an Android device before, I could not play with those sensors. Not anymore! (again, many thanks to those gentle souls who managed to get this device to me).

Sensors are integral part of the Android user experience. Acceleration sensor makes sure that the screen layout changes to landscape when you turn the device (open an application that supports landscape layout, e.g. the calendar, keep the device in portrait mode, move the device swiftly sideways to the right and if you do it quick enough, you can force the display to change to landscape mode). Proximity sensor blanks the screen and switches on the keylock when the user makes a phonecall and puts the device to his or her ear so that the touchscreen is not activated accidentally. In some devices, temperature sensor monitors the temperature of the battery. The beauty of the Android programming model is that one can use all these sensors in one’s application.

Click here to download the example program.

A very similar application called SensorDump can be found on Android Market. Our example program is inferior to SensorDump in many respect but has a crucial feature: it can log sensor values into a CSV file that can be analysed later on (use the menu to switch the capture feature on and off). This is not much important with e.g. the proximity sensor which provides binary data but I don’t believe one can understand at a glance, what goes on with the e.g. accelerator sensor during a complex movement just by looking at the constantly changing numbers on the device screen.

I can see the following sensors on my Nexus One.

BMA150 – 3-axis accelerometer
AK8973 – 3-axis Magnetic field sensor
CM3602 – Light sensor

Some sensors are projected as more than one logical sensor, for example the AK8973 is also presented as an orientation sensor and the CM3602 as the proximity sensor. This is just software, however, these duplicate logical sensors use the same sensor chip but present the sensor data in different format.

Let’s start with the most popular sensor, the accelerometer. This measures the device’s acceleration along the 3 axis. A logical but somewhat unintuitive property of this sensor is that the zero point is in free fall – otherwise the Earth’s gravity acceleration is always present. If the device is not subject to any other acceleration (the device is stationary or moves with constant speed), the sensor measures the gravity acceleration that points toward the center of the Earth. This is commonly used to measure the roll and the pitch of the device, try the excellent Labyrinth Lite game on Android Market if you want a demonstration.

The graph below shows sensor data in two scenarios (note that all the data series can be found in the download bundle under the /measurements directory). The red dots show the value of the accelerometer when the device was turned from horizontal position to its side, right edge pointing to the Earth. The green dots show the sensor values when the device was tilted toward its front edge so that at the end the upper edge pointed toward the Earth.

This is all beautiful but don’t forget that the acceleration sensor eventually measures acceleration. If the device is subject to any acceleration other than the gravity acceleration (remember the experiment with the portrait-landscape mode at the beginning of the post), that acceleration is added to the gravity acceleration and distorts the sensor’s data (provided that you want to measure the roll-pitch of the device). The following graph shows the accelerometer values when the device was laying on the table but I flicked it. The device accelerated on the surface of the table and the smaller blue dot shows the value the accelerometer measured when this happened. As if the device was tilted to the right.


The second sensor is the magnetic field sensor, the compass. As far as I know, this sensor is not used for anything by the base Android applications, it is all the more popular for all sorts of compass applications. The magnetic sensor measures the vector of the magnetic field of the Earth, represented in the device’s coordinate system. In 3D, this points toward the magnetic north pole, into the crust of the Earth. The following graph shows the scenario when the device was laying on the table but was rotated in a full circle on the surface of the table.

Even though the magnetic sensor is not subject to some unwanted acceleration like the accelerometer, it is subject to the influence of metal objects. The following graph shows the values of the magnetic sensor when the device was laying on the table but after a while I put a small pair of scissors on top of the device. You can see that there are two clusters of sensor values: one with the scissors, one without.


The third sensor is the light sensor that doubles as proximity detector. The light sensor is more evident but the proximity detector deserves some explanation. The proximity detector is really a light sensor with binary output. If blocked, it emits 0.0, otherwise it emits 1.0. The photo belows demonstrates the location of the sensor and how to block it.

App Engine Community Update

It’s been a while since the last community update post, and you’ve probably been wondering what the App Engine community has been up to over the holiday period. There’s been a lot of activity, so without further ado, here’s your community update.

Open Source Projects

There were a lot of new App Engine Open Source projects released since the last update, for both Java and Python, and including everything from libraries to complete working apps.

gdispatch is an extension to the Python webapp framework that allows you to embed routes alongside your request handlers. SUAS is a Python library that provides straightforward authentication and session management for App Engine apps. If you’re looking for a complete, lightweight framework, tipfy might be what you’re looking for – it bills itself as “a cute little Python framework for App Engine which follows the basic concepts of web.py and webapp”.

The Java community has been even busier, with members releasing simpleds and Objectify, both of which provide alternative interfaces to the App Engine datastore for those of you who prefer systems designed specifically with App Engine’s datastore in mind over JPA or JDO. For your unit testing needs, there’s Kotori Web JUnit Runner, which allows you to run JUnit unit tests in production. Finally, appleguice provides a sample application demonstrating how to integrate Guice dependency injection with GWT and App Engine.

Interesting Apps

The last few months have also seen a plethora of App Engine based apps released, many of which provide source code so you can deploy your own, or contribute to their development. We’ve picked out a few that we think you’ll find of interest.

JobTracker is a Python app that provides an interface to allow tracking working hours and tasks in your team, and is licensed under the APL 2.

Nimbits provides a time series service on App Engine, allowing you to record regular measurements – be they server latencies or fishtank temperatures – and process and export them via APIs or a web interface.

nxdom is an interface designed to make picking the domain name for your next project easier; it operates on lists of recently expired domains, and its Python source is freely available.

OpenShare is a new banner exchange service targeted at open source projects; it’s written in Python and is available under the GPL 2.

If you’re feeling nostalgic, z-machine lets you play interactive text games through a browser interface, or over XMPP. You can even save a game in one interface, and continue playing in the other. If you’re inspired by this, the Parchment project implements a z-machine interpreter in pure Javascript.

Worried about your app when out and about? App Engine Watch is an Android app that lets you monitor your app’s quotas from your phone.

A lot of projects have centered around Twitter integration, with Pulse of the Planet letting you visualize tweets in real time on a map, while Lazytweet provides a friendly interface for convincing other people to do your work for you (or doing their work for them, if you’re feeling generous). Tweet Engine makes tweeting using a shared Twitter account easier by allowing you to share an account with your group without needing to give them all the account password. It’s also open source – you can get the source here and deploy your own, or just use the live instance at http://www.tweetengine.net/.

If that’s still not enough microblogging for you, TypePad has released TypePad Motion, their open source community micro-blogging app. It’s available here.

Runtimes

If your favorite language isn’t Java or Python, that doesn’t mean you’re out of luck. As long as there’s an implementation on the JVM, you can use it on App Engine! Several projects are improving integration between App Engine and other JVM languages.

This post discusses how to use Clojure on App Engine, while this post covers using Quercus – a PHP implementation for the JRE – with App Engine task queues. Finally, if Groovy is your language of choice, definitely give the gaelyk project a look, and if you prefer JavaScript, take a look at appenginejs.

Blogging

Many bloggers continue to turn out insightful and useful posts relating to App Engine. Here’s a few that caught our eye:

If all the Twitter related projects interested you, and you’re wondering about implementing your own, this article on building feedertweeter and this article on using Twitter’s OAuth API on App Engine are probably of interest.

There’s an excellent blog post on hitching.net about practical use of geohashing for geospatial apps on App Engine.

Just about everything on the gaejexperiments blog is worth a read if you’re a Java coder. Recent posts cover topics such as using reCAPTCHA, using the Java blobstore API and using the task queue.

The Django-nonrel folks are showing some impressive progress – see their post on how to deal with noSQL databases, and read their blog for more information.

The wolfire blog has a great post on how AppScale helps prevent App Engine ‘lock-in’. If you want to learn more, this post on the IBM developerworks site goes into more detail about AppScale.

If you want to keep up with blogs, articles, and news about App Engine, the App Engine reddit should be your first port of call. And if you want to see your own post or project up here, submit it to the reddit, or mention it in the groups!

Posted by Nick Johnson, App Engine Team

[G] 5 more tips for using Google Buzz on your phone

Official Google Mobile Blog: 5 more tips for using Google Buzz on your phone

Last week we shared some tips for getting the most out of Google Buzz for mobile. We’re back with more ways to help you become a power buzz poster and find the most interesting buzz while you’re on the go. Try these 5 tips for the Google Buzz for mobile web app (buzz.google.com) on your iPhone or Android 2.0+ device.

1. Post buzz with your voice.
You can post your public buzz simply by speaking it. From the Google Mobile App for iPhone or Quick Search Box on Android, select the voice search icon, say “post buzz” followed by the text you’d like to post, and watch your words appear. Before your post is sent, you’ll be able to edit it or change its tagged location.

2. Filter the Nearby tab for a specific place.
From the Nearby tab, you can easily filter buzz by a specific place, such as a sushi restaurant you’re about to walk by, to only see posts from that place. Open the menu showing nearby places, for example “Tartine Bakery and 20+ other locations nearby,” and then select a specific place from the list. Now, you’ll see all the public buzz anyone’s ever posted from that place or you can quickly create a post that is tagged with the place. To go back, just open the same menu and select your current location shown with the blue dot. You’ll once again see all the recently posted buzz around your location.

3. Search!
As you’d expect from any Google product, Google Buzz for mobile has a powerful search feature that lets you search all public buzz for topics that interest you. Open the menu or just select the magnifying glass icon to see the search bar. You can also search specifically for nearby posts by checking the “Search nearby” box before submitting your search (it’s already checked if you’re in the Nearby tab). Now you can find out what people around you are saying about the closest pizza spot or a traffic jam.

4. Post from your city-level location.
Tagging a post with your location is easy and adds context to your buzz posts. Sometimes, your post isn't about a specific place or you'd rather not share your exact location. You can easily show your city-level location, so your post has a general city location tagged and will be browsable in the Nearby view and Maps Buzz layer. When posting, just select the “>” in the location box, scroll down, and select the city-level location option.

5. Refresh your location.
On the other hand, sometimes you really want your location to be exact. When you visit the Nearby tab or want to tag your post with a location, Google Buzz will try to get your location using your phone’s GPS. If you’re not happy with the location accuracy, you’re moving, or you’re just stepping outside to get a GPS signal, hit the ‘refresh’ icon to tell the Google Buzz web app to get your location again. You can also learn more about troubleshooting location problems.

Stay tuned for more tips! Visit our Help Center to learn more or tell us your feedback and questions in our Help Forum. You can also give us suggestions and vote on other people’s on the Mobile Product Ideas page.

Posted by Chris Nguyen, Product Marketing, Google Mobile

URL: http://googlemobile.blogspot.com/2010/03/5-more-tips-for-using-google-buzz-on.html

Microsoft plants Bing on Google-free Chinese Androids

Motorola will soon push Microsoft’s Bing search engine onto Android phones in China, after announcing an alliance with the Redmond software giant that will see Bing appear on Androids across the globe.

In the wake of this Moto-Microsoft pact, Google has confirmed with The Reg that it has barred the use of its mobile applications on Android phones from Chinese carriers, leaving the likes of Motorola to use alternatives.

On Thursday morning, Motorola said that before the end of the quarter, it would add a Bing browser bookmark and a Bing search widget to new phones based on Google’s open source OS as well as handsets already in the market. Motorola did not immediately respond to a request for comment, but it appears that Bing will not be the default provider on the devices’ browser search box.

The pact will also put Microsoft’s Bing Maps service on Motorola phones.

Motorola’s announcement comes amid ongoing confusion over Google’s position in China – and thus Motorola’s relationship with the Mountain View web giant. In mid-January, Google threatened to shutter its China operation in response to an alleged Chinese hack attack on its internal systems, and days later, it said that it would postpone its launch of two Android phones on the Chinese carrier China Unicom – one from Samsung and one from Motorola – saying it would be “irresponsible” to let the launch proceed.

Google says it has made the decision to “no longer” censor results on its Chinese search engine, but it continues to censor results while discussing its position with government authorities.

Yes, Android is open source. But the China Unicom phones would have been branded “with Google” a la the Motorola-Verizon Droid or the T-Mobile-HTC G1, offering tight integration with various Google mobile applications. A Google spokeswoman now tells us the company has postponed “the availability of Google mobile applications on Android devices from operators in China.”

This means that even without the Google brand, Motorola is barred from offering Google applications on its own Android handsets in the country. As Google postponed the launch of its China Unicom phones, Motorola told the world that its Chinese Android phones would allow users to choose their own search provider and that the native Chinese search engine Baidu would be among those on the list.

With its mid-January blog post on the alleged Chinese hack attacks, Google said that “over the next few weeks” it would be discussing “the basis on which we could operate an unfiltered search engine within the law, if at all.” That was eight weeks ago, and though Eric Schmidt said yesterday that “something will happen” with the talks “soon,” he said the company had “no timetable” for its discussions.

Last week, in Silicon Valley, Microsoft CEO Steve Ballmer downplayed the possibility of the company putting Bing on Android phones. “That’s a little more complicated,” he said. “Android without [Google] isn’t Android. We’re going to have to see where the Android market develops.” But just a week later, the Redmond giant has inked a global pact with Motorola on Android.

Asked about the deal, Microsoft merely pointed us back to Motorola’s press release, but as Ballmer put it, Redmond is very much interested in expanded the reach of mobile Bing through strategic partnerships. Microsoft already has inked a deal with US wireless carrier Verizon Wireless that makes Bing the default search engine on certain BlackBerries, and in this case, phone owners are unable to use their browser’s built-in search boxes with anything other than Bing.

Meanwhile, US carrier AT&T has introduced its first Android phone – the Motorola Backflip – and its default search engine is Yahoo!. Like Motorola’s China phones, this is not a Google-branded phone, and the carrier is free to modify the browser search box however it chooses.

Google Android with Indosat in Indonesia

Google Android is a big hop of Google inc that significantly made by this giant internet search engine service, well OK I want to talk about Google Android in Indonesia, all Android owners in Indonesia nowadays didn’t have an access to buying Google Android’s application itself. To get the apps , PT Indosat Tbk (local cellular provider) considering to build their own apps store in their network, it’s called iStore.

Indonesia Blackberry and Device division’s head Agung Wijanarko said Google as provider of latest Android apps allows his company to build own apps store in Japan and New Zaeland. It’s become a challenge for Indosat to get the access to Google apps. Indosat should growing the Android ecosystem from the creator (i.e Google), application developers, and users.

“ Google Mobile Service didn’t available yet, temporarily Android apps only can be downloaded at Indosat’s iStore” Agung said in the lunch-break of Android community’s workshop and gathering , at JCC Jakarta Indonesia, Sunday (7/3).

With i-store all Android users can purchasing many express premium apps like i-pay that developed by PT Indosat Mega Media (IM2) itself. The purchasing can be from vouchers or via any bank in Indonesia. This cellphone users can buy all kind of music and entertainment apps easily.

Value Added Service and Content Development Manager PT IM2 Andri Fisaterdi said that to make the i-store they spent a month to make that store already to be used. Useful apps that users can download is i-pay calculator, dictionary, dan Batavia to stay up to date with the latest local news.

by Blog network

Google Nexus One review: Firstborn (PDA, Android, tech, news, report, review, "iPhone Repair"

All droids are equal but some droids are more equal than others. Google it. You’ll get the Nexus One. There are around 50 smartphones and tablets running Android today. That’s right, out of all the offspring they fathered with the Open Handset Alliance, Google finally have one to proudly call their own.

What does it mean? Well, not that the ones we’ve seen so far are some poor half-blood droids but the Nexus One is supposed to be THE thing. For one, it’s the first Snapdragon-powered Android and it shows. The Nexus One is wickedly fast. The WVGA touchscreen is a treat to look at and it’s only the second AMOLED display to find on an Android handset. D1 video is sure to sweeten the deal too, and perhaps so will the Live Wallpapers.

Awash in rumors well before launch, the Google Nexus One was officially revealed in January 2010 and it became available right after the unveiling event. Of course, the first units were to sell only in a very limited number of countries (UK, Singapore and Hong Kong).
Anyway Google are to start shipping their Nexus One through various carriers across Europe, starting with Vodafone this spring. That’s about the time when Verizon subscribers will be getting a CDMA version of the device. Google have a phone to sell, so it’s a fair guess they’ll be seeing to it that everyone can have it. Now, will everyone want to? Let’s see.

Key features:

Quad-band GSM and dual-band 3G support
7.2 Mbps HSDPA and 2 Mbps HSUPA support
3.7″ 16M-color capacitive AMOLED touchscreen of WVGA (480x 800 pixel) resolution
Android OS v2.1 with kinetic scrolling and pinch zooming
Slim profile and some great build quality
Qualcomm Snapdragon QSD8250 1 GHz processor
512 MB RAM and 512 MB ROM
5 MP autofocus camera with LED flash and geo-tagging
D1 (720 x 480 pixels) video recording @ 24fps
Wi-Fi and GPS with A-GPS
microSD slot, bundled with a 4GB card
Accelerometer and proximity sensor
Standard 3.5 mm audio jack
microUSB port (charging) and stereo Bluetooth v2.1
Trackball navigation
Main disadvantages
No DivX and XviD video playback
No Flash support for the web browser (update is on the way)
No smart and voice dialing
Somewhat clumsy camera interface and limited camera features
No dedicated camera shutter key
Non hot-swappable memory card
No FM radio
The soft keys below the display are somewhat unresponsive
The Google phone has HTC fingerprints all over it. We just had the pleasure of the HTC Desire at the WMC and we quite liked what we saw. There’s no reason to expect less of the Nexus One – quite the contrary in fact, a little bit of nepotism only seems right.

The Google Nexus One won’t come with the HTC Sense of course, but who would’ve expected so! The Android 2.1 novelties will keep you busy enough anyway, but the first thing on everyone’s mind will be: Is there any special Google treatment the Nexus One is getting?
The latest of the Androids is in a way the firstborn, for all the good and the bad of it. It’s all in the name really: a name that will open doors but that carries a certain obligation too.
Will the Nexus One raise above its droid siblings or will it get lost in the crowd? That’s the kind of questions we’ll be trying to answer on the pages to come. You’re welcome to join: let’s see what the Google Nexus One is made of (and packed in, as well). Search Engine Submission – AddMe
_____________________
This post is sponsored by:
ASPA Mobile Phone Repair and Unlock
Unit I, No. 1, Hayr Road
Three Kings, Auckland
Tel: (09) 625-2068, Fax: (09) 625-2069
Mobile: 0211138880
Skype: aspamobile
Email: aspamobile@gmail.com

Exzeus on Hero , Droid and Nexus

htc hero 2.1
Milestone 2.0.1
Nexus One 2.1

ExZeus Arcade for Android is available exclusively at Google’s Android market for $3.99 (USD).

Xperia X10 unboxing and Android updates

by Taylor Wimberly

Xperia X10 unboxing and Android updates: ”

At this point we don’t know if any United States carrier will pick up the Sony Ericsson Xperia X10, but it wouldn’t surprise us if it shows up at this month’s CTIA (on AT&T or T-Mobile). It appears the phone is very near to release because Sony Ericsson has posted an unboxing video of the final retail packaging. Unfortunately this high-powered phone will ship with the older Android 1.6, but CNET Asia is reporting a Sony spokesperson said the X10 will be upgraded in the 2nd half of the year to a newer firmware. “It will be an Eclair variant, so it could be 2.1 or even 2.2″.

check out the official Sony Ericsson Product Blog.

Related Posts

Android Application Idea

Normally I’d write this up as an iPhone Application Idea but I think
it’s actually better suited to Android where it could run as a
background process.

Here’s the idea. Build a lightweight app that snapshots location (via
GPS) and 3G signal strength every ten seconds or so (possibly varying
sample time according to velocity) and submits the data to a webserver
that collates input from multiple users to build a detailed, high-res,
constantly updated map of 3G signal strength. Superimpose the results
on a Google Map and publish it for the greater good.

I haven’t checked to see if this is a) possible or b) original, but
I’ve been thinking about it for a while and I just wanted to get the
idea out there.

Posted via email from James’s posterous

Sony Ericsson Xperia X10 Mini Android – Finally Gets a Competitor

The Sony Ericsson Xperia X10 Mini Android is now not only the micro Google mobile phone available in the market. The Innocomm Android mobile phone is its new competitor in the market. The company recently announced that this phone will soon be launched sometime during the summer and also there will be more number of android mobile phones which will follow this model in the future.
There are several videos on YouTube where a person can witness the features that will be provided by the new Innocomm Android mobile phone. The mobile has a 3.2 inch wide screen so that the person would not have any difficulty in browsing, watching movies and taking pictures and recording videos. It also contains an eight megapixel camera so that the user can take pictures in high quality and upload them directly from his mobile phone.