The Android class library that displays logs on the screen

Source: Internet
Author: User

Galgo is an Android log class library that displays the app's log information on the screen. This is useful for testers and developers who can see what happens when a bug is applied based on a log file on the screen.

 

You can define the background color, text color, text size, and number of lines that the log displays on the screen.

Https://github.com/inaka/galgo


public class Exampleactivity extends Activity {    @Override    protected void onCreate (Bundle savedinstancestate) { C2/>super.oncreate (savedinstancestate);        Setcontentview (r.layout.activity_example);        Add some customization to the log messages        galgooptions options = new Galgooptions.builder ()                . NumberOfLines (15 )                . BackgroundColor (Color.parsecolor ("#D9d6d6d6"))                . TextColor (color.black).                textSize (                .). Build ();        Galgo.enable (this, options);        Galgo.log ("I am a log message");    }    public void OnDestroy () {        Super.ondestroy ();        Always call disable-avoid memory leaks        galgo.disable (this);}    }




is actually a service above shows a window menifest need to have permission
<manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "Com.inaka.galgo" >    < Uses-permission android:name= "Android.permission.SYSTEM_ALERT_WINDOW"/>    <application android: Allowbackup= "true" android:label= "@string/app_name" >        <service android:name= ". Galgoservice "/>    </application></manifest>


Another open source project that shows all logs

Https://github.com/jgilfelt/GhostLog

The Android class library that displays logs on the screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.