Questions tagged [android-log]

Android API for sending log output, which can be viewed and filtered by logcat.

78 questions
0
votes
0 answers

How and where is better to execute a periodic code on Android

Hi everyone (i'm a newbie in android and kotlin), What i need to do is send periodically (every 10 sec) some information, of may application, on a remote server whit a POST request independently if the application is in foreground or background. Now…
0
votes
1 answer

Where to find log files for failed push notification?

When I try to create and send a push notificartion to my Android TV, I get following toast message on my TV: Developer warning for package *. Failed to post notification on channel "default". See logs for more details. Where are those log files…
0
votes
0 answers

Writing logs with Tinylog on Android

I want to save logs on Android using tinylog and I have added dependencies and configuration file. Sometimes the file is created with content and other times the file is empty. It seems like random behavior. Also the app has writing and reading…
JuanDYB
  • 590
  • 3
  • 9
  • 23
0
votes
1 answer

Problem with dynamically updating text view

I have implemented the logs and they are being displayed on the screen. But even after creating the thread, the logs are not being dynamically updated on the screen. New logs should be appended after one second. While the user stays on the screen,…
0
votes
0 answers

How to restart Crashlytics session Android Firebase?

App contains forms that need to submit to the server. Recenlty one of the customers raise an issue regarding form fields missing. To catch the missing fields, I implemented log from Fabric. So when the user submits form, generated XML will be…
Rohan Patel
  • 1,758
  • 2
  • 21
  • 38
0
votes
0 answers

How do I access production Android logs?

I use Android libraries that have logging statements like the below that I'd like to monitor. import android.util.Log; ... Log.d(...); Log.e(...); When I'm in development, I view logs with logcat. Then I publish to the app to the store, and users…
Loren
  • 13,903
  • 8
  • 48
  • 79
0
votes
2 answers

How to store Android Log entry as a string

I can't seem to find an answer or a question regarding this: How do I store an Android Log entry to a string: Log.i(TAG, "onCreate: start: "); String s = /* get last Log entry */.toString(); The reason for this is so I can have the process ID and…
Samuel
  • 395
  • 2
  • 5
  • 20
0
votes
1 answer

Android Alpha Internal Release Cannot Log In. Where can I check the log files?

I've released my app in internal alpha on google play, received the URL, and installed the app on a phone via the URL link. There is a bug where users cannot log in. If the app is installed with android studio via USB link, the app works fine, even…
Alan Nelson
  • 1,129
  • 2
  • 11
  • 27
0
votes
1 answer

My app crashes and hangs after 30 seconds

I am getting this Log warnings 09-29 17:05:27.539 16093-19955/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message,…
Bilal Ujede
  • 39
  • 2
  • 6
0
votes
0 answers

getName() on new thread returns 'main'

I initialize and run a new thread in onCreate() in MainActivity @Override protected void onCreate(Bundle savedInstanceState) { // ... code // New thread new Thread(){ @Override public void run(){ // Output is 'TAG:…
the_prole
  • 8,275
  • 16
  • 78
  • 163
0
votes
1 answer

Android: View file created in internal storage

I have created an app using Xamarin Forms PCL project in that I tried to write a file in internal memory of android device with the help of this link. Using DDMS, I tried viewing the files that I have created but in DDMS I am unable to find the…
Sonali
  • 2,223
  • 6
  • 32
  • 69
0
votes
0 answers

Android Log wrapper easy to disable and avoid StringBuilder

After seeing a lot of questions and answers about how to disable Log.i/e/d calls on release, the answers vary, either use proguard or a log wrapper which checks a bool value. I actually used a log wrapper myself for quite a while but noticed that on…
Alin
  • 14,809
  • 40
  • 129
  • 218
0
votes
1 answer

AndroidTwitterLogin.run crashes in Log.i line NoSuchMethodError

I am trying to get a simple Android app to work for Twitter. I am using the library jtwitter. I am trying to use the AndroidTwitterLogin class. I have a button to authenticate using OAuth. It calls this code. public void authorizeApp(View v) { …
Frank Brosnan
  • 231
  • 1
  • 2
  • 8
0
votes
3 answers

How should I log to the UI in Android?

I'm trying to find a good way to display log messages in a TextView in an Activity. I tried to display logcat messages in the TextView, but the results vary every time I open and close the Fragment and not all messages are shown. I'm logging in…
Brendan
  • 1,403
  • 4
  • 18
  • 37
0
votes
3 answers

Logging in android when java jar is imported

I have a sampleApplication which has only one class and class Name is Test Following are the scenarios: Case1: public class Test { public void callme() { System.out.println("Inside Call me Method"); } } Case2: public class Test…
svs teja
  • 957
  • 2
  • 22
  • 43