Project

General

Profile

Actions

Task #2644

closed

Start NFD service when app starts if configured to do that

Added by Alex Afanasyev almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
gui
Target version:
Start date:
03/13/2015
Due date:
% Done:

0%

Estimated time:

Description

We should start NFD service as soon as applications starts, not just when somebody clicks the button.

Actions #1

Updated by Alex Afanasyev almost 10 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.

Actions #2

Updated by Ivan Yeo almost 10 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?

Actions #3

Updated by Alex Afanasyev almost 10 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.

Actions #4

Updated by Ivan Yeo almost 10 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.

Actions #5

Updated by Alex Afanasyev over 9 years ago

  • Status changed from New to Code review
  • Assignee changed from Ivan Yeo to Alex Afanasyev
Actions #6

Updated by Alex Afanasyev over 9 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF