Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(data): add methods to manage the data values
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <rhernandez@teclib.com>
  • Loading branch information
rafaelje authored and Hector Rondon committed Jul 6, 2018
1 parent 41d8afa commit 18698b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/org/flyve/mdm/agent/utils/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ public static void openErrorActivity(Context context, String message) {
context.startActivity(intent);
}

public static Boolean boolFromString(String value) {
return Boolean.parseBoolean(value);
}

public static Boolean moreThanZero(String value) {
if(value==null) {
return false;
} else {
return (Integer.valueOf(value) > 0);
}
}

public static void installApkSilently(String filename) {
File file = new File(filename);
if(file.exists()) {
Expand Down

0 comments on commit 18698b0

Please sign in to comment.