Android Open Source - DrPermissions Application






From Project

Back to project page DrPermissions.

License

The source code is released under:

Apache License

If you think the Android project DrPermissions listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ir.smartlab.permissions;
/*from  www  . jav a  2  s. c o m*/
import java.util.ArrayList;
import java.util.List;

public class Application {
  private String label;
  private String name;
  private int versionCode;
  private String versionName;
  private int system;
  private List<Integer> permissions;
  
  public Application(String label, String name, int versionCode, String versionName, int system) {
    this.label = label;
    this.name = name;
    this.versionCode = versionCode;
    this.versionName = versionName;
    this.system = system;
    permissions = new ArrayList<Integer>();
  }

  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getVersionCode() {
    return versionCode;
  }

  public void setVersionCode(int versionCode) {
    this.versionCode = versionCode;
  }

  public String getVersionName() {
    return versionName;
  }

  public void setVersionName(String versionName) {
    this.versionName = versionName;
  }

  public int isSystem() {
    return system;
  }

  public void setSystem(int system) {
    this.system = system;
  }

  public List<Integer> getPermissions() {
    return permissions;
  }
  
  public void addPermission(Integer permissionId) {
    if (!permissions.contains(permissionId))
      permissions.add(permissionId);
  }
  
  
}




Java Source Code List

android.UnusedStub.java
ir.smartlab.permissions.ApplicationDetail.java
ir.smartlab.permissions.ApplicationListAdapter.java
ir.smartlab.permissions.ApplicationListItem.java
ir.smartlab.permissions.Application.java
ir.smartlab.permissions.BaseActivity.java
ir.smartlab.permissions.CategoryDetail.java
ir.smartlab.permissions.DatabaseOpenHelper.java
ir.smartlab.permissions.DatabaseUpdateTask.java
ir.smartlab.permissions.Database.java
ir.smartlab.permissions.Main.java
ir.smartlab.permissions.PermissionDetail.java
ir.smartlab.permissions.Preference.java
ir.smartlab.permissions.Tools.java