I’m trying to create my own launcher in Android and I used the android sample Home.
The sample is not really easy and there is almost no documentation or tutorial about it, just some questions on the forum without clear answers.
I tried to add favorite applications in my launcher but the application is searching for a xml file “etc/favorites.xml“, which doesn’t exist.
Do I have to create this file programmatically? And what does this file look like?
I found a solution.
I created a file “favorites.xml” in the folder “assets” and write :
And in the sample code, i edited the method “bindFavorites” (I load the xml file with an InputStream instead of a FileReader) :
And it works but i still need some help, in the xml file we have to set the class value and i don’t know where i can find this information. As you can see, this value depends on the application. I found some values here : http://forum.xda-developers.com/showthread.php?t=836719
But i have my own titanium applications and i don’t know which class value is needed.