Timeout of App

Hello everyone

I want my application to disconnect if the application is idle for a few minutes of x. App is considered inactive for both of these scenarios.

  1. App is driven in the foreground, but it is inactive (user forget app) for some time.
  2. the user switches to a different app without closing the previous running for app application is still ongoing in the background. It should timeout if the user is not at bottom back app after awhile.

There is a method getIdleTime() in class DeviceInfo that gives the number of seconds since the last key or event of the wheel. This method takes care of my first screenplay. But I'm not sure on the other. Standby time returned by this method is app or peripheral level. Suppose that my application is in the background and use some diff app. In this case, this method returns the specific just to my application downtime?

Someone at - it a solution better than this?

Thank you.

Target BONES: 5.0

One approach is to program a delayed TimerTask x minutes on any of the events indicating that the application is not actively used. Cancel the task on all events that show the user's renewed interest.

If your application has a main (class) type screen or only few of these, it's easy: onObscured() / onExposed() pair takes care of all these events. For example:

// Somewhere in your UiApplication-extending class
public static Timer globalTimer = new Timer();
public static TimerTask shutdownRequest; // initialized to null
public static final long SHUTDOWN_AFTER = 300000L; // 5 min in milliseconds
...

// In your main screen class - there might be more than one file
// to get this treatment
protected void onObscured() {
  if (!Application.getApplication().isForeground() // switched to background?
      || (getScreenAbove() == null)) { // obscured with no Screen above? Screensaver!
    MainApplication.shutdownRequest = new TimerTask() {
      public void run() {
        System.exit(0);
      }
    };
    MainApplication.globalTimer.schedule(MainApplication.shutdownRequest,
                                         MainApplication.SHUTDOWN_AFTER);
  }
}

protected void onExposed() {
  if (MainApplication.shutdownRequest != null) {
    MainApplication.shutdownRequest.cancel();
    MainApplication.shutdownRequest = null;
  }
}

Tags: BlackBerry Developers

Similar Questions

  • Virtual Windows 7 machine network connection

    Hello

    I have VM hosted on ESX 4.0 on which windows 7 is installed, and vmnic is configured to use DHCP. I question that VM lose the network connection frequently. I observed in the summary address dose tab there is no IP. If I restart the virtual machine. I will return the IP address on the Summary tab. Please advice.

    below islog

    16:21:36.476 14 may: vcpu-0 | Msg_Hint: msg.piix4pm.guestInS1 (sent)
    16:21:36.476 14 may: vcpu-0 | Your guest has entered standby state sleep. Use the keyboard or mouse while caught to reactivate.
    16:21:36.476 14 may: vcpu-0 | ---------------------------------------
    16:21:46.637 14 may: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    16:22:01.639 14 may: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    16:22:01.639 14 may: vmx | GuestRpc: timeout ping app the second Toolbox; assuming that app is down

    Hello

    "16:21:36.476 May 14: vcpu-0 | Your guest has entered standby state sleep. Use the keyboard or mouse while he caught to reactivate. »

    Looks like windows 7 past in mode 'sleep', once the system is idle for a while.

    Go to windows 7 Control Panel apower options to select the power plan & select change settings.

    Never select the turn off display options & put the computer to sleep

  • Message to the Toolbox has expired

    My recent posts on this forum have been linked to problems that I did myself while trying to solve a performance problem.  I'll run my image of Windows 7 and before too long, the image seems to stop.  In my vmware.log file, I see the following lines:

    24 June 13:25:17.895: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.
    24 June 13:25:26.362: vcpu-0 | Adjusting size of 38 battery thread to 1048576.
    24 June 13:25:30.209: vcpu-0 | Adjusting size of 38 battery thread to 1048576.
    24 June 13:25:32.958: mks | Setting size 39 battery thread to 1048576.
    24 June 13:26:17.864: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:26:38.379: mks | Setting size 39 battery thread to 1048576.
    24 June 13:27:17.864: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:27:17.864: vmx | SCSI1:0: READ command (10) took 1,442 second (ok)
    24 June 13:29:08.490: mks | Setting size 39 battery thread to 1048576.
    24 June 13:29:32.834: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:29:47.827: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:29:47.828: vmx | GuestRpc: timeout ping app the second Toolbox; assuming that app is down
    24 June 13:30:26.298: vcpu-0 | TOOLS ToolsCapabilityGuestTempDirectory received 1 C:\Windows\TEMP\vmware-SYSTEM
    24 June 13:30:26.350: vcpu-0 | TOOLS autoupgrade Protocol version 2
    24 June 13:30:26.355: vcpu-0 | TOOLS received ToolsCapabilityGuestConfDirectory C:\ProgramData\VMware\VMware tools
    24 June 13:30:26.366: vcpu-0 | ToolsSetVersionWork has nothing; new version of tools (8326) corresponds to the old version of the tools
    24 June 13:31:18.002: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:31:32.993: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:32:18.027: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:32:56.144: mks | Setting size 39 battery thread to 1048576.
    24 June 13:34:17.961: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:34:47.943: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:35:17.925: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:35:47.909: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:36:17.894: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:37:13.789: vmx | DISKLIB-LIB: numIOs = 100000 numMergedIOs = 12213 numSplitIOs = 2
    24 June 13:37:17.863: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:37:32.855: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:37:47.847: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:38:02.839: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
    24 June 13:38:17.825: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    I searched this error without result.  Anyone have any ideas of what I could try to isolate/address this problem?  I enclose my full log, as well as my vmx file in the case where it provides revelations.  Thank you!

    Hello
    If we changed the Win7 scsi controller may complain and request a reactivation!
    Only go ahead if you can manage that!

    Ok
    step 1: inside the guest running Open regedit as an administrator.
    Reach
    HKLM\System\CurrentControlSet\services\LSI_SAS
    you will find a subkey named Start. Set the value to 0 - very likely, it's 3 or 4 at the moment.
    Then turn off the virtual machine

    step 2: swap the current vmx file with the one I've attached
    It removes the current scsi controller and replaces it with a LSI - SAS

    You should probably create a backup first if you do not know

  • VM just hangs!

    Then, I realize that this is perhaps a Windows problem and is not a problem of VMware, but I can't say yet, I wanted so compel some to see if it happened to someone else.

    We have SBS 2008 as a VM in our box of ESXi (4.0.0, 208167). The night last at 11 he locked and unresponsive. She disappeared from the network, and I could not even face the console of vSphere. Sending a CTRL ALT DEL wouldn't do anything, the console comes from show SBS login screen and never changed. I couldn't stop because VMware tools was insensitive. The only thing was to cut off the power and restart.

    Since last night he did it twice more. I looked through some of the papers in ESXi and don't see anything that caught my attention, but I don't know what to look for. I will attach an extract from the vmware.log who has something with vmware tools, period, but maybe that's just a side effect.

    As I said, this may turn out to be a Windows problem, but since I've never seen a virtual computer be completely insensitive in the vSphere client, I thought I'd see if anyone has ever known who. We have 2 other virtual machines running very well and are completely adapted from the console.

    A side note is that I'm no longer the unique administrator of this machine, so it is possible that someone else made the changes that I don't know. I know there is an antivirus update Saturday, but that's all. I'll keep digging on this subject, I thought that someone may have some tips.

    Thank you!

    13:51:09.542 19 Apr: vcpu-0 | GuestRpc: Channel 2, conflict: app reviews toolbox-MDN tried to register, but it is still registered on channel 1

    13:51:09.542 19 Apr: vcpu-0 | GuestRpc: Channel reset 2.

    13:51:09.542 19 Apr: vcpu-0 | GuestRpc: Channel reset 2.

    13:55:57.851 19 Apr: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    13:55:57.851 19 Apr: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired

    13:56:12.851 19 Apr: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    13:56:12.851 19 Apr: vmx | GuestRpc: timeout ping app the second Toolbox; assuming that app is down

    13:56:12.851 19 Apr: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.

    13:56:12.851 19 Apr: vmx | GuestRpc: the second toolbox-MDN app ping timeout. assuming that app is down

    13:57:55.725 19 Apr: mks | TAKEN 2 (116) recv error 104: connection reset by peer

    13:57:55.726 19 Apr: mks | TAKEN 2 (116) destroying backend VNC on socket error: 1

    13:57:55.726 19 Apr: mks | MKS: Polling of the Base period is 1000000us

    13:58:11.178 19 Apr: mks | MKS: Polling of the Base period is 10000us

    13:58:25.067 19 Apr: mks | VNCENCODE 3, changing encoding mode: (800x600x24depth, 32bpp, 3200bytes/line)

    13:58:25.140 19 Apr: mks | VNCENCODE 3, changing encoding mode: (800x600x24depth, 32bpp, 3200bytes/line)

    13:58:57.320 19 Apr: mks | TAKEN 3 (115) recv error 104: connection reset by peer

    13:58:57.320 19 Apr: mks | TAKEN 3 (115) destroying backend VNC on socket error: 1

    We must determine whether VMS or OS issue. This question could you please download your latest VMware.log at the time where that happened.

    vcbMC - 1.0.6 Beta

    Lite vcbMC - 1.0.7

    http://www.no-x.org

    I vote for vExpert 2009!

  • GuestRpcSendTimedOut - Guest OS (XP) crashes, what causes host 100% cpu

    Someone recommended that I open a new thread for this question on the suspicion that there is a problem with my installation of vmware tools:

    Summary: Frequent long freezes in vmware-workstation (30 sec).  Setpoint (constantly) States the following:

    15:35:45.196 18 Feb: mks | Grab lost MKS

    15:35:49.133 18 Feb: mks | Grab lost MKS

    15:35:53.268 18 Feb: mks | Grab lost MKS

    15:35:59.957 18 Feb: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    15:35:59.957 18 Feb: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.

    15:36:00.823 18 Feb: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.

    15:36:01.272 18 Feb: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.

    15:36:14.956 18 Feb: vmx | GuestRpcSendTimedOut: message to the box to tools-DND has expired.

    15:36:14.956 18 Feb: vmx | GuestRpc: the second toolbox-MDN app ping timeout. assuming that app is down

    15:38:29.961 18 Feb: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    15:38:44.962 18 Feb: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    15:38:44.962 18 Feb: vmx | GuestRpc: timeout ping app the second Toolbox; assumingapp is down

    15:40:44.966 18 Feb: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.

    Host OS: Gentoo Linux - 2.6.28 kernel

    Guest OS: Windows XP (SP3), 32-bit

    VMware Workstion 64-bit, 6.5.1 build-126130

    I have re-installed vmware tools, and the problem remains.

    Please join the files vmware.log and .vmx from the directory containing the files of comments, and we'll take a look.

  • Questions reconsignation in Oracle Apps after session timeout

    Hello

    R12-pending, after the session has expired, and while he raises up to reconsignation and after entering the username and pwd and after pressing the OK button, it asks again ask username and pwd and the cycle repeats.

    In addition, the login page is not broken with the user name. I suspect that the above behavior is for this reason.

    No idea on how to solve this problem.

    Thank you
    Naresh Thierry

    Details of the message of pl of the exact versions of the operating system, database and EBS, as well as the browser and JRE versions on the client. Are there errors in the database alert log? This problem occurs for all users? PL see these Docs MOS

    Loop connection to Internet Explorer after Timeout of Session using JRE 1.6.0_18 [1078228.1 ID]
    The re-login control loops Due To low for ICX: time limit [398870.1 ID]
    Login screen is displayed again after providing credentials - error ORA-1653 in log alerts [1312411.1 ID]

    HTH
    Srini

  • App-Manager does not connect to the Simulator OS Firefox on Windows 7

    OS: Windows 7

    Firefox: 28

    6.0pre8.20140112 Simulator 1.2 Firefox OS

    When I run the simulator it opens fine and I see a Firefox OS Desktop
    But the App Manager does not connect. The console at the bottom right says:

    .. localhost:56455 options (the port varies)

    .. connection timeout. Possible causes: has not clicked 'accept' (guest).

    .. .disconnecting

    .. .disconnected

    I have disabled my firewall, restarted firefox and even system - did not help
    There is a similar bug - but I don't know if we are talking about the same thing:
    https://support.Mozilla.org/en-us/questions/988385

    Thank you

    Well - I already knew these links and I can't find anything useful
    Anyway, I tried the Simulator instead of 1.2 1.3 (unstable)
    This one works very well

  • COM listener indefinitely while app is running

    Hello

    My application supports multiple threads

    A must have COM port a thread listening, is obliged to hear indefinitely
    While the application is running and up to end app.

    The program uses any other COM Ports (so the time is set to 10 s to avoid
    communication problems with this other ports)

    the pseudocode is as follows:

    int main()
    {

    CmtNewThreadPool (1);
    CmtScheduleThreadPoolFunction (Listen);

    continue code execution (new threads) while listening to the COM port
     
    end of the app

    to listen on the COM port finish

    CmtDiscardThreadPool();
    }

    int Listen()
    {
    ComRd()
    }

    The problem is that if the timeout is not set to infinite
    ComRd() expires after 10 sec. until the arrival of program to listen to Com Port
    before the end of the app.

    Maybe it works if the function ComRd is inside a c while() loop
    until end of the main program (I think isn't the best solution, because)
    Is to perform a function ComRd every 10 seconds...)

    Any ideas?

    Thank you very much

    Well, giving rise to a separate thread for that Yes, you will loop indefinitely in this thread to listen to port activity. The system is in charge to let some time CPU for other threads, but you may want to consider slow execution of this thread because you may not have such a port fast scanning.

    You might consider using an asynchronous timer instead of a thread for example: asynchronous timers are built on multimedia timers and run in a separate thread (only one thread for all timers async); It is usually the best way to develop an application that must run periodically features: in your case the timer callback might be called GetInQLen and in cases replaced by port, handling the message to read appropriately. This task could run 5 to 10 times per second (or possiby even low-frequency), which leaves most of the execution time and resources to your other threads. If you run this way, please do not forget that you always use a multi-threaded application, so you should use all available means to protect your data from simultaneous access of several threads in the same way, you must be to actually do it.

  • Share Point 2013: When adding yammer app in the contents of this site I'm getting 'something went wrong '.

    Hello Experts,

    Greetings!

    When I add yammer app in the contents of this site I have 'something went wrong '.

    OS: Windows Server 2012

    2013 SharePoint with SP1 (current license: SharePoint Server with Enterprise Client Access License)

    DB: SQL Server 2012

    Correlation ID: 634c5a9d-8e11-703a-9cb1-3652a67fc35f

    JOURNAL:

    30/01/2016 w3wp.exe 04:54:29.40 (0 x 1894) 0 x 2160 SharePoint Foundation correlation xmnv name of support data logging = 634c5a9d-8e11-703a-9cb1-3652a67fc35f request (POST: http://SPDEV:1234/_layouts/15/addanapp.aspx?Source=http%3A%2F%2Fasi%2Ddev005%3A1234%2F%5Flayouts%2F15%2Fviewlsts.aspx))
    30/01/2016 w3wp.exe 04:54:29.41 (0 x 1894) 0 x 2160 Microsoft SharePoint Foundation authentication authorization agb9s average Non-OAuth request. IsAuthenticated = True, UserIdentityName = 0 # .w | SPDEV\sp_farm, ClaimsCount is 25 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe (0 x 1894) 04:54:29.41 = 0 x 2160 SharePoint Foundation xmnv Site average correlation data logging / 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.42 (0 x 1894) 0 x 2160 acjjg deployment of SharePoint Foundation App average current user has System.Threading.Thread.CurrentPrincipal.Identity.Name = 0 # .w | SPDEV\sp_farm, System.Security.Principal.WindowsIdentity.GetCurrent (). Name = NT AUTHORITY\IUSR, System.Web.HttpContext.Current.User.Identity.Name = 0 # .w | SPDEV\sp_farm.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.43 (0 x 1894) of file 0 x 2160 files SharePoint Foundation ak8dj high not available UserAgent, operations cannot be optimized.    at Microsoft.SharePoint.SPFileStreamManager.get_UserAgent () at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer (SPFileStreamStore SPFS, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb) at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes (SPFileInfo & fileInfo, SqlSession session, PrefetchResult prefetchResult) at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset (Guid databaseId, SqlSession session, SPFileStreamManager spfstm, Object [] metadataRow, SPRowset contentRowset, SPDocumentBindRequest, dbreq, SPDocumentBindResults & dbres) at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow (Int32 rowOrd, Object ospFileSt...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:29.43 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... mMgr, SPDocumentBindRequest & dbreq, SPDocumentBindResults & dbres) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo (String bstrUrl, bPageView bytes, bPageMode bytes, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, byte bMainFileRequest, Boolean & pbCanCustomizePages, Boolean & pbCanPersonalizeWebParts, Boolean & pbCanAddDeleteWebParts, Boolean & pbGhostedDocument, Boolean & pbDefaultToPersonal, Boolean & pbIsWebWelcomePage, String & pbstrSiteRoot, Guid & pgSiteId, UInt32 & pdwVersion, String & pbstrTimeLastModified, String & pbstrContent, UInt32 & pdwPartCount, object & pvarMetaData, object & pvarMultipleMeetingDoclibRootFolders) , String & pbstrRedirectUrl, Boolean pbObjectIsList, Guid & pgListId, UInt32 & pdwItemId, Int64 & pllListFlags, Boolean & p...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:29.43 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... bAccessDenied, Guid & pgDocid, Byte & piLevel, UInt64 & ppermMask, object & pvarBuildDependencySet, UInt32 & pdwNumBuildDependencies & pvarBuildDependencies, String, Object & pbstrFolderUrl, String & pbstrContentTypeOrder, Guid & pgDocScopeId) at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo (String bstrUrl, bPageView bytes, bPageMode bytes, bGetBuildDependencySet bytes, String bstrCurrentFolderUrl, Int32 iRequestVersion, byte bMainFileRequest, Boolean & pbCanCustomizePages, Boolean & pbCanPersonalizeWebParts, Boolean & pbCanAddDeleteWebParts, Boolean pbGhostedDocument, Boolean & pbDefaultToPersonal, Boolean & pbIsWebWelcomePage, String & pbstrSiteRoot) A Guid object pgSiteId, UInt32 & pdwVersion, String & pbstrTimeLastModified, String & pbstrContent, UInt32 & pdwPartCount, & pvarMeta...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:29.43 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation high ak8dj... Data, object & pvarMultipleMeetingDoclibRootFolders, String & pbstrRedirectUrl, Boolean & pbObjectIsList, Guid & pgListId, UInt32 & pdwItemId, Int64 & pllListFlags, Boolean & pbAccessDenied, Guid & pgDocid, Byte & piLevel, UInt64 & ppermMask, object & pvarBuildDependencySet, UInt32 & pdwNumBuildDependencies, object & pvarBuildDependencies, String & pbstrFolderUrl, String & pbstrContentTypeOrder, Guid & pgDocScopeId) at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo (String bstrUrl, bPageView bytes, bPageMode bytes, bGetBuildDependencySet bytes, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean & pbCanCustomizePages, Boolean & pbCanPersonalizeWebParts, Boolean & pbCanAddDeleteWebParts, Boolean pbGhostedDocument, Boolean & pbDefaultToPersonal, Boolean & pbIsWebWelcome...)    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:29.43 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation high ak8dj... Page, string & pbstrSiteRoot, Guid & pgSiteId, UInt32 & pdwVersion, String & pbstrTimeLastModified, String & pbstrContent, UInt32 & pdwPartCount, object & pvarMetaData, object & pvarMultipleMeetingDoclibRootFolders, String & pbstrRedirectUrl, Boolean & pbObjectIsList, Guid & pgListId, UInt32 & pdwItemId, Int64 & pllListFlags, Boolean & pbAccessDenied, Guid & pgDocid, Byte & piLevel, UInt64 & ppermMask, object & pvarBuildDependencySet, UInt32 & pdwNumBuildDependencies, object & pvarBuildDependencies, String pbstrFolderUrl, String & pbstrContentTypeOrder, Guid & pgDocScopeId) at Microsoft.SharePoint.SPWeb.GetWebPartPageContent (Uri pageUrl, Int32 pageVersion, PageView Requestedview, HttpContext context, Boolean forRender, Boolean includeHidden MainFileRequest Boolean, Boolean, Bool fetchDependencyInformation...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:29.43 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... ean & ghostedPage, String & siteRoot, Guid & siteId, Int64 & bytes, Guid & docId, UInt32 & docVersion, String & timeLastModified, Byte & level, object & buildDependencySetData, UInt32 & dependencyCount, object & buildDependencies, SPWebPartCollectionInitialState & initialState, object & oMultipleMeetingDoclibRootFolders, String redirectUrl, Boolean & ObjectIsList, Guid & listId) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit (HttpContext context, SPWeb spweb, Boolean mainFileRequest, take the path of String, Boolean, Boolean & isAppWeb Boolean & fGhostedPage, Guid & docId, a UInt32 object & docVersion, String & timeLastModified, SPFileLevel & spLevel, String & masterPageUrl, String & customMasterPageUrl, String & webUrl, String & siteUrl, Guid & siteId, & buildDe...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:29.43 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... pendencySetData, SPWebPartCollectionInitialState initialState, String & siteRoot, String & redirectUrl, object & oMultipleMeetingDoclibRootFolders, Boolean & objectIsList, Guid & listId, Int64 & bytes) in Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation (borrow context HttpContext, String path, Boolean, Boolean & isAppWeb, Boolean & fGhostedPage, Guid & docId, UInt32 & docVersion, String & timeLastModified, SPFileLevel & level, String & masterpageUrl, String & customMasterPageUrl, String & webUrl, String & siteUrl, Guid & siteId, object & buildDependencySetData) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData (HttpContext context, String path (, Boolean throwIfFileNotFound) at Microsoft.SharePoint.ApplicationRuntime.SPVir...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:29.43 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... tualFile.GetVirtualPathProviderCacheKey (String virtualPath) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey (String virtualPath) at System.Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath (VirtualPath virtualPath, Boolean & keyFromVPP) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal (VirtualPath virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal (VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert (HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allo...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:29.43 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... wBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult (HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.MasterPage.CreateMaster (HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection, TemplateControl owner) at System.Web.UI.Page.get_Master () at System.Web.UI.Page.ApplyMasterPage () at System.Web.UI.Page.PerformPreInit () at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:29.43 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation high ak8dj... at System.Web.UI.Page.ProcessRequest () at System.Web.UI.Page.ProcessRequest (HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () at System.Web.HttpApplication.ExecuteStep (IExecutionStep step, Boolean & completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps (Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification (HttpContext context, AsyncCallback cb) to the System.Web.HttpRuntime.ProcessRequestNotificationPrivate (wr IIS7WorkerRequest, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper (rootedObjectsPointer IntPtr, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) to System.Web.Hostin...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:29.43 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 files SharePoint Foundation ak8dj High... g.PipelineRuntime.ProcessRequestNotification (rootedObjectsPointer IntPtr, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion (IntPtr pHandler, RequestNotificationStatus & notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion (IntPtr pHandler, RequestNotificationStatus & notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper (IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification (rootedObjectsPointer IntPtr, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.43 (0 x 1894) 0 x 2160 files SharePoint Foundation aiv4w average worn 0MS to bind 29783 byte in the file stream 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.48 (0 x 1894) 0 x 2160 0x6FB7003 high ahjqp [forced due to the difference of logging, cached @ 30/01/2016 04:54:29.48, initial level: Verbose] SQL connection time: 0.0919 to Data Source = SPDEV; Initial Catalog = WSS_Content_YammerApp; Integrated Security = True; Enlist = False; Layout common = True; The size of the Pool of min = 0; Max Pool Size = 100; Connect Timeout = 15; Name of the SharePoint [w3wp] = application [2] 634c5a9d-8e11-703a-9cb1-3652a67fc35f [WSS_Content_YammerApp]
    30/01/2016 w3wp.exe 04:54:29.48 (0 x 1894) 0 x 2160 ahh6f Web Content Management Publishing Cache high [forced because of the gap of logging, initial level: Verbose] CreatePageFromUrlNoUpperCase: SPListItem for url '{0}' has got.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.49 (0 x 1894) 0 x 2160 SharePoint Foundation General average aj007 skip refreshToken because the token in the memory isn't fresh 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.50 (0 x 1894) 0 x 2160 SharePoint Foundation monitoring high b4ly leaving monitored range (EnsureListItemsData). Execution time = 13.7851 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.52 (0 x 1894) 0 x 2160 Web Content Management Publishing 98ee Cache medium try to store a checked out item (/ PAGES/YAMMEREXAMPLE.) ASPX) in the object cache.  Maybe it's because the extracted user navigates to the page, or it is possible that the SharePoint system account has the checked item.  To improve performance, you must set the property portalsuperuseraccount to the web application.  See the documentation for more information.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.52 (0 x 1894) 0 x 2160 SharePoint Foundation monitoring high b4ly leaving monitored range (CachedObjectFactory: Page caching to: / PAGES/YAMMEREXAMPLE.) ASPX). Execution time = 64.6914 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:29.54 (0 x 1894) 0 x 2160 SharePoint Foundation gallery of apps average ahnhh sends request to Office.com with the following 634c5a9d-8e11-703a-9cb1-3652a67fc35f URL: https://store.office.com/app/query?cmo=EN%2DUS&pmo=US&type=4&assetid=WA104218020&build=15%2E0%2E4569%2E1000&av=OSU150&origin=EC101785291&corr=%7B634c5a9d%2D8e11%2D703a%2D9cb1%2D3652a67fc35f%7D
    30/01/2016 w3wp.exe 04:54:29.61 (0 x 1894) 0 x 2160 alokv SharePoint Foundation received average market response of Office.com X-Machine App: eus2 - 000.retailer.osi.office .net, OmexStorefront_IN_3 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    01/30/2016 04:54:29.61 w3wp.exe (0x1894) 0x2160 SharePoint Foundation App Marketplace ahnhh Medium Sending Request to Office.com with the following URL:https://store.office.com/appinstall/unauthenticated?cmu=EN%2DUS&pmo=US&clienttoken=%3Cr%20v%3D%221%22%3E%3Ct%20aid%3D%22WA104218020%22%20pid%3D%22889100e1%2Dbb68%2D4619%2D92e2%2Db3ec7cbcb760%22%20cid%3D%220000000000000000%22%20did%3D%22%7BF107EF70%2D51F7%2D4C98%2D9114%2D228710B7E9D1%7D%22%20ts%3D%220%22%20sl%3D%22true%22%20et%3D%22Free%22%20ad%3D%222016%2D01%2D30T04%3A16%3A02Z%22%20sd%3D%222016%2D01%2D30%22%20te%3D%222017%2D01%2D29T04%3A16%3A02Z%22%20ss%3D%220%22%20%2F%3E%3Cd%3E%2FwrMK6hxyxBrm1NoQf80FiueXUSOOajR%2BnTrX93o9Ho%3D%3C%2Fd%3E%3C%2Fr%3E&ret=0&build=15%2E0%2E4569%2E1000&av=OSU150&origin=EC101785291&corr=%7B634c5a9d%2D8e11%2D703a%2D9cb1%2D3652a67fc35f%7D&corr=%7B634c5a9d%2D8e11%2D703a%2D9cb1%2D3652a67fc35f%7D 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.02 (0 x 1894) 0 x 2160 alokv SharePoint Foundation received average market response of Office.com X-Machine App: 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.02 (0 x 1894) 0 x 2160 SharePoint Foundation monitoring high b4ly leaving monitored range (OfficeProxy.SendWebRequest). Execution time = 414.391 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.02 (0 x 1894) 0 x 2160 acjjg deployment of SharePoint Foundation App average current user has System.Threading.Thread.CurrentPrincipal.Identity.Name = 0 # .w | SPDEV\sp_farm, System.Security.Principal.WindowsIdentity.GetCurrent (). Name = NT AUTHORITY\IUSR, System.Web.HttpContext.Current.User.Identity.Name = 0 # .w | SPDEV\sp_farm.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.02 (0 x 1894) 0 x 2160 SharePoint Foundation Deployment ahkn9 App high removal App with fingerprint digital yH + cZrtZa4ty6W6n0414 + oVNNb6E5W3jVfPcN4H9SDdXJibduRiJqy / WtHXc + VzLIXmgi3zAk + 6TkUFwDeQJMg == 743afc0a-d0a4-4640-987e-c72faf1b3863 634c5a9d-8e11-703a-9cb1-3652a67fc35f site
    30/01/2016 w3wp.exe 04:54:30.03 (0 x 1894) 0 x 2160 SharePoint Foundation App Deployment environment mq71 creating App with fingerprint digital yH + cZrtZa4ty6W6n0414 + oVNNb6E5W3jVfPcN4H9SDdXJibduRiJqy / WtHXc + VzLIXmgi3zAk + 6TkUFwDeQJMg == 743afc0a-d0a4-4640-987e-c72faf1b3863 site.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.03 (0 x 1894) 0 x 2160 acjjg deployment of SharePoint Foundation App average current user has System.Threading.Thread.CurrentPrincipal.Identity.Name = 0 # .w | SPDEV\sp_farm, System.Security.Principal.WindowsIdentity.GetCurrent (). Name = NT AUTHORITY\IUSR, System.Web.HttpContext.Current.User.Identity.Name = 0 # .w | SPDEV\sp_farm.    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.03 (0 x 1894) 0 x 2160 SharePoint Foundation General 8nca support Application error when access _layouts/15/addanapp.aspx, error = the system account cannot perform this action.   to Microsoft.SharePoint.Administration.SPAppAdministrationSecurityContext.DemandUserIsNotSystemAccount (SPUser user) to Microsoft.SharePoint.Administration.SPApp.CreateAppInstance (SPWeb web, CultureInfo installationLocale) at Microsoft.SharePoint.Administration.SPApp.AsyncLoadAndInstall (Byte [] print, Stream appStream, web As SPWeb, Guid productId, a version, String title, Int64 expectedSize, SPAppSource source, String contentMarket, String marketAssetId, String tempIconUrl, String oauthAppId) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.InstallApp (imprint of Byte [], Stream appStream, String oauthAppId, productId Guid, version, asset of the chain...    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    04:54:30.03 30/01/2016 * w3wp.exe (0 x 1894) 0 x 2160 SharePoint Foundation General average 8nca... ID, String title, expectedSize Int64, Boolean isUpgrade, String contentMarket, String iconUrl) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.StartDownload (Guid productId, String oauthAppId, Boolean isUpgrade) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.AppDownload (Boolean isUpgrade, Boolean autoRedirect) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.Render (HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal (HtmlTextWriter writer, a ControlAdapter adapter) at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 634c5a9d-8e11-703a-9cb1-3652a67fc35f
    30/01/2016 w3wp.exe 04:54:30.03 (0 x 1894) 0 x 2160 tkau SharePoint Foundation Runtime unexpected System.InvalidOperationException: the system account cannot perform this action.    to Microsoft.SharePoint.Administration.SPAppAdministrationSecurityContext.DemandUserIsNotSystemAccount (SPUser user) to Microsoft.SharePoint.Administration.SPApp.CreateAppInstance (SPWeb web, CultureInfo installationLocale) at Microsoft.SharePoint.Administration.SPApp.AsyncLoadAndInstall (Byte [] print, Stream appStream, web As SPWeb, Guid productId, a version, String title, Int64 expectedSize, SPAppSource source, String contentMarket, String marketAssetId, String tempIconUrl, String oauthAppId) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.InstallApp (imprint of Byte [], appStream Stream, String oauthAppId, Guid productId, a version String assetId, String title, Int64 expec...)    634c5a9d-8E11-703a-9cb1-3652a67fc35f
    30/01/2016 04:54:30.03 * w3wp.exe (0 x 1894) 0 x 2160 SharePoint Foundation Runtime unexpected tkau... tedSize, Boolean isUpgrade, String contentMarket, String iconUrl) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.StartDownload (Guid productId, String oauthAppId, Boolean isUpgrade) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.AppDownload (Boolean isUpgrade, Boolean autoRedirect) at Microsoft.SharePoint.ApplicationPages.StorefrontBase.Render (HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal (HtmlTextWriter writer, a ControlAdapter adapter) at System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 634c5a9d-8e11-703a-9cb1-3652a67fc35f

    Please let me know how to solve.

    Tons of thanks in advance.

    Siva

    Hello

    Your Question is beyond the scope of this community.

    Please repost your Question in the MSDN Forums for SharePoint:

    https://social.msdn.Microsoft.com/forums/Office/en-us/home?category=SharePoint

    Or in the TechNet Forums for SharePoint:

    https://social.technet.Microsoft.com/forums/Office/en-us/home?category=SharePoint

    SQL Server TechNet forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • Minimalist app is ends after 30 years... why?

    What are the minimum actions that an application needs to be able to stay running?

    As a learning exercise and to help test something, I tried to write an application almost without function (as in, has no function...) "don't call the functions").

    It starts with a nice white screen (provided by the operating system, I guess, since I don't return anything) and sits there for 30 seconds, it blocks a lower-level event any (not even the things BPS event... just thought posix).

    After 30 years, the operating system kills the process.

    No idea why?  What should do to live longer to an application?  Call bps_initialize() is not enough... try this.

    Should we create a context of screen?  Ask for any kind of events and start to receive them with a call to get_event()?  Or something else?

    (I vaguely remember Elena comment on AIR apps that need to do something in a timeout or they would be killed, but I don't remember what it was and can't find the thread).

    All applications (AIR, native, whatever) must create and present a window within 30 seconds.  Otherwise, the system assumes that the app is not started correctly and will kill him.

    The basic assumption is that applications exist to introduce interactive behavior to the users. :-)

  • Sending a big boost with the SDK high-level examples of results in a timeout

    Hello

    I try to send a big boost with the sample of high level. I have registered my valuation Service Push Blackberry application, deployed the SDK in Tomcat on my computer, my app has added to the list of high level sample applications and tried to send a little help with a message in plain text during broadcast (to the Subscriber of "push_all").

    This resulted in an IOException caused by a timeout: "taken IOException sending message to the address URL of PPG: https://cp3520.pushapi.eval.blackberry.com/mss/PD_pushRequest.

    I have a few test:

    1. I send a simple GET request in Forefox on https://cp3520.pushapi.eval.blackberry.com/mss/PD_pushRequest which resulted in 401, so I can reach this address.

    2 I tried to reproduce the request with a Firefox plugin. Here are the contents of my application:

    Headers:

    Permission: myBase64encodedcredentials

    limit: QfgeRDy0bk3pYpCMeL8Q

    multipart/related

    Content:

    -QfgeRDy0bk3pYpCMeL8Q
    Content-Type: application/xml; Charset = UTF-8


    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD">






    -QfgeRDy0bk3pYpCMeL8Q
    Content-Type: text/plain; Charset = UTF-8
    Push-Message-ID: bgsCVVfx6AD-1361888782229

    test
    -QfgeRDy0bk3pYpCMeL8Q-

    This resulted in a timeout.

    3 I tried the same query without the "multipart/related" header, and got this response:


    http://www.openmobilealliance.org/tech/DTD/pap_2.1.DTD">

    So I guess that it is not an authentication problem.

    Do you know what could prevent the response to be sent?

    Hello

    I finally solved the problem!

    In fact when I tried to reproduce the request I made a mistake in the headers, I put two different instead of ' Content-Type: multipart/related; Boundary = QfgeRDy0bk3pYpCMeL8Q; type = application/xml '. I tried with the firefox plugin again and get the same response as Matt told me in his private message, when tested with my credentials:

    
    http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">http://cp3520.pushapi.eval.blackberry.com/mss/PD_pushRequest" sender-name="RIM Push-Data Service" reply-time="2013-02-27T10:48:40Z">
    

    For the serevr part I think it was because of a proxy problem, you said. I could not download the installer of linux SDK on the Blackberry site, I installed the Windows SDK on my Windows computer, and I think that Java options were not used by the server (which is strange because I put it in the Tomcat service Java options). I copied the folder of the SDK on my Linux computer, added the Java options in catalina.sh and everything worked well with the sample of high level. So I guess that the problem comes from my Java Windows Setup.

    The tricky thing, I don't really understand is the timeout for the request with bad headers.

    Now, I need to know why the app is not subscribed to the service push, but it is another problem.

    Thank you all!

    Julien

  • Long-term headless app work: QTcpSocket receive do not

    We have an app without long-term head that uses sockets for IPC.

    Headless part contains a QTcpServer, the user interface of the QTcpSocket.

    the code without a head:

    server = new QTcpServer(this);
    bool ok = connect(server, SIGNAL(newConnection()), this, SLOT(onNewConnection()));server->listen(QHostAddress::LocalHost, m_port);
    

    user interface code:

    bool stateOk = connect(clientSocket, SIGNAL(stateChanged(QAbstractSocket::SocketState)), this, SLOT(onStateChanged(QAbstractSocket::SocketState)));
    if (!clientSocket->isOpen()) {
        clientSocket->connectToHost(QHostAddress::LocalHost, m_port);
        bool conOk = connect(clientSocket, SIGNAL(connected()), this, SLOT(connected()));
        bool disconOk = connect(clientSocket, SIGNAL(disconnected()), this, SLOT(disconnected()));
        bool readReadOk = connect(clientSocket, SIGNAL(readyRead()), this, SLOT(commandReceived()));
        bool errorOk = connect(clientSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
        Q_ASSERT(errorOk);
        qDebug() << "connected to server socket";
    }
    

    output debug shows headless headless app is running constantly, the signal is properly connected, the socket for the server returns isListening() to true.

    debug output of the user interface shows that all signals are correctly connected, and onStateChanged goes from HostLookupState to ConnectingState and finally to ConnectedState

    At this point, I'd wait the server socket to pull the signal of newConnection, but alas, it isn't.

    I generate and run the xandos example and it works correctly, but it does not long-term use and has the server in the user interface, while the part without head connects.

    I suspect that the app without head doesn't have an event loopand QTcpServer documentation states:

    Although QTcpServer is mostly designed for use with an event loop,it's possible to use it without one.In that case, you must use waitForNewConnection(),which blocks until either a connection is available or a timeout expires.
    

    Now I wonder:

    The long March without head app has an event loop?

    If this is not the case, how best to use the blocking call without disabling the rest of its features? A thread?

    Write that post little got me on the right track already, a problem merging caused the socket to the server must be started before you call the constructor of the Application (which provides the event loop).

    Now the server is running, receive a few orders, then she stops unexpectedly, the fires of the user interface
    QAbstractSocket::RemoteHostClosedError changes the State of ClosingState and UnconnectedState

  • Seeing classic BlackBerry stops flashing after timeout screen

    Exactly as the title says... My screen on my classic timeout is set to 60 seconds, when the screen turns off the light also blinks more, even if the message received is brand new and less than 60 seconds, old.

    Is there a setting I'm missing why? Anyone else noticing this? I tried to speak with the support of BB that they supplied with the phone, they were less than helpful.

    I had the same problem. You cannot fix it through the settings.

    Things went a bit better after I bought BeBuzz. Documentation and support for the app are nonexistent, so play with it a lot of things to try to understand.

    Shane.

  • How do the webworks app to load faster

    My application of webworks load everytime I open a local page, even if I have to open the same page in the same session. I see other applications open quickly. Is there not a way I can do load faster?  It's quite frustrating to demand the same page that I just opened loading seconds ago. Is there where the arrival of cache is useful? In addition, it benefits from OS5?

    Thanks in advance.

    You can also use the setTimeout() function to call a function on one or two seconds later.  This effectively allows others load javascript and processing code to go and so that the function call sitting waiting for the timeout switch.  I use this so that all formatting basic runs immediately, then I load the objects of additional UI that the user must actually run the app.

  • The difficulty to integrate DeviceLockState in app without a head.

    Hi, I just did the native webworks passage and it was great sofar.

    However, I'm unable to integrating the function DeviceLockState in an application without a head that I am building.

    Here's my main.cpp

    #include "service.hpp"
    
    #include 
    #include 
    #include 
    
    #include 
    #include 
    
    using namespace bb;
    
    int main(int argc, char **argv)
    {
        Application app(argc, argv);
    
        // Create the Application UI object, this is where the main.qml file
        // is loaded and the application scene is set.
        Service srv;
    
        // Enter the application main event loop.
        return Application::exec();
    }
    

    Here is my service.cpp

    #include "service.hpp"
    #include "settings.h"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    #include 
    
    using namespace bb::platform;
    using namespace bb::system;
    
    Service::Service() :
            QObject(),
            m_notify(new Notification(this)),
                    m_notify2(new Notification(this)),
                    m_settings(new Settings(this)),
                    m_invokeManager(new InvokeManager(this))
            {
        m_invokeManager->connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)),
                    this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));
    
            bb::platform::HomeScreen homeScreen;
           bool connectresult=  connect(&homeScreen, SIGNAL( lockStateChanged(bb::platform::DeviceLockState::Type) ),
                            this, SLOT( onLockStateChanged(bb::platform::DeviceLockState::Type) ));
    
                NotificationDefaultApplicationSettings settings;
                settings.setPreview(NotificationPriorityPolicy::Allow);
                settings.apply();
    
                m_notify->setTitle("Test");
                m_notify->setBody("Test is running.\n\n Select OPEN for settings.");
                m_notify2->setTitle("Test");
                m_notify2->setBody("Test has been stopped.\n\n Select OPEN for settings.");
    
                bb::system::InvokeRequest request;
                request.setTarget("com.example.Test");
                request.setAction("bb.action.START");
                m_notify->setInvokeRequest(request);
                m_notify2->setInvokeRequest(request);
    
                // other stuff
    }
    
    void Service::handleInvoke(const bb::system::InvokeRequest & request)
    {qDebug() << "##service got invoked: " << request.action();
        if (request.action().compare("com.DevJay.AutoThemeService.RESTART") == 0) {
                triggerNotification();
                m_settings->setValue("send", true).toBool();
                m_settings->setValue("flag",true).toBool();
                //updateWallpaper();
            }else if (request.action().compare("com.DevJay.AutoThemeService.STOPSERVICE") == 0) {
                qDebug() << "Headless stopped";
                bb::Application::instance()->requestExit();
                Notification::clearEffectsForAll();
                Notification::deleteAllFromInbox();
                m_notify2->notify();
            }/*else if(request.action().compare("com.DevJay.AutoThemeService.RESTART") == 0){
                triggerNotification();
            }*/
    }
    
    void Service::triggerNotification()
    {
        // Timeout is to give time for UI to minimize
        QTimer::singleShot(2000, this, SLOT(onTimeout()));
    }
    
    void Service::onLockStateChanged(bb::platform::DeviceLockState::Type newState)
    {qDebug()<<"onlockstatechanged";
    
    //do something
    
    }
    
    
    

    and my header service.hpp

    #ifndef SERVICE_H_
    #define SERVICE_H_
    
    #include 
    #include 
    #include "settings.h"
    
    namespace bb {
        class Application;
        namespace platform {
            class Notification;
        }
        namespace system {
            class InvokeManager;
            class InvokeRequest;
        }
    }
    class Settings;
    
    class Service: public QObject
    {
        Q_OBJECT
    public:
        Service();
        virtual ~Service() {}
    private slots:
        void handleInvoke(const bb::system::InvokeRequest &);
        void onLockStateChanged(bb::platform::DeviceLockState::Type newState);
        void onTimeout();
    
    private:
        bb::platform::Notification * m_notify;
        bb::platform::Notification * m_notify2;
        Settings * m_settings;
    
        bb::system::InvokeManager * m_invokeManager;
        void triggerNotification();
    };
    
    #endif /* SERVICE_H_ */
    

    I decclared under private slots slot and plug it into the .cpp service as described above. Qdebug shows that its connected but the slot is not called (I know this COS the qdebug nothing is displayed).

    Thankx for your help.

    Add to the service.hpp:

    private:
        HomeScreen* homeScreen;
    

    Then initialize the service.cpp class:

    homeScreen = new HomeScreen(this);
    

    Make sure you have:

    using namespace bb::platform;
    

Maybe you are looking for

  • RS232 and chart

    Hello! I'm new here and I would like to ask a question about Labview. Can you help me? In fact, I'm working on a project with a PIC. The PEAK sent 3 information (which evolves over time) to Laview (in my case, it is common, voltage and time) To send

  • Cannot play .mp4 files on Windows Media Player, Version 11.0.6002.1811 extensions.

    My daughter to download a Youtube video on my desktop, and when I try to play, a message appears that says: "the selected file has an extension (.mp4) that is not recognized by Windows Media Player, but the player may still be able to play. Because t

  • HP 6520: HP 6520 will not print black TEXT - will be pictures fine print

    I don't know what is happening with my HP 6520. I posted some time ago, thinking that it was just black as ink cartridge when I try to print a Word document, Internet Pages (any browser or operating system (I also have a Dell laptop, in addition to a

  • Windows 7 takes too long to respond

    Whenever I restart Windows 7 and once connected, the hard drive turns on indicating continue the constant disk activity. The hard drive light is on steadily (without blinking). This condition persists for 10 to 15 minutes during which all application

  • Client needs to access the devices on the existing site to site tunnels

    Hello and thanks in advance. We use ASA5510 in respect to the vpn appliance and currently have 90 + vpn tunnels (site to site tunnels) ipsec connected to this ASA. Recently, we configure a tunnel for one of our customers (site in tunnel). Now, this c