Android Gallery pictures are blank

I am not sure when this started to happen, but for some time I have been unable to use the Gallery app on my Google Nexus S (Android 4.0.4) phone to view my Picasa albums. It shows all the album names and how many pictures each album contains, but the pictures themselves are invisible. Each shows as a dark grey rectangle only. Only the “Camera” and “sdcard” albums (i.e. local pictures on the device) display correctly.

I tried all the fixes I could find, including these steps:
– Manage Apps, Gallery, Force Stop, Clear data
– Manage Apps, Google+, Force Stop, Clear data
– Manage Apps, Camera, Force Stop, Clear data

This didn’t do anything for me. It re-synced and showed the same blank images again.

So far the best solution has been to install the free app “Just Pictures!”. Upon connecting it to my Google identity, it initially showed only my public albums, but an article in their knowledge base explained how to add login credentials to enable it to manage private albums, too and after that I could view them all.

If anybody else figures out a way to fix the original Android Gallery problem, do let me know!

Google Picasa web prices

Yesterday I was going to upload a set of pictures to Google’s Picasa Web from my bicycle trip the day before, only to get a surprise.



Picasa 3 popped up this message and asked if I wanted to upgrade to more space:

You are currently using 21849 MB (100%) of your 1024 MB

Was I suddenly unable to add new pictures? Why just now? It all turned out to be rather benign, see below.

Almost two years ago I had purchased 80 GB of storage space for $20/year, but then found that even after I uploaded gigabytes of images and videos, it was still only showing as using a fraction of a GB. I then found a post that explained that only images bigger than 1600×1200 pixels (2 MPx) and videos longer than 10 minutes counted towards the purchased limit. That resolution is fine for online viewing: The biggest monitors in practical use are 1920×1200, which is only 2.4 Mpx. Uploading at 3 Mpx or more would have no practical benefit and any prints I’d do I’d do from the full size resolution files on the hard disk anyway.

So in March of this year I downgraded to the free plan, which has a 1 GB limit. Throughout the year I kept uploading pictures no larger than web resolution and videos shorter than 10 minutes. So I was really surprised when I got this message. First I was shocked a bit, because when I checked prizes for subscriptions, I found that while the pre-April 2012 plans like the one I let expire had charged $.25 per GB per year ($5 for 20 GB, $20 for 80 GB), the new plans were 2.4 to 4.8 times more expensive (see Google’s own comparison of the plans). Google now charges monthly and the 25 GB plan works out as $29.88 over 12 months, about $1.20 per GB. That means the new 25 GB plan is about 50% more than the old 80 GB plan I had before. Yikes! 100 GB costs $59.88 per year, or $0.60 per GB per year. The 200 GB, 400 GB and 1 TB plans are proportional in price to the 100 GB plan. While existing users of the old plan can keep renewing their plan, free users can only sign up for the more expensive new plans.

However, all turned out to be a storm in a tea cup, because nothing had really changed: When I finally clicked “OK” to continue, it uploaded my photographs as before and I could view them. All that had changed was that they tell you that you’re over the limit, but the limit only applies to images bigger than 2024×2048 pixels or videos longer than 15 minutes. If you’re above the 1 GB limit as a free user, you only lose the ability to uploaded images bigger than 2024×2048 pixels (they will automatically be scaled down) or videos longer than 15 minutes, which I don’t really need.

I guess they decided to switch to heavier sales tactics to better monetize their service, as after all Google is a commercial company serving their share holders and not just their customers.

What is Skipity and why is it in FireFox?

I mostly use Google Chrome these days, but still have Mozilla FireFox installed as a browser, which used to be my standard browser before I switched to Chrome.

Today I launched FireFox again and was surprised to see something called Skipity in its toolbar. Furthermore, when I tried to go to my browser custom start page (a page with my most useful links) it took me to the Skipity website. A Google search showed that Skipity comes as part of an add-on called “Download Youtube video 12.0”. I removed that add-on, restarted FireFox, opened the URL I previously had as the browser start page and went to “Tools > Options > General > Startup” to select that URL as the start page again.

Any software that changes the start page of the browser without your consent should be permanently banned from your computer!

Using Sanyo Eneloop Ni-MH AA batteries to power your mobile phone

About two years ago I started using Sanyo’s rechargeable eneloop batteries. These relatively inexpensive Nickel-Metal Hydride (Ni-MH) cells are available in both AA (単3形) and AAA (単4形) sizes. They are low self-discharge cells that keep their charge for months when not in use. I’ve bought boxes of 8 cells of either type, for use in flash lights, bike blinkies, helmet lights and Bluetooth keyboards.

They are initially more expensive to buy than regular alkaline (primary) cells, but you only need to re-use them about three times before they work out much cheaper than primary cells, while you can actually recharge them hundreds of times before they start losing significant capacity.

Here are some nice gadgets that will take them, which I found sold in convenience stores here Japan.

These little cases (by alicty.co.jp) take power from two or three regular alkaline AA or Ni-MH AA cells and provide a USB port for powering mobile phones and other small gadgets with a USB power cable. As you would expect, the three cell version is slightly more powerful, looking to my Google Samsung Nexus S as an AC charger (i.e. it provides more than 500 mA). For the two cell version, the phone shows “charging (USB)” as the status, i.e. it can draw up to 500 mA. The two cell version has a USB-A socket (female) for generic USB cables while the three cell version comes with an integrated micro USB (male) cable. A very similar concept has been around for a while as the MintyBoost.

The nice thing is, if you carry enough pre-charged eneloop cells with you, you can swap cells as needed and have virtually unlimited power. You could even buy primary cells to top up if desperate (one set came bundled with each device), but they would end up costing you more than re-usable eneloop cells in the long term. I’ll carry some Ni-MH cells as spares on long bike trips or hikes, which could come in handy with these little cases.

UPDATE 2012-04-04: I also tried using this adapter with alkaline (primary = non-rechargable) AA cells and it goes through them quite rapidly. Alkaline AA batteries have a notoriously poor performance in high drain applications because of their high internal resistance. You’re much better off sticking with Ni-MH batteries such as Sanyo Eneloop!

It says on the pack that a set of 3 AAs will boost the charge state of a smartphone battery by 30-40%, i.e. it would take you about 3 sets (9 cells) to fully recharge an empty battery. Or put another way, if the phone lasts 5 hours on one charge doing whatever you’re doing, you will consume a set of fresh AAs every 100 minutes to keep it topped up. To provide 500 mA at 5 V (2.5 W) on the USB connector at 80% efficiency would draw 3 W from the batteries, or 700 mA at 4.5 V (3 x 1.5 V). At that kind of load, an alkaline battery might only supply a quarter of its rated capacity, which is normally measured at a much smaller load (which is OK for alarm clocks, TV remote controls, etc. but not high powered electronics like digital cameras or smart phones).

Google privacy and account cancellations

After Google announced its new privacy policy to take in effect on March 1, 2012, some people announced their intention to cancel their Google accounts. In a Washington Post online poll almost 2/3 of readers said they would cancel their accounts due to privacy changes. My answer to that is: Oh, really?

Despite what the self-selecting samples of voters on that straw poll suggests, I doubt we’ll hardly see any significant response to the new policy. It won’t even be a blip on Google’s radar screen. I think it is safe to bet that most users of the Google+ service also have Facebook accounts, whether they use them much or not. Facebook and its history of data privacy (or lack thereof) is not exactly a benign alternative to anything Google offers. I can not see people stop using Youtube, cut themselves off from their Gmail accounts and switching to what, Yahoo or Bing for web searches? The fact remains, Google may not live up to its “do no evil” credo at all times or forever, but most of us have even less confidence in companies like Facebook or Microsoft.

Google’s move is all about more clicks, i.e. more advertising revenue, which is their life blood. If they can show better targeted ads on web searches based on what you write about in Gmail or watch on Youtube, that’s more clicks that their advertisers pay for.

What worries me is if their data gets opened to the NSA, police, etc especially under the loose rules of something like the Patriot’s Act. Inside the US the constitution has been eroded further and further over the years, while its protections have never applied to most fellow humans who do not happen to be US citizens, as far as the US government is concerned. That is not a problem specific to Google latest move though. It’s something that ultimately only US voters can solve.

GPS-logging my bike rides

Five weeks ago I started logging my road bike rides, runs and mountain hikes using the GPS in my Google Nexus S Android phone. I use the iMapMyRide app which requires Android 2.1 and later (of course there’s also an iPhone version).

Start the app, a few taps on the screen and it starts recording. You can pause the recording any time, say if you stop for food or rest. When you’re done you can easily upload the complete route with GPS coordinates and timing to the MapMyRIDE.com website. Besides bike rides you can also use the app for hiking, running or walking.

As it records it displays basic map information, so it can be used for simple navigation too, but most of the time I relied on Google Maps for that.

Afterwards you can view the workout on your PC. It will show altitudes along the route, including total gain. It shows average speeds for each km of progress. It calculates how many kcals you used based on the route, your weight and your age.

A calendar view shows all days on which you exercised, with distances for each workout, weekly totals and monthly totals. This can be a powerful tool to keep up a certain level of exercise on a regular basis.

Battery usage

As with many mobile applications, battery life is of concern to users. So far my longest recorded hike was 5 1/2 hours and my longest bike ride was 4 1/2 hours. I have not run out of power yet, but I’ve had the battery low warning pop up on occasion.

There are a few things you can do to optimize power usage. I make sure to disable WiFi and Bluetooth to minimize power usage. If I am in areas without mobile data coverage, such as high on a mountain I switch the phone into “airplane mode”, which will still let it receive GPS data but it won’t download map data (which it can’t anyway without a nearby cell phone tower). Disabling these wireless connections prevents the phone from wasting energy on trying to reconnect.

It makes a big difference how much you use the LCD screen. If you often turn it on to consult the map for a new or unknown route that will eat battery life.

In order not to have to worry too much about that and to be able to record longer and further rides and hikes, I got myself a cheap external Li-ion battery on Amazon Japan, into which I can plug the USB cable of my Android phone for extra power. I paid JPY 2,380 (about $30) including shipping. Its capacity is listed as 5000 mAh and it has two USB output ports, plus one mini-USB input port for recharging. It comes with a USB cable for charging, a short spiral USB output cable and 10 adapters to connect it to different phone models (including the iPhone and iPod). Because of the standard USB ports you can use any existing USB cable that works with your phone. It’s like running your smartphone off power from your computer.

The device is about the weight and size of my phone. It came charged to about 60%. It should take a couple of hours to fully recharge it from empty.

If fully charged it should theoretically provide three complete charges for my mobile phone, which has a 1500 mAh battery inside, thereby quadrupling the length of rides I can record. Most likely, I will run out of energy long before my battery does 🙂

My longest distances with MapMyRIDE so far:

  • Bike ride: 71 km, 560 m elevation gain
  • Mountain hike: 14 km, 1020 m elevation gain
  • Run: 10 km in Tokyo

A few rough edges

While the iMapMyRIDE+ app feels fairly solid, it will need fixes for a few problems.

The major issue for me is that the app and the website don’t see eye to eye on time zones. For example, if I record a ride at 17:00 (5pm) to 18:00 (6pm) on a Sunday, the recorded workout title will include the correct time. However, if I view that workout on the computer’s web browser, it is shown on the calendar as having been recorded on the following day (Monday). If I check the details, the start and end times are listed as 8am (08:00) and 9am (09:00): Wrong day and off by 9 hours.

Probably not by coincidence my time zone (Japan Standard Time) is 9 hours ahead of UTC. It’s like the app sends up the start and end time in UTC but the website thinks the data is local time. Yet for determining the date it seems to add those 9 hours again, which takes it beyond midnight and Sunday gets turned into Monday.

I can manually correct every single workout from the website, which also fixes that date on the calendar, but then the app displays the wrong time, which I am prepared to simply ignore.

When I enter my height on the website and then view my details on the app, I am 2 cm shorter than I entered, perhaps as the result of my height having been converted from metric to imperial and back to metric with numeric truncation.

I wish the site would support 24 hour clocks, not just AM/PM. I also wish the site would let the metric size to be entered as cm, not just m and cm separately (probably a hangover from code written for feet and inches).

Note to the app developers out there: The world is much bigger than the US and most of it is metric.

UPDATE 2011-12-13:

I have used the Li-ion battery on two weekend bike rides now. One was 93 km, the other 101 km in length. In both cases I first used the phone normally until the remaining charge level was heading towards 20% (after maybe 4 hours), then I hooked it up to the 5000 mAh battery and continued the ride. The longer of the two rides was about 8 hours, including lunch and other breaks. At the end of the 101 km ride the phone battery was back up to 75% charged, while the external battery was down to 1 of 5 LEDs, i.e. close to empty.

I wasn’t as careful to conserve power with the external battery hooked up. My phone is configured to not go into sleep mode while hooked up to a USB cable, unless I manually push the power button. That’s because I also use it for Android application development, where it’s controlled from a PC via the cable. I should really turn that developer mode off on rides to have the screen blank after a minute as usual even when getting external power. Total capacity with the external battery probably at least 10 or 11 hours, more if I put the phone into “airplane mode”, which disables map updates and hence navigation.

My headlight currently consists of a twin white LED light using a pair of CR2032 batteries that I need to replace every now and then. It’s not very bright, especially where there are no street lights. Probably next year I’ll upgrade the front wheel using a Shimano DH-3N72 dynamo hub,

which can provide up to 3W of power while adding very little drag. A 6V AC to USB adapter will allow me to power USB devices like my phone and the headlights from this without ever having to buy disposable batteries or connecting anything to a mains charger.

UPDATE 2012-01-02:

I have had the front wheel of my Bike Friday rebuilt with a Shimano DH-3N80 dynamo hub. The old 105 hub is now a spare while the rim with tube and tyre were reused. Here is the bike in our entrance hall:

Closeup view of the hub with AC power contacts:

I purchased a USB power adapter made by Kuhn Elektronik GmbH in Germany. It weighs 40 g and measures 8 cm by 2.5 cm. It provides a standard USB-A socket which fits standard USB cables such as the one that came with my Google Nexus S:

USB power adapter with Google Nexus S:

UPDATE 2012-03-14:

At the end of January I started using Strava for tracking rides, in addition to MapMyRides (MMR). I stopped using the MMR app because there is no way in MMR to export GPX files with time stamps, so you can not track your speed or performance on any sites besides MMR. They lock in your data. Instead I either record with Strava on my Android 4 Nexus S or with Endomondo on my Android 1.6 Google Ion. That way I can generate GPX files that will upload to Strava, Endomondo, MapMyRide or just about any other site. The automatic competition feature of Strava is superb. MMR’s best features are its calendar view with weekly and monthly statistics and its mapping feature for planning rides. If those were merged with what Strava can do, it would be a terrific GPS cycling app and site.

Minoura iH-100-S phone holder for Nexus S

In my blog post about my bike ride up Mt Fuji Subaru line I mentioned the Minoura iH-100-S phone holder that I use with my Google Nexus S Android smartphone, which I use for Google Maps and the iMapMyRide application to track my cycling routes.

In the local bike shop I was was considering either the Minoura or the Topeak Phone Drybag, which is designed specifically for the iPhone, but also is big enough to hold the Nexus S. It offers rain protection, while with the Minoura iH-100-S the phone is exposed.

I didn’t go for the Topeak because it looked too iPhone-specific: The transparent cover extends to the home button in the bottom centre, but my Nexus S has four buttons side by side (Back, Menu, Search, Home), which would have been obscured.

My solution for rain is simple: If it looks rainy, I’ll wrap the phone in cellophane (for kitchen use, the local leading brand in Japan is Saran Wrap), which does the job. I also keep a small transparent plastic in my backpack, for emergencies.

The Minoura works well and grips the phone firmly if used properly. Make sure the phone firmly touches all three support points: the clamps on the left and right and the corner hook. I have yet to lose it, but the fact that the two clamps at the left and right snap apart if the release lever is pulled did make me a bit nervous. I always visualized this happening unintentionally, say if the release mechanism wears out or becomes brittle with UV exposure and breaks one day.

My peace of mind solution for that is a small rubber band which I keep attached to the holder. I twist it around once to give it more tension and then wrap it around the two clamps, which keep it away from the touchscreen, but it provides enough friction and tension that even when I pull the release lever there’s no way the phone would fly away.

Auto Unlock application

Another issue with using the phone for navigation was the Android screen lock. When the screen blanks due to inactivity, I need to push the power button to turn the screen back on, which is fine, but then I also need to slide a dot across the screen to unlock the desktop. If find that too distracting, because I prefer to keep my eyes on the road as much as possible. I found an application in the Android market called “Auto Unlock”, which does away with the need for the sliding move – most of the time. The trial version can be used for 5 days for free. The paid version is $1.29.

The results with Auto Unlock were a bit uneven. The application needs to be manually restarted after the phone is powered down, a minor problem. When it’s active, sometimes I still needed the slide, other times I didn’t. I’m not sure what made the difference. It’s very helpful as long as it works.

UPDATE (2011-10-15:

After the trial edition of “Auto Unlock” expired I switched to another app called “No Lock”. I am happy to say that No Lock works more reliably, though it has one minor drawback: unlike Auto Unlock it does not use the proximity sensor to still require an unlock swipe if it’s in your pocket. If you accidentally push the power button while the mobile is in your pocket, that may unlock it already. “Pocket-dialling” of calls is a possibility. For my use with the bicycle holder that is not a problem and it’s easy to switch between “No Lock” and “Lock” mode in the app.

Good bye, Dennis Ritchie!

Back in the early 1980s I learnt programming in C by reading “Kernighan and Ritchie”, as everyone around me called this book then: “The C programming language” by Brian Kernighan and Dennis Ritchie.

It is no exaggeration to say that C and its derivatives are to computers what hydrogen is to the universe.

Dennis Ritchie, who passed away today at the age of 70, was a co-creator of both the C programming language and of the Unix operating system, after which open source Linux is modelled today. Mac OS X and iOS are direct descendants of Unix (NetBSD), while Android, which runs on millions of smart phones, is based on Linux. Virtually every operating system that matters these days (including all versions of Microsoft Windows) is written in C or C++ or another C-derived language.

Dennis Ritchie may not have become as much of a household name as Steve Jobs, but the software he created probably brought about much more fundamental changes than anything Steve Jobs did, and in fact most of what Jobs created would have been unthinkable without either C or Unix.

See also:

Google Photos links to Google+ Photos instead of Picasa

I am a Google Picasa user who earlier this year also joined the Google+ social network. I use Google Picasa to share photographs and videos with friends and family. Google+ makes it easy to share pictures and albums with specific selected circles of friends.

Morning light on Mount Fuji

Until recently, I could conveniently launch the Picasa Web Albums site by clicking “Photos” in the Google navigation bar at the top of, for example, Gmail. A few days ago this changed and the link now takes me to the Google+ photo viewer. For me the new behaviour is inconvenient, because there are many things I can do with my albums in Picasa Web Albums that I can’t do from the Google+ photo viewer (which is really just meant for viewing and little else).

If you’re missing the Google link to Picasa, the simple workaround for now is to bookmark this URL:

https://picasaweb.google.com/home

and use it whenever you want to invoke Picasa Web Albums. Apparently, Google is working on integrating the oogle+ photo viewer with Picasa Web Albums more closely, so eventually the Picasa functionality will become available under “Google Photos” again.

On the positive side, it appears that the integration between Google+ and Picasa Web Albums has practically eliminated storage limitations for Picasa users. Facebook already offered unlimited picture uploads as long as each album set was limited to 200 pictures. With Picasa and Plus, only pictures above 4 Mpx or videos above 15 minutes count towards the limit. As Picasa by default resizes all uploaded pictures to 1600×1200 (which is 1.9 Mpx), this means de-facto unlimited storage for most users.

My new Google Nexus S on Softbank Mobile

I just got myself a Google Nexus S / Samsung Nexus S with Android 2.3.6 (Gingerbread). Several of the applications I had wanted to run on my previous smartphone (Google Ion a.k.a. HTC Magic, Android 1.6) were only available for Android 2.1 or later. I would have had to reflash the phone with something like CyanoGenMod to get a newer version, since Google did not make any updates available for the old hardware.

The new phone’s screen is great. The WXVGA resolution of 800×480 (“Wide eXtended VGA”) provides much more usable space than the HVGA 480×320 (“Half size VGA”) of the Google Ion or the iPhone 3GS for that matter, though it is a little less than the 960×480 of the current iPhone 4. Talking of which, the Samsung is only a few millimetres wider and taller but also a little lighter than the Apple product.

There are several versions of the Nexus S. Some have the AMOLED screen, others the S-LCD. I picked the AMOLED version (GT-I9020A) which was about $15 more expensive but has better image quality than the S-LCD version (GT-I9023).

Setup was very easy, once I figured out how to pull off the back cover to get access to the battery and SIM slots (there was no paper owner’s manual, which instead you have to download as a PDF).

I simply moved the Softbank Mobile SIM from my HTC to my Samsung, put back the battery and switched it on. Voila, it was working on the Softbank network, and I was immediately able to send and receive SMS, unlike the HTC where I manually had to enter parameters for an access point that I had to Google in a thread in some online forum. The downside of the effort to make things work smoothly for most customers was that using a Softbank SIM also changes the language to Japanese. Sure, most Softbank customers are native Japanese-speakers and they will be helped by switching language, it wasn’t what I wanted. Luckily I could manually switch it back.

The GPS of the Samsung is much better than in the HTC, which could not get a location if I was inside my house and wanted to get directions before heading out for a train or bike ride. The Nexus GPS gets the position quickly and much more accurately. With the Ion, when I was manoeuvring the charming back streets of Shimokitazawa (which consists mostly of two story houses, no big skyscrapers to block satellites), not only might it put me two blocks away from where I was, it would not even get the directions right when I was trying to figure out which way was North and South. It worked OK only with lots of open space, such as when cycling along big roads and in the countryside.

One very neat touch is that the Gallery application where you view your camera shots is integrated with Google Picasa, which I use for hosting all pictures from my main camera, a Canon S95. So it doesn’t matter if I’ve taken a shot with the Samsung or with the Canon, it’s always there to show someone when I want to.

I’m still discovering new features and will update the blog as I go along.

More information:

UPDATE 2011-09-10:

I did still have to manually set up an APN for Softbank after all, because with the defaults, even though I could send and receive phone calls and SMS, I could not access the web or use Gmail or Google Maps unless I was on a WLAN. Here is what is required:

Go to: Settings > Wireless & networks > Mobile networks > Access Point names. The initial list was empty. Push the menu button and select New APN. Set the following parameters (leave all settings not mentioned at their initial value):

Name:Open Softbank
APN: open.softbank.ne.jp
Port: 8080
Username:opensoftbank
Password:ebMNuX1FIHg9d3DA
MCC: 440
MNC: 20
APN type: default

After that I could step outside and walk to the end of the road (out of reach of my WLAN) and still browse the web or use Google Maps. The “3G” marker will illuminate in the status bar at the top. Make sure you have the Smartphone data plan from Softbank to limit your data charges, and to have data roaming disabled so other provider networks don’t get used for (non-flat rate) data if you’re out of reach of Softbank.