Add user-agent string to setup options
[pub/Android/ownCloud.git] / src / com / owncloud / android / MainApp.java
index f35e098..b1ea3c0 100644 (file)
@@ -1,8 +1,9 @@
-/* ownCloud Android client application
+/**
+ *   ownCloud Android client application
  *
  *   @author masensio
  *   @author David A. Velasco
- *   Copyright (C) 2012-2015 ownCloud Inc.
+ *   Copyright (C) 2015 ownCloud Inc.
  *
  *   This program is free software: you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License version 2,
@@ -116,4 +117,8 @@ public class MainApp extends Application {
         return getAppContext().getResources().getString(R.string.log_name);
     }
 
+    // user agent
+    public static String getUserAgent() {
+        return getAppContext().getResources().getString(R.string.user_agent);
+    }
 }