Skip to content

Instantly share code, notes, and snippets.

private static final String ACTION_CLOSE_SYSTEM_DIALOGS = "android.intent.action.CLOSE_SYSTEM_DIALOGS";
private void registerForBroadcasts() {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(ACTION_CLOSE_SYSTEM_DIALOGS);
registerReceiver(mReceiver, intentFilter);
}
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1
[13:51]cgatay@local:...ce.perso/Camera/Camera$ git diff -i HEAD^
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index f0d38af..feb48b2 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1911,7 +1911,8 @@ public class Camera extends NoSearchActivity implements View.OnClickListener,
updateCameraParametersPreference();
}
}
-
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index c335b02..2bad6dc 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -26,22 +26,22 @@ import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
+import android.content.pm.PackageManager;
import android.database.Cursor;
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index c335b02..887be30 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -31,6 +31,7 @@ import android.media.AudioManager;
import android.net.Uri;
import android.os.IBinder;
import android.os.SystemClock;
+import android.os.SystemProperties;
import android.preference.PreferenceManager;
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package fr.gatay.cedric.android.bintools;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.InvocationTargetException;
@CedricGatay
CedricGatay / tiny_mce_src.js
Created October 24, 2010 07:51
TinyMCE 3.3.9.2 patched to work with Apache Wicket's ajax requests
(function(win) {
var whiteSpaceRe = /^\s*|\s*$/g,
undefined, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1';
var tinymce = {
majorVersion : '3',
minorVersion : '3.9.2',
releaseDate : '2010-09-29',
@CedricGatay
CedricGatay / .gitconfig
Created October 30, 2010 09:41
git config with autosql alter
[color]
ui = auto
[alias]
amend = commit --amend
st = status
who = shortlog -sne
oneline = log --pretty=oneline --abbrev-commit --graph
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
@CedricGatay
CedricGatay / gist:3416073
Created August 21, 2012 14:38
Jenkins : quick create job and vm for feature branch
import hudson.model.FreeStyleProject
import hudson.model.Result
import hudson.plugins.copyartifact.CopyArtifact
import hudson.plugins.git.BranchSpec
import hudson.tasks.BuildTrigger
def featureName = "feature"
def branchName = "origin/feature/mybranch"
def jenkins = jenkins.model.Jenkins.instance