We have moved to a new Sailfish OS Forum. Please start new discussions there.
82

Why not shutdown aliendalvik after closing last Android app?

asked 2014-01-28 12:07:31 +0300

Sailor gravatar image

updated 2014-01-28 15:34:46 +0300

Hi,

I am wondering why Aliendalvik keeps running after last app closes? Because if I shutdown Aliendalvik from terminal and start an app it's automatically started when Android is needed. So there is no problem with just shutting down alien dalvik after last app is closed. We could safe battery and no app can send anything in background.

In short: Add option via settings to stop alien-dalvik service on shutdown of last android app or let it run on user decision. Because some people want background notifications from the Android apps.

Regards,

edit retag flag offensive close delete

Comments

11

Maybe in an option menu where you can select what should happen if you close the last active app. Like "Stop Aliendalvik", "Run in Background".

Sailor ( 2014-01-28 13:16:59 +0300 )edit
1

You just deleted my answer and put that (well obvious answer) as part of the question. I'd prefer you split this and convert it to an answer again, because it is an answer to your question, isn't it?

naytsyrhc ( 2014-01-28 14:38:57 +0300 )edit
1

I don't think so an answer is for me "Yes, we are working on this" or "We will put that on the roadmap". All other things are just comments or considerations which should be added to the initial question. Maybe sound a bit rude but we have so many questions with answers which aren't really answers.

Sailor ( 2014-01-28 14:41:52 +0300 )edit
2

Read the howto again. It's just how this is supposed to work. Quote: "An answer might be a direct answer to the question (if you know one), or your own idea of how the issue in the question should be developed. Do not include questions to an answer."

naytsyrhc ( 2014-01-28 14:44:10 +0300 )edit
1

But your "answer" did not include both of the guidelines you quoted. Anyway there are a lot of other answers which have nothing todo with the question ... So add it back as an answer it will be fine.

Sailor ( 2014-01-28 14:49:00 +0300 )edit

4 Answers

Sort by » oldest newest most voted
10

answered 2014-01-28 14:21:48 +0300

naytsyrhc gravatar image

Add option or setting to stop alien dalvik service. This answer could be duplicate if this question will be considered.

edit flag offensive delete publish link more

Comments

1

It's a bit different to the question you considered. Because I don't want a start/stop button but a automatic way of shutting down when something is not needed.

Sailor ( 2014-01-28 14:24:19 +0300 )edit
1

So, this is a different answer then?

naytsyrhc ( 2014-01-28 14:26:07 +0300 )edit
6

answered 2015-02-05 10:48:37 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2015-02-05 10:53:47 +0300

Nicd gravatar image

I was talking about this at IRC and as a workaround I was suggested creating pulley shortcut for closing the Android Support and with some help I managed to create one. You need sudo for this.

  1. Create a script to stop the service.
  2. Allow executing that script with sudo without password
  3. Create .desktop file to /usr/share/applications, I copied htop.desktop.
  4. Add the shortcut to settings.

  1. I made /usr/local/bin/stopandroid with the following content:

    #!/bin/sh
    /bin/systemctl stop aliendalvik.service
    

    and to make sure it's owned and writable only by root

    chown root:root /usr/local/bin/stopandroid
    chmod 755 /usr/local/bin/stopandroid
    
  2. visudo -f /etc/sudoers.d/stopandroid

    and there

    ALL ALL = (root) NOPASSWD: /usr/local/bin/stopandroid
    
  3. I created /usr/share/applications/stopandroid.desktop with the following content:

    [Desktop Entry]
    Version=1.0
    Name=StopAndroid
    Type=Application
    Comment=Stops Android Support
    Terminal=true
    Exec=sudo /usr/local/bin/stopandroid
    Categories=ConsoleOnly;System;
    GenericName=Android System Stopper
    
  4. The StopAndroid app should now be visible in the app launcher and you can add it to the shortcut/pulley menu and easily close it from there.

Thanks Coderus, Nicd- and tbr.

edit flag offensive delete publish link more
4

answered 2014-11-18 01:09:10 +0300

updated 2014-11-18 01:12:59 +0300

Have a look on the App “Sailfish Utilities” the latest Update added an 'stop alien dalvik' button in the settings area, just add an Shortcut for quick access. It's available in the Jolla store!

edit flag offensive delete publish link more

Comments

1

@Sailor it is not really what you suggested but shall we close the question?

damourti ( 2015-01-13 00:41:44 +0300 )edit
3

Nope, it's not related.

Sailor ( 2015-01-13 12:06:15 +0300 )edit
3

answered 2014-01-28 13:14:22 +0300

DrWilken gravatar image

If Alien Dalvik was killed on 'last app close', notifications for Android apps wouldn't work. I didn't know they did before receiving a notification from SoundCloud the other day, but I was pleasantly surprised... ;-)

edit flag offensive delete publish link more

Comments

1

Already considered in the comments. Please convert this answer to a comment.

Sailor ( 2014-01-28 14:30:51 +0300 )edit
1

really? it does? whenever i close the last app, i currently see my status in whatsapp go offline on my android phone and if i send messages to my jolla phone, i never receive any whatsapp notifications.

droll ( 2014-01-28 14:47:43 +0300 )edit

i did a bit more experimenting and this is what i've found. most apps like whatsapp, facebook, lync, etc will be "suspended" when we close alien dalvik (by close i mean there is no card in the home screen). when you fire up dalvik again, the apps resume.

droll ( 2014-01-28 15:04:33 +0300 )edit
1

some apps continue to run even if we close dalvik. for example, waze. even with no card in the home screen, you can still hear the voice navigation of waze telling you to turn left, turn right, hazard reported etc.

i think this is just the way android apps work.

droll ( 2014-01-28 15:05:15 +0300 )edit
3

but i like the idea of the original poster. make it a configurable option. 1. closing dalvik keeps apps running (so i can get notifications without using up valuable home screen space) 2. closing dalvik suspends apps - including apps like waze 3. closing dalvik suspends apps like how it is currently

droll ( 2014-01-28 15:06:05 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-01-28 12:07:31 +0300

Seen: 4,600 times

Last updated: Feb 05 '15