[Android] Introduce VLCApplication.getAppResources()

Jean-Baptiste Kempf git at videolan.org
Mon Jun 25 15:46:23 CEST 2012


android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 25 15:20:00 2012 +0200| [bff5eea44c1169b231da3438facaffaa795b0764] | committer: Jean-Baptiste Kempf

Introduce VLCApplication.getAppResources()

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=bff5eea44c1169b231da3438facaffaa795b0764
---

 vlc-android/src/org/videolan/vlc/VLCApplication.java |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 239df2e..1d39479 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -21,6 +21,7 @@ package org.videolan.vlc;
 
 import android.app.Application;
 import android.content.Context;
+import android.content.res.Resources;
 
 public class VLCApplication extends Application {
     private static VLCApplication instance;
@@ -31,8 +32,19 @@ public class VLCApplication extends Application {
         instance = this;
     }
 
+    /**
+     * @return the main context of the Application
+     */
     public static Context getAppContext()
     {
         return instance;
     }
+
+    /**
+     * @return the main resources from the Application
+     */
+    public static Resources getAppResources()
+    {
+        return instance.getResources();
+    }
 }



More information about the Android mailing list