Questions tagged [taskaffinity]
29 questions
1
vote
2 answers
Android app with 2 launcher icons with separate taskAffinity
I have app with 2 launcher icons and 2 different Activities. Manifest file is as like below:
....

Jemshit
- 9,501
- 5
- 69
- 106
1
vote
0 answers
Process / thread scheduling on Linux: X server not running on other cpu cores?
Am unable to understand (what I think) is a peculiar situation wrt process/thread scheduling on Linux.
[Env: Ubuntu 12.10 , kernel ver 3.5.0-... ]
A 'test' application (call it sched_pthread), will have a total of three threads - 'main' + two…

kaiwan
- 2,114
- 1
- 18
- 23
1
vote
1 answer
Not working FLAG_ACTIVITY_NEW_TASK with taskAffinity
My application has 2 launch activities A and B. Activity B has taskAffinity="Task2".
1) Launch B from android menu, change some fields there, then press home button.
2) Launch activity A. From A, launch B with flag FLAG_ACTIVITY_NEW_TASK. This…

Ilya Bogdan
- 21
- 5
0
votes
1 answer
taskset inside qemu virtual machine not working as expected
I am emulating qemu for linux x86-64. In qemu virtual machine, I am using
taskset -c 0 prc1 & taskset -c 1 prc2 & taskset -c 2 prc3 & taskset -c 3 prc4;
to simultaneously issue 4 processes and bind them to four cores (prc is short for process).…

user984260
- 3,401
- 5
- 25
- 38
0
votes
0 answers
Effect of each task in Multi-task learning-Task Affinity calculation?
I have designed a network for multi-task learning. Here I have some shared layers and specific layers for 5 different tasks.
input_dim_train=X_train.shape[1]
n_input_dim = int(input_dim_train)
shared_model = Dense(input_dim_train)(inputs)
…

jeny ericsoon
- 131
- 7
0
votes
2 answers
Android switching between tasks
I'm trying to find a way to switch between tasks in android.
Let's say I have Activity A, B, C, D.
Activity A and B are in one task(affinity)
While C and D are in another task.
This is the manifest code of C activity which creates a new task.
…

Deejayen
- 23
- 1
- 8
0
votes
2 answers
Android taskAffinity problem with specifying activity
I am dealing with a strange issue here.
Basically, I have one application (made by another developer) that has an activity that specifies its taskAffinity to "" and its launchMode to "singleTask".
When the phone receives a notification, I launch an…

JoeDoe
- 9
- 1
- 2
0
votes
2 answers
Opening multiple android tasks with the same root activity
I'm trying to start an intent with Main2Activity in a new (separate) task (i.e. separate back stack and separate instance in recents screen).
I realized that the way it should be done is adding the Intent.FLAG_ACTIVITY_NEW_TASK and…

Yoav B
- 21
- 1
0
votes
0 answers
Android: How to know which launcher icon/activity started the application, given application context?
I have created a lib that when you add to your app adds a 2nd launcher icon (it'll be used for debugging network), the lib could be initialized from the application using its context or from an activity, I'd like to know in my lib if the application…

Shehabic
- 6,787
- 9
- 52
- 93
0
votes
0 answers
creating multiple instances of the same activity
So I've been looking everywhere to try to allow my app to have a new instance of an activity whenever I want "onCreate" but I haven't found much to help me. I understand that you can use launchMode="singleTop" so you can force everything to be a…

DrBrad
- 163
- 2
- 12
0
votes
0 answers
taskset wrapped has a "?" mark, not sure how its introduced
I'm running commands from python via popen. On multi-core system, I have a function that will return the string "/usr/bin/taskset -c <>" based on the system's utilization. I then append the string to the system command prior to sending it to…

user2066671
- 177
- 4
- 16
0
votes
2 answers
Programmatically Resume a child activity
Long story short, I am developing a multi-activity app for the Amazon Kindle. Kindle has a somewhat exotic launcher that does not support (correctly) more than one LAUNCHER activity in the manifest, so if you are on a child activity, go to home…

rupps
- 9,712
- 4
- 55
- 95
-1
votes
2 answers
Finish all activities but keep the first
The app has this flows:
1) Home -> Activity A -> Activity B -> Activity C -> Activity A -> Activity B -> Activity C -> etc.
2) Home -> Activity C -> Activity B -> Activity C -> Activity A -> Activity B -> Activity C -> etc.
3) Home -> Activity D ->…

Ivan Fork
- 812
- 1
- 9
- 22
-2
votes
1 answer
runtime.GOMAXPROCS not working as expected
I have a simple go program -
main.go -
package main
import (
"log"
"runtime"
"time"
)
func main() {
runtime.GOMAXPROCS(1)
log.Println("running")
time.Sleep(10 * time.Minute)
}
I build binary like this -
GOOS=linux go…

Pavan Kishore
- 91
- 2
- 9