{"__v":1,"_id":"55f1b7d139e3e8190068b300","category":{"__v":7,"_id":"55f1970339e3e8190068b2b8","pages":["55f1a1e6229b772300779a34","55f1b11b39e3e8190068b2f1","55f1b59b39e3e8190068b2fc","55f1b6215fe76419007dc760","55f1b69539e3e8190068b2fe","55f1b90a5fe76419007dc763","55f1b93ffd98c42300acc643"],"project":"55de06fa57f7b20d0097636b","version":"55de06fa57f7b20d0097636e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-10T14:43:15.288Z","from_sync":false,"order":2,"slug":"android-sdk","title":"Android SDK"},"parentDoc":null,"project":"55de06fa57f7b20d0097636b","user":"55de06e19db51a0d0064947d","version":{"__v":10,"_id":"55de06fa57f7b20d0097636e","project":"55de06fa57f7b20d0097636b","createdAt":"2015-08-26T18:35:38.642Z","releaseDate":"2015-08-26T18:35:38.642Z","categories":["55de06fb57f7b20d0097636f","55f1962e3936d52d00fb3c8f","55f1970339e3e8190068b2b8","55f1970d229b772300779a1f","55f1971cfd98c42300acc605","55f1d5c7fd98c42300acc69f","563cbfe4260dde0d00c5e9d4","5644cf437f1fff210078e690","57dc1bbd3ed3450e00dc9ea7","58a600a2243dd30f00fd8773"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-10T17:03:13.858Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Your application can completely control when the PushSpring SDK transmits data over the network, as well as when it utilizes the CPU to recognize locally installed applications. Calling:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PushSpring.sharedPushSpring().setTransmissionAllowed(false);\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\nwill suspend all network traffic and CPU utilization.  All data will be buffered; delivery will begin again when you call:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"PushSpring.sharedPushSpring().setTransmissionAllowed(true);\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note\",\n  \"body\": \"If you call this method <strong>before</strong> any other SDK method you can force the SDK to not transmit even its first initialization events until a later period.\"\n}\n[/block]","excerpt":"You can control when the PushSpring SDK transmits data over the network","slug":"controlling-network-and-cpu-utilization-a","type":"basic","title":"Controlling Network and CPU Utilization"}

Controlling Network and CPU Utilization

You can control when the PushSpring SDK transmits data over the network

Your application can completely control when the PushSpring SDK transmits data over the network, as well as when it utilizes the CPU to recognize locally installed applications. Calling: [block:code] { "codes": [ { "code": "PushSpring.sharedPushSpring().setTransmissionAllowed(false);", "language": "java" } ] } [/block] will suspend all network traffic and CPU utilization. All data will be buffered; delivery will begin again when you call: [block:code] { "codes": [ { "code": "PushSpring.sharedPushSpring().setTransmissionAllowed(true);", "language": "java" } ] } [/block] [block:callout] { "type": "info", "title": "Note", "body": "If you call this method <strong>before</strong> any other SDK method you can force the SDK to not transmit even its first initialization events until a later period." } [/block]