Task #2644
closedStart NFD service when app starts if configured to do that
0%
Description
We should start NFD service as soon as applications starts, not just when somebody clicks the button.
Updated by Alex Afanasyev over 9 years ago
- Subject changed from Start NFD service when app starts to Start NFD service when app starts if configured to do that
I got an idea for some more changes for Main activity interface.
Instead of "button" to start/stop, we should use SwitchPreference. If switch is on, we should automatically start (make sure it is started) NFD service. If switch is off, then do nothing as we currently do.
Additional change that I would like to have as part of this task. When switch is off, all other preferences should be disabled and grayed out.
Updated by Ivan Yeo over 9 years ago
Just some queries:
1) NFD Switch Preference
When the user turns NFD switch on and reboots the Android system, should the NFD Service start when the Android system is rebooted?
2) Other Preferences
The "other preferences" you are referring to here are those of the "filtering of log tags" and anything else that has to do with NFD?
Updated by Alex Afanasyev over 9 years ago
1) NFD Switch Preference
When the user turns NFD switch on and reboots the Android system, should the NFD Service start when the Android system is rebooted?
Is it even possible? I thought about it and concluded that this may not be a necessary feature. When android restarts and there are no NDN apps running, there is no point of running NFD service too. When NDN app starts, it will (should) send intent to start NFD. Actually. We should record this toggle settings at the level of the service, this way user can enable/disable NFD.
2) Other Preferences
The "other preferences" you are referring to here are those of the "filtering of log tags" and anything else that has to do with NFD?
Filtering log is one of them, but there are (will be) many more. In http://gerrit.named-data.net/#/c/1871/ I have added a new group Faces with Create/List "preferences" (they are really buttons). All of them should be grayed out, as they require NFD to be running.
Updated by Ivan Yeo over 9 years ago
Alex Afanasyev wrote:
1) NFD Switch Preference
When the user turns NFD switch on and reboots the Android system, should the NFD Service start when the Android system is rebooted?
Is it even possible? I thought about it and concluded that this may not be a necessary feature. When android restarts and there are no NDN apps running, there is no point of running NFD service too. When NDN app starts, it will (should) send intent to start NFD. Actually. We should record this toggle settings at the level of the service, this way user can enable/disable NFD.
Yep, it's possible if we want it :) We can shelf it for now, until we really need this feature.2) Other Preferences
The "other preferences" you are referring to here are those of the "filtering of log tags" and anything else that has to do with NFD?
Filtering log is one of them, but there are (will be) many more. In http://gerrit.named-data.net/#/c/1871/ I have added a new group Faces with Create/List "preferences" (they are really buttons). All of them should be grayed out, as they require NFD to be running.
Roger that. I'll take your directions on this one.
Updated by Alex Afanasyev over 9 years ago
- Status changed from New to Code review
- Assignee changed from Ivan Yeo to Alex Afanasyev
Updated by Alex Afanasyev over 9 years ago
- Status changed from Code review to Closed