Thursday 20 June 2013

Consolidate Code

If you are working with Eclipse IDE, you'll find some problems to make the last step of the cydia substrate Violet Example work. Specially if you don't upgrade Cydia API to its second version(published last week). 

In order to do that, from Eclipse menu go to: Window -> Android SDK Manager -> Extras, and check Cydia Substrate API. Then, click 'Install Packages' and that's it.
Don't forget to copy the jar file named substrate-api in you project libs folder to use this last version of the API, instead of the other version you were using.

After that, using Java generics and MS.MethodAlteration, you can make your code simpler (or at least the part where you hook the getColor method).
If you're not sure how to replace your existing code, checkout the one I've already changed here.

Don't forget to check our previous post: Violet Example for Android using Cydia to have a more detailed introduction to Cydia for Android.


Cheers!


Mac users: come to the Android side, we have cookies




No comments:

Post a Comment