<commit_before>var EditWindow = require('ui/EditWindow'),
	SettingsWindow = require('ui/SettingsWindow');

function ApplicationWindow() {
    
    var animationsOn = false;

    var osname = Ti.Platform.osname;

    // Create our main window
    var self = Ti.UI.createWindow({
        backgroundImage : '/images/bg-small-purple.png',
        navBarHidden : true, // iOS only
        modal : true,
        exitOnClose : true  // Android only
    });

	var webView;
	function createWebView() {
		webView  = Ti.UI.createWebView({
	        backgroundColor:'transparent',
	        opacity: animationsOn?0:1,
	        enableZoomControls : false, // Android only
	        url : '/HTML/index.min.html'
	    });
	    
	    self.add(webView);
	}<commit_msg>Android: Try to force close when being backgrounded<commit_after>var EditWindow = require('ui/EditWindow'),
	SettingsWindow = require('ui/SettingsWindow');

function ApplicationWindow() {
    
    var animationsOn = false;

    var osname = Ti.Platform.osname;

    // Create our main window
    var self = Ti.UI.createWindow({
        backgroundImage : '/images/bg-small-purple.png',
        navBarHidden : true, // iOS only
        modal : true,
        exitOnClose : true  // Android only
    });
    
	if (!ios) {
		Ti.Android.currentActivity.addEventListener('pause', function() {
			self.close();
			var activity = Titanium.Android.currentActivity;
	     	activity.finish();
		});
		self.addEventListener('pause', function() {
			self.close();
			var activity = Titanium.Android.currentActivity;
	     	activity.finish();
		});
	}

	var webView;
	function createWebView() {
		webView  = Ti.UI.createWebView({
	        backgroundColor:'transparent',
	        opacity: animationsOn?0:1,
	        enableZoomControls : false, // Android only
	        url : '/HTML/index.min.html'
	    });
	    
	    self.add(webView);
	}
{'fraction_non_alphanumeric': 0.12506680919294494, 'fraction_numerical': 0.002137894174238375, 'mean_word_length': 2.6349514563106795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7465551', 'n_tokens_mistral': 582, 'n_tokens_neox': 537, 'n_words': 119}