An Android console view, which allows you to log text using static calls, to easily debug your application, whilst avoiding memory leaks.
Include Console anywhere in your layout:
<com.jraska.console.Console android:layout_width="match_parent" android:layout_height="match_parent" />
then write to it:
// Writing to console Console.write("This is cool"); Console.writeLine("More cool"); // Clear it Console.clear();
Grab via Gradle:
To allow easy integration with Timber
// In your Application or wherever you register your trees Timber.plant(new ConsoleTree()); // This will be written to your in-app console view Timber.d("Hello Console") // In case you want to customize ConsoleTree consoleTree = new ConsoleTree.Builder() .debugColor(Color.GRAY) // ... .build(); Timber.plant(consoleTree);
Copyright 2015 Josef Raska 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.