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