Android

Android–Finding your SDK debug certificate MD5 fingerprint using Keytool

I recently upgraded to a new development machine, which means the certificate used to sign my applications during debug changed. Under most circumstances you’ll never notice a difference, but if you’re developing apps using Google’s Maps API you’ll find that your old API key no longer works with the new certificate fingerprint. Google's instructions walk you through retrieving the MD5 fingerprint of your SDK debug certificate - the certificate that you’re probably signing your apps with before publishing, ......

Dallas event: AT&T Mobile App Hackathon

Saturday, November 5, 2011 at the AT&T Foundry in Plano, TX Dev-ing. Mobile. Cloud. APIs. Good food. Awesome prizes. Interested in building your own app? This hackathon will introduce you the the latest cutting edge tools to deploy your own app with a website backend, fully hosted in the cloud. Alternatively, you can come pitch your idea and scout for developer talent, who can help you build your app! Mobile App Hackathon is an event produced by the AT&T Developer Program and Apigee that ......

Android: Sharing an options menu between mutiple activities tutorial

Say you've got an app that has multiple activities, and you want each activity to use the same options menu (the menu that appears when the user taps the MENU button). Rather than repeating the Inflater and ItemSelected code on each activity, just create a new activity class and have all your other activities extend it rather than Activity. To start, create an xml layout for your menu (in the res/menu directory): <menu xmlns:android="http://schem... <item android:id="@+id/new" ......

Review–Build Android and iOS apps in Visual Studio with Nomad

Nomad is a Visual Studio extension that allows you build apps for both Android and iOS platforms in Visual Studio using HTML5. There is no need to switch between .Net, Java and Objective-C to target different platforms - write your code once in HTML5 and build for all common mobile platforms and tablets. You have access to the native hardware functions (such as camera and GPS) through the PhoneGap library, UI libraries such as jQuery mobile allow you to create an impressive UI with minimal work. ......

Switching between Activities (screens...) in Android

This tutorial will show how to quickly create an Activity, and switch to another Activity using a ListView or a page full of buttons. .Net folks can think of an Activity as a concept similar to a Form in a .Net Windows app. Each Activity you create is a new page in your app. An activity has essentially four states (blatantly stolen from the Android dev guide): If an activity in the foreground of the screen (at the top of the stack), it is active or running. If an activity has lost focus but is still ......

Android–Setting up a Kindle Fire emulator

Developing for the Kindle Fire is pretty much the same as developing for any other Android device (aside from Amazon’s long review process…). Amazon’s developer FAQ lists most everything you need to know, but I’ve stolen summarized it here: Will my app work on Kindle Fire? For your app to work on Kindle Fire, it needs to be compatible with the device's specifications. At a high level, it must be optimized for non-Google Mobile Services (GMS) Android 2.3.4 (Gingerbread) and a 7" screen with a resolution ......

Android tutorial–Adding images to your custom multi-line ListView

In a previous post I showed how to create a custom Android ListView that was bound to an ArrayList. I've had a few people ask how to include images in the ListView, so here it is. We’ll do this by adding an ImageView to the repeating layout (each row of data) and populating it at the same time the name and other information are populated. First, start with a working version of the previous tutorial. You can download the full Eclipse file here: ListViewBlogPost.zip The first thing we're going to do ......

Book Review: Kindle Fire: Out Of The Box (O’Reilly)

The Kindle Fire, like a lot of devices these days, does not come with a user manual. Kindle Fire: Out Of The Box covers the basics of setting up and using your Fire. This 76-page book is divided into 6 chapters: Get to Know Your Kindle Fire Set Up Your Fire Books, Newsstand, and Docs Music and Video Apps Web and Email The book is loaded with detailed, annotated screen shots, which makes it easy to figure out exactly what you should be seeing on your Kindle's screen. However, this comes at a price ......

Android–Create a ListView with rounded corners

In a previous post I showed how to create a custom multi-line ListView bound to an ArrayList. Let’s make it a little more visually appealing and give each item some rounded corners. If you followed the previous how-to you wound up with something that looked like this: To put each ListView item (name, address & phone) into its own rounded-corner box, create a new file in your res/drawable directory called border.xml, and paste in the following code: <shape xmlns:android="http://schem... ......

Android: debug certificate expired error

I started up Eclipse today, created a new project, and immediately had an error before I had changed a single line: Error generating final archive: Debug Certificate expired on 11/12/11 When installed, the Android SDK generates a "debug" signing certificate for you in a file called "debug.keystore". Eclipse uses this certificate rather than forcing you to create a new one for every project. In older versions of Eclipse, the certificate was only valid for 365 days, but as I understand it the default ......

Full Android Archive