Is there anything like real time clock listener in blackberry 10? - listener

There used to be a real time clock listener in previous versions of blackberry(When the coding was in java). Now I was searching the internet but couldn't find anything like a real time clock listener in blackberry 10.Can any Blackberry developer please help me?

There are of course timers. But the real time clock listener in 'legacy' OS versions allowed an application that was idle in the background to have a thread execute without having a visible UI. This is not currently possible under BB10, however the so called headless application API will be showcased at BBJam 2013, next week. Developer access to the API should follow.

Related

App Termination Event WP8.1

I am developing a WP8.1 app in which I need to get the time when app terminated so that when it's launched again I can take decisions according to my requirements. But for this I'm unable to find the any kind of termination event for app where I can store the time of app termination. I have searched and have found Windows Phone 8.1 App Life Cycle which shows there is no event for termination. So my question is how can I record the time of app termination?
You can handle the suspension of the application, when it is brought to the background, and record that time. It is the time when the user last used your app, so when it is started again, you can check how much time has elapsed since last use.
For the actual termination you do not receive an event, nor it is a way to handle such event, because all processing in the application is stopped when suspended and no code can execute.

Wp8 SetAudioEndpoint messing with audio hardware clock?

I'm using WASAPI to capture and render audio for a VoIP application on Windows Phone 8. The app works fine when using the earpiece, but as soon as I switch to speakerphone, a distinct clicking noise appears on the far end. Looking into the timing of my system, I found that after I switched endpoints to speakerphone the mic hardware timer starts to act weird.
My audio loop starts with a WaitForMultipleObjectsEx which is woken up every 10ms by the mic capture event. After switching audio endpoints, I find this this event fires 101 times in 1 second, instead of 100. Every second, the last capture of 480 frames is split into 2 captures, whose timings add up to 10ms. This confuses me to no end, and is causing problems in my audio system.
Does anyone know what is going on, or can someone point me in the right direction?
MSFT is officially looking into a bug in WASAPI caused by multiple endpoint switches. It is confirmed on RT and being investigated for Wp8. Just an update.

Windows Phone 8 - Keeping background location tracking active beyond four hours

I'm in the process of developing a WP8 app that makes use of the background location tracking abilities provided by the OS. The idea is to monitor the users position and to notify them when they are near certain types of places.
So far it all seems to work fine and when running the location tracking works as I would expect.
The problem is, it seems that the phone times out background apps after around four hours, stopping the location tracking.
I can understand why Microsoft did it, to preserve battery life etc. But there's not much point having a background location tracking app that has to be manually restarted every four hours! If a user chooses to run this app and is made aware of the potential battery hit, surely it should be able to run indefinitely - to a point of course, if the system runs out of resources or similar then that's fair enough.
Does anyone have any experience with this? There must be hundreds of others apps in the store that have run into this issue I would have thought? And presumably there must be some way of keeping the location tracking running?
I've tried periodically updating the live tile (using a DispatcherTimer) while the tracking is running but this doesn't seem to be enough to keep the app alive either :(
Anyone have any ideas?
Thanks.
There is no way to achieve your desired behavior. The app will be deactivated under anye of following conditions:
The app stops actively tracking location. An app stops tracking location by removing event handlers for the PositionChanged and StatusChanged events of the Geolocator class or by calling the Stop() method of the GeoCoordinateWatcher class.
The app has run in the background for 4 hours without user interaction.
Battery Saver is active.
Device memory is low.
The user disables Location Services on the phone.
Another app begins running in the background.
Source: Running location-tracking apps in the background for Windows Phone 8
What you could do is to show a toast notification before app is deactivated advising the user, and make him navigate back to the app, extending the period for other 4 hours that way.
There is no way to keep it running without any user interaction.

Windows Phone 8 SDK Voice Commands and Fast App Resume

I'm having a problem integrating Fast App Resume into my Windows Phone 8 app. When I hold the start button and enter a voice command, the command won't fire a Navigate event if the app is already loaded. I've tried intercepting every event I can when the app loads.... nothing.
Does anyone have any insight on how this should be handled in code?
Thanks!
I have confirmed with Microsoft that this behavior is indeed the case, and it is the way they intended it. They have left feedback to Engineering to take a look, but we can help it along by voting for it on UserVoice here.

Flash as3 webservice call not called, with IE7

In a big as3 project we use web service calls with "Operation" class.
There is a webservicecaller class which is used by lots of objects to do calls.
In IE7 (some users, independent of the version), the first call is done, but not the second.
Tracing with MonsterDebugger show us that the function of the webservice is call, but no network traffic is visible in WireShark, and no call is visible serverside, in the server logs.
On my test computer, XP Pro SP3 with IE7, shockwave player 11 installed.
All is fine with other browsers/versions
Is there some specific code to do?
I have added the removeEventListener when the first call is finished, but no changes
Thank you for your help,
Sincerely,
François D
Prob. ie caches your requests, this may cause the problem. You can use timestamp to solve problem.