Blog

Filtering all blogs archived in "December 2011"    Clear filter

Localization of your iOS application's Icon.png.

 

If you found this blog post searching for how to localize Icon.png in you iOS application, I will share with you the answer I found out which is as far as I know "You can not".
Once the application is installed, the application's icon will not change by the change of the language settings of the device.
However, you can test the localization of your icon by deleting the application, change the language settings for the device, then reinstall the application.
You will find the right icon. Since users do not change their language settings daily, I think this is good enough.
Of course the icon should be localized like the rest of resources, either by using xCode, or manually by creating the language.lproj folders, and putting the different versions of your icon there.
I hope I saved some of your time by this post.

 

Read More

Solving Serialization/Deserialization issue in Flex

When I was trying to serialize an object   in Action Message Format (AMF) , I faced a problem in deserializing it which was null object value, after some googling I found the solution:

I   preserve the class (type) of any object before encoding in Action Message Format (AMF), so that it can be deserialized when decoding the object, so  If the encoding context did not register an alias for an object's class, the object is encoded as an anonymous object. Similarly, if the decoding context does not have the same alias registered, an anonymous object is created for the decoded data.

Finally we can register class using one of the follwoing ways:

  1. using function registerClassAlias("path to your class", your class);
  2. using the metadata [RemoteClass(alias = "path to your class")]

 

 

Read More

Free Google Translate API v2 2

 Background

Google Translate API v2 is now available as a paid service only, and the number of requests your application can make per day is limited. As of December 1, 2011, Google Translate API v1 is no longer available; it was officially deprecated on May 26, 2011.

Migration
So, if you were using google translate API in you application, you have to register for a paid service or you may do like other many developers migrated to other free API services like

 

Wait, Google Translate API is still FREE :) Lets see how.

 

Read More