Android multiple version support : specific version folder error

I'm trying to make custom Notifications in Android, following that link :

This tutorial explain that we need two files for styling notification : values/styles.xml and values-v9/styles.xml. (I develope on api level 7)

The second file must contain things like

<style name="NotificationText" parent="android:TextAppearance.StatusBar.EventContent" />

But with this, eclipse doesn't allow me to compile : "Error retrieving parent for item : no ressource that matches the given name 'android:...' "

Everythings is okay when I changed the API level to 9.

Did I missed something in Android multi-version programming ?


You need to target API level 9 but set the minimum API level to 7.

<uses-sdk android:minSdkVersion="7" 
      android:targetSdkVersion="9" />

Need Your Help

WebDev: What is the best way to do a multi-file upload? web-applications file-upload

I want (barely computer literate) people to easily submit a large number of files (pictures) through my web application. Is there a simple, robust, free/cheap, widely used, standard tool/component ...

How to 301 redirect one page of a site to another page in a sub-directory using .htacess?

.htaccess redirect directory

I am migrating a site, but the new site is an "addon" domain in cPanel which is filed as a sub-directory of the main site.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.