user-interaction

Android: Detect General Use by User

♀尐吖头ヾ 提交于 2019-12-31 03:16:32
问题 I am working on an application that monitors phone use (specifically, what time its being used). Presently, I log times of phone calls, SMSs, MMSs, Screen turning on, screen turning off, and keygaurd unlocking. Now I want to determine when the user does any interaction other than whats listed above. Like: 1) Application use (Detect when an application is launched by the user and/or when it is actively being used by the user) For this I have been playing with the Activity Manager but there

Detecting user activity in android

不问归期 提交于 2019-12-28 12:43:08
问题 I would like to detect when was the last time the user interacted with the screen. I'm not interested in doing any malware/spyware stuff, just need to calculate how much time has elapsed since the last time the user tapped on the screen. The goal is to achieve a functionality similar to that of a keyguard. I've been doing some research and following some to Q&A on the site (such as Android Best Way to Detect and Handle User INACTIVITY, Android: Detect General Use by User among others) but

having a custom UIView in a UIViewcontroller

☆樱花仙子☆ 提交于 2019-12-25 00:12:27
问题 I created a UIView class and implemented it inside a viewcontroller. However, I have a some other things in the view controller that I want to be able to interact with but I cannot do that because of the attached view. how do I interact with the base viewcontroller while the custom uiview is present in the viewcontroller var tripView: TripView! override func viewDidLoad() { super.viewDidLoad() tripView = TripView(frame: CGRect.zero) self.view.addSubview(tripView) // AutoLayout tripView

Can Jenkins handle an gui/non-gui interactive python or java program?

走远了吗. 提交于 2019-12-24 01:09:15
问题 I want to create a build pipeline, and developers need to set up a few things into a properties file which gets populated using a front end GUI. I tried running sample CLI interactive script using python that just asked for a name and prints it out afterwards, but Jenkins just waited for ages then hanged. I see that it asked for the input, but there was no way for the user to input the data. EDIT : Currently running Jenkins as a service..Or is there a good plugin anyone recommends or is it

How to use msgbox in R [closed]

心已入冬 提交于 2019-12-23 21:00:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . How can I display a message box in R ? I'm looking for something similar to msgbox in VBA, so I can for example alert the user about a problem. Additionally I would like to allow some user interaction. So for example I could ask the user what day the program should use. 回答1: What do you want to do exactly? Two

How to detect user interaction of any kind?

时光怂恿深爱的人放手 提交于 2019-12-23 09:54:33
问题 SECURITY ISSUE: I don't now how it happens, but readers of this questions come up with idea that solutions to this problem is a security threat. So please keep in mind, all data I am interested in is measuring time of user in/activity. That's all. What user did -- I am NOT interested at all! What I need is very simple concept, but I cannot find a solution. I would like to run a process (in the background) and have a listener to user interaction. So, user touches screen --> my method is

android detect user inactivity after key pressed

試著忘記壹切 提交于 2019-12-22 08:33:02
问题 In my mediaplayer I've added a view that is shown if menu key is pressed, I want it to be hidden after some time i.e user don't want to see the view, The view is horizontal and i want it to hide after some seconds that user won't press right or left key. I've place my logic here but it didn't worked out: "Similar is my view to be shown" @Override public boolean onKeyDown(int keyCode, KeyEvent event) { super.onKeyDown(keyCode, event); lastUsed = System.currentTimeMillis(); case KeyEvent

Make R wait for console input?

不问归期 提交于 2019-12-21 20:14:54
问题 Is there a way to make R wait for console input before continuing? Let's say I source two scripts like this in a main script called run.R: # some more R Code here source("script1.R") source("script2.R") # some more R Code there Script1 contains some readLine statement that asks the user for a username. Unfortunately if I just run the entire run.R file R doesn't wait for the username to be entered. It starts script2.R before the username is entered which leads to an error because the 2nd

How to detect user inactivity since last touch on a particular viewcontroller in iOS?

半城伤御伤魂 提交于 2019-12-17 21:09:03
问题 I need to perform a particular action in a view controller when user don't touch a particular screen for 3 seconds. How can I do that in iOS? 回答1: Override the view's touches began method and reset a timer when you get touches. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.timer invalidate]; self.timer = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(inactivityTimerFired) userInfo:nil repeats:NO]; [super touchesBegan:touches withEvent

Interactively change the selectInput choices

徘徊边缘 提交于 2019-12-17 17:34:19
问题 Originally I create this shiny interface that takes in a parameter "company id" and "date", but here we have a problem: most people dont know the companies we work with by their id, only their name, i.e. (McDonalds, Radioshack). So I want to ideally create a search function like this My current idea is to pass in a table including a list of all our partner companies and their ids to global.R. Then pass in the textInput as the search variables and perform the search on server side. However, I