Back to project page LucyTheMoocher.
The source code is released under:
MIT License
If you think the Android project LucyTheMoocher listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lucythemoocher.util; /*w ww . j a v a 2 s . c o m*/ import java.io.InputStream; import android.app.Activity; public class Resources { private static Activity Activity_; public static void setActivity(Activity a) { Activity_ = a; } public static InputStream openRawRessources(int res) { return Activity_.getResources().openRawResource(res); } public static Activity getActivity() { return Activity_; } }