Skip to main content

Vincent Tsao's Library tagged tech   View Popular

[TinyTut]Custom Button backgrounds/Better ImageButton :: anddev.org - Android Development Community | Android Tutorials

  • In my_button we define 4 states (as a button has 4 states: not pressed and not focused, pressed and focused, pressed and not focused, not pressed and focused) with each of those states having their own drawable.

using Java to get a file's md5 checksum? - Stack Overflow

  • java.security.DigestInputStream
  • MessageDigest md = MessageDigest.getInstance("MD5");
    InputStream is = new FileInputStream("file.txt");
    try {
     
    is = new DigestInputStream(is, md);
     
    // read stream to EOF as normal...
    }
    finally {
     
    is.close();
    }
    byte[] digest = md.digest();
1 - 20 of 148 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo