Code Monkey home page Code Monkey logo

androidmagic's Introduction

AndroidMagic(使用LibMagic识别文件类型)

An android project to query file info with LibMagic

Travis Travis

Introduction

The file command is "a file type guesser", that is, a command-line tool that tells you in words what kind of data a file contains. Unlike most GUI systems, command-line UNIX systems - with this program leading the charge - don't rely on filename extentions to tell you the type of a file, but look at the file's actual contents. This is, of course, more reliable, but requires a bit of I/O.

Screenshot

screenshot

Details

This project is for me to learn Java, NDK, and for fun.

  • learn how to build ndk and sign apk with android gradle-experimental
  • source code is from open source implementation of the file command
  • libmagic is "a file type guesser", that tells you in words what kind of data a file contains

学习记录

  • 使用libmagic,我们不用看文件的后缀,就可以识别出常用文件类型
  • 移植LibMagic到安卓平台上, 使文件类型的识别不仅通过扩展名
  • 使用cmake编译NDK
  • Java与本地代码之间内存拷贝GetByteArrayRegion
  • butterknife 以及 rxjava的使用

Useful Links

About Me

Contact To Me

image

Others

  • 想捐助我喝杯热水(¥0.01起捐)
    donate

androidmagic's People

Contributors

huzongyao avatar tomtasche avatar viliussutkus89 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.