Is it possible monitor Application activity in background something like this,
When user logged-in ,
Which application being accessed and when,
when system went to sleep, etc....
when it was disconnected to network and connected to it, : I believe, for that some service can be implemented which keeps on pinging an IP or some other approach,
Related
Using Mac os x 10.13 the network preferences pane shows status of network services (eg Wi-Fi and/or Ethernet) being connected or not. If I change the service status, say by turning Wi-Fi off or on, or disconnecting/connecting ethernet cable then the Preferences Pane reflects this change immediately which implies that it is getting some notification of the network service changes.
How can I accomplish receiving these types of notifications in my Swift program?
I know that I can create a timer object to periodically check the status using the NetworkSetup app process commands and this works fine, but I wish to be notified when the changes occur.
never mind; it looks like this is do-able using the SystemConfiguration framework
Background Info
I downloaded the Thread Pool Sample for Windows Phone 8.1 (C++) and modified it so that the periodic timer sends UDP packets to a remote IP on a regular interval.
Problem
I noticed the following:
The UDP packets are sent out regularly when the app is launched from MSVS 2013 regardless of what you do on the phone
The UDP packets stop being sent out when the app is launched from the phone's program list when the app is put in background.
Question
How do you create a periodic task on Windows Phone 8.1 which runs every 10 seconds? The periodic task must send out a UDP packet to a pre-defined IP:PORT address regardless of what the user is doing on the phone.
I had a look at this one:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977059.aspx
but I don't see the possibility of having the timed task run every 10 seconds.
How to reproduce the problem
Link To Test Project
The test project includes instructions on how to reproduce the problem that I've described.
Unfortunately, what you're after is not possible on Windows Phone. Once the application is no longer active on the phone, it is tombstoned and no longer runs.
You can achieve something similar with Background Agents, but they are restricted in what they can do and they only run every 30 minutes.
There are other background agents that respond to different phone events, including location changes, network availability changes and geofencing triggers.
There's a slightly hacky method available to force a background tasks, and that's to impersonate an audio player task. It's not a great solution though.
I have connected to the internet through a modem named QUBEE which shows as the connection 'Ethernet 2'. However, I have a tab and kindle fire. so, I decided to create a virtual network or hosted network in my laptop. So, I created a hosted network with a numeric pass key (8-digits). The authentication type is WPA2-Personal. I shared the net of Ethernet 2 with it. However, i tried with both my tab and kindle fire, but it shows 'Authentication problem'.
Both of the kindle fire and tab remains in 'Obtaining IP address...' state a lot of time.
One thing I noticed that, when the device is not connected to the virtual network, its network strength remains strong. but it tries to connect, it becomes poor.
Another thing is that the authentication type of that recognize by both tab and kindle fire is WPA2 PSK. where the laptop has WPA2-Personal.
My laptop configuration is i5#2.5GHz, Windows 8.1, RAM: 6.00GB, Lenovo G480.
Thanks in advance for trying to help me.
When I click the send button for sending my app in Application Loader, it is waiting for a response (sent API usage to iTunes Connect, waiting for response) and waiting without error. I am getting a message "the network connection was lost" after a couple minutes. I tried another network connection but the issue was not resolved. Could the issue be on iTunes network?
It should just work if you quit Application Loader, then re-open it.
To submit an application to iTunes Connect, your Mac always need to be up to date, or you will be able to get errors. To do this click on Apple's logo > Software Update. I was having the same problem, and it solved for me. Cheers =)
I had to force quit and the re-open to make it work.
A normal restart did not work, nor did a restart of my Mac. Very weird.
Make sure your iTunes Connect user has admin privileges. I had it set at Technician and everything looked like it was working but it would hang on the "Sending API Usage to iTunes".
None of the above suggestions work for me. Likely the real cause is physical and related how Application Loader is using the internet. I have ADSL connection with a Netgear modem/router assigning each device at home a fixed IP address according to the mac address of the network interface of each device. I had noticed that when Application Loader is uploading, my Windows PC could not connect to the internet. However, if in Mac mini I use Safari doing various things like watching video, my Windows PC can access internet.
Even stranger, when Application Loader is uploading, the modem/router could easily lost connection to the internet, as I could see from the LED lights of the modem. The connection is lost randomly at any progress of uploading the 20 MB file.
So I had turned off Windows PCs, iPads, iPhones and Android device at home, so Mac mini is the only device using the Internet, the Application Loading has finally been able to upload the app successfully in one go.
My guess is, my home phone line has some noise, and Application Loader is using the internet aggressively particularly the up link, so stressing out the modem, then causing other devices like my Windows PC lost connection, not even able to resolve host.
So my working solution is to make Mac be the only device using the Internet, given that the internet connection is already in poor condition with noise, near the edge of losing connection.
I want to get a notification for when my MacBook's lid is closed, when an external monitor is connected.
Lion prevents the computer from sleeping when an external monitor is plugged in, so I can't listen for sleep notifications.
You can use Quartz Display Services to watch for changes to the display configuration. See CGDisplayRegisterReconfigurationCallback().