Git Product home page Git Product logo

intentlogger's Introduction

IntentLogger

Gitter Android Arsenal License Circle CI

Dump intent content into logcat

Usage

Call IntentLogger.dump(String, Intent).

public class MainActivity extends Activity {
    public static final String TAG = MainActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        IntentLogger.dump("test", getIntent());
    }
}

Then in LogCat

app V/test﹕ Intent[172e5d96] content:
app V/test﹕ Action   : android.intent.action.MAIN
app V/test﹕ Category : {android.intent.category.LAUNCHER}
app V/test﹕ Data     : null
app V/test﹕ Component: com.drivemode.intentlog.app/com.drivemode.intentlog.app.MainActivity
app V/test﹕ Flags    : 10000001100000000000000000000
app V/test﹕ Flag     : FLAG_RECEIVER_FOREGROUND
app V/test﹕ Flag     : FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY
app V/test﹕ Flag     : FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
app V/test﹕ HasExtras: true
app V/test﹕ Extra[profile] :0

cf. Intent#toString()

app V/test﹕ Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.drivemode.intentlog.app/.MainActivity bnds=[481,810][1312,1641] }

Download

Gradle:

compile 'com.drivemode:IntentLogger:1.0.5@aar'

License

Apache v2

Copyright (C) 2014 Drivemode, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

intentlogger's People

Contributors

keithyokoma avatar jfsso avatar dagezi avatar

Watchers

James Cloos 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.