public interface ILogSession
| Modifier and Type | Method and Description |
|---|---|
android.content.Context |
getContext()
Returns the application context.
|
android.net.Uri |
getSessionContentUri()
Returns the session read-only content Uri.
|
android.net.Uri |
getSessionEntriesUri()
Returns the session entries
Uri. |
android.net.Uri |
getSessionUri()
Returns the session
Uri. |
@NonNull android.content.Context getContext()
@NonNull android.net.Uri getSessionUri()
Uri. The Uri may be saved in
Activity.onSaveInstanceState(android.os.Bundle) to recreate the session using
Logger.openSession(Context, Uri) when orientation change.
Use this Uri also to open the log session in the nRF Logger.
Intent intent = new Intent(Intent.ACTION_VIEW, mLogSession.getSessionUri()); startActivity(intent);
@NonNull android.net.Uri getSessionEntriesUri()
Uri. New log entries may be inserted using this Uri.@NonNull android.net.Uri getSessionContentUri()
[Application name], [Creation date] [Session name] ([Session key]) D 10.34.01.124 This is the oldest log message (debug) V 10.34.02.238 This is the log message (verbose) I 10.34.03.527 This is the log message (info) A 10.34.04.612 This is the log message (application) W 10.34.04.812 This is the log message (warning) E 10.34.05.452 This is the newest log message (error)
Uri that can be read using
ContentResolver.query(Uri, String[], String, String[], String) method.
The value will be in the first row, column number 0
(with id: LogContract.Session.Content.CONTENT).