Monthly Archives: September 2012

Postphone icon

Postphone Android App 1.0 release

Today version 1.0 of Postphone has been released. Nerver forget to call back again!

You can find the promotional page here.

Technically speaking:

  • it has been fully developed under Ubuntu 12.04 64bit
  • it has been written entirely using vim
  • everything has been tracked by git
  • the icon has been edited using SketchUp under wine
  • main and other icons, banners and featured images has been edited with Gimp
  • beta devices were all running CyanogenMod

 

Android

How to find Android deprecated API

The problem

When you compile android apps, sometimes you can see this message:
-compile:
[javac] Compiling 12 source files to /home/max/Projects/Android/postphone/bin/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.

Now, how is possible to find the API call which seems to be deprecated?

The solution

$ ant -Djava.compilerargs=-Xlint:deprecation debug
The above command will show you what you were searching for:
[javac] /home/max/Projects/Android/xxx/src/net/mx17/xxx/Yyy.java:212: warning: [deprecation] getNotification() in android.support.v4.app.NotificationCompat.Builder has been deprecated
[javac] Notification notif = notificationBuilder.getNotification();