Codota Logo
AtomicFile.delete
Code IndexAdd Codota to your IDE (free)

How to use
delete
method
in
com.lody.virtual.helper.utils.AtomicFile

Best Java code snippets using com.lody.virtual.helper.utils.AtomicFile.delete (Showing top 3 results out of 315)

  • Common ways to obtain AtomicFile
private void myMethod () {
AtomicFile a =
  • Codota IconFile baseName;new AtomicFile(baseName)
  • Codota IconFile parent;new AtomicFile(new File(parent, userInfo.id + ".xml"))
  • Codota IconFile parent;new AtomicFile(new File(parent, Integer.toString(i) + ".xml"))
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: bzsome/VirtualApp-x326

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: darkskygit/VirtualApp

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
com.lody.virtual.helper.utilsAtomicFiledelete

Javadoc

Delete the atomic file. This deletes both the base and backup files.

Popular methods of AtomicFile

  • <init>
    Create a new AtomicFile for a file located at the given File path. The secondary backup file will be
  • failWrite
    Call when you have failed for some reason at writing to the stream returned by #startWrite(). This w
  • finishWrite
    Call when you have successfully finished writing to the stream returned by #startWrite(). This will
  • openRead
    Open the atomic file for reading. If there previously was an incomplete write, this will roll back t
  • startWrite
    Start a new write operation on the file. This returns a FileOutputStream to which you can write the
  • sync

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now