This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$classpathfile = ".classpath" | |
$cordovaversion = (get-item env:"CORDOVAVERSION").Value | |
$librarypath = "libs/cordova-" + $cordovaversion + ".jar" | |
Write-Host("Cordova Version: {0}" -f $cordovaversion) | |
Write-Host("Library Path: {0}" -f $librarypath) | |
$doc = [xml](Get-Content -Path $classpathfile) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enableTimer(data) { | |
if (data.TimerEnabled) | |
registerForBootStart(data); | |
else | |
twitterService.enableTimer( 60000, | |
function(r){ registerForBootStart(r) }, | |
function(e){ alert('An error has occurred in enableTimer') }); | |
} | |
function registerForBootStart(data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="backgroundService-2.0.0.js"></script> | |
<script type="text/javascript" src="twitterService.js"></script> | |
<script type="text/javascript" > | |
var twitterService = cordova.require('cordova/plugin/twitterService'); | |
document.addEventListener('deviceready', function() { | |
getStatus(); | |
}, true); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cordova.define( 'cordova/plugin/twitterService', function(require, exports, module) { | |
CreateBackgroundService('com.red_folder.sample.TwitterService', require, exports, module); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service android:name="com.yournamespace.yourappname.MyService"> | |
<intent-filter> | |
<action android:name="com.yournamespace.yourappname.MyService"/> | |
</intent-filter> | |
</service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<receiver android:name="com.red_folder.phonegap.plugin.backgroundservice.BootReceiver"> | |
<intent-filter> | |
<action android:name="android.intent.action.BOOT_COMPLETED"> | |
</action> | |
</intent-filter> | |
</receiver> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin name="BackgroundServicePlugin" value="com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePlugin"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
ul | |
{ | |
list-style: none; | |
} | |
li | |
{ | |
padding-bottom: 1em; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<access origin="http://search.twitter.com" /> |