Android Open Source - DrPermissions Tools






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

/*
 * Projet   : Permission Explorer//from ww  w . j a v  a 2s  .c o m
 * Auteur   : Carlo Criniti
 * Date     : 2011.06.11
 * 
 * Classe Tools
 * Classe contenant des variables et m?thodes accessibles partout
 */
package ir.smartlab.permissions;

import android.content.Context;
import android.content.res.Resources;

public class Tools {
  // Package de l'application
  private final static String packageName = "ir.smartlab.permissions";
  // Base de donn?es de l'application
  public static Database database;
  /*
   * getStringResourceByName
   * Permet de r?cup?rer une chaine de caract?res dans les ressources
   * n'importe ou dans l'application
   */
  public static String getStringResourceByName(String name, Resources res, Context context)
  {
    int resId = res.getIdentifier(name, "string", packageName);
    return context.getString(resId);
  }
}




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