4
4
4ainik2019-04-23 14:58:18
Android
4ainik, 2019-04-23 14:58:18

How to log in Android Widget?

The essence of the question may not be entirely clear and an explanation is required:
The task is simple: an ordinary simple application with 1 activity can normally keep its log file, which falls into some folder of the ...%PACKAGE%\cache\.... format, BUT I ran into a problem that the widget cannot create a file in this area, there are not enough rights ... I don’t know how to be, but the logs are needed ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-04-23
@zagayevskiy

There are not enough rights, because the widget is launched by the launcher, most likely.
You can delegate logging to the main application. To do this, you can implement ContentProvider in it with a single insert method . And in this method already to write where it would be desirable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question