This file contains 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
// references internal ContentObserver class | |
SettingsObserver observer = new SettingsObserver(new Handler()); | |
// start watching for changes | |
observer.observe(); | |
// where we do our work | |
updateSettings(); | |
// Anonymous inner class to handle watching Uris | |
class SettingsObserver extends ContentObserver { | |
SettingsObserver(Handler handler) { |
This file contains 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
package com.jbirdvegas.example; | |
import android.util.Log; | |
import java.io.File; | |
public class VoltageControlTable { | |
private final String TAG = getClass().getSimpleName(); | |
private String mTable = null; |
This file contains 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
package com.example.sneakylist; | |
import android.preference.PreferenceFragment; | |
import android.widget.AbsListView; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: jbird | |
* Date: 1/9/13 | |
* Time: 1:16 PM |
This file contains 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
package com.example.untitled1; | |
import android.provider.SyncStateContract; | |
/** | |
* Since we have no need to interact with the UI thread we can do all these | |
* operations in the worker thread. We generally use the AsyncTask class | |
* if we need to do something on the UI thread (ie update view) after | |
* our long running task but since here we are only performing IO tasks | |
* we don't need the UI thread to be involved |
This file contains 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
http://cloc.sourceforge.net v 1.56 T=2268.0 s (56.8 files/s, 16755.4 lines/s) | |
-------------------------------------------------------------------------------- | |
Language files blank comment code | |
-------------------------------------------------------------------------------- | |
XML 12569 73656 430838 6163653 | |
C++ 18084 958136 961917 5082931 | |
C 13862 817664 1114762 4933013 | |
Java 31622 833545 1904876 4234798 | |
C/C++ Header 26955 697243 1390929 2702941 | |
HTML 6494 101219 53494 1116927 |
This file contains 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
# To enable ProGuard in your project, edit project.properties | |
# to define the proguard.config property as described in that file. | |
# | |
# Add project specific ProGuard rules here. | |
# By default, the flags in this file are appended to flags specified | |
# in ${sdk.dir}/tools/proguard/proguard-android.txt | |
# You can edit the include path and order by changing the ProGuard | |
# include property in project.properties. | |
# | |
# For more details, see |
This file contains 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
package com.aokp.romcontrol.fragments.team; | |
import android.util.Log; | |
import com.aokp.romcontrol.util.CMDProcessor; | |
import com.aokp.romcontrol.util.CommandResult; | |
import com.aokp.romcontrol.util.Executable; | |
import com.aokp.romcontrol.util.Helpers; | |
/** | |
* Created with IntelliJ IDEA. |
This file contains 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
package com.aokp.romcontrol.fragments.team; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.preference.Preference; | |
import android.preference.PreferenceGroup; | |
import android.view.View; | |
import com.aokp.romcontrol.AOKPPreferenceFragment; | |
import com.aokp.romcontrol.R; |
This file contains 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
package com.jbirdvegas.webview; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.ArrayAdapter; | |
import android.widget.ListView; | |
import com.jbirdvegas.webview.aokp.CMDProcessor; | |
import com.jbirdvegas.webview.aokp.Executable; | |
import java.util.ArrayList; | |
public class PasswordFinder extends Activity { | |
@Override |
This file contains 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
#!/bin/sh | |
# wait till we are connected to the internet to run the script | |
while ! wget http://google.com -O- 2>/dev/null | grep -q Lucky; do | |
sleep 3 | |
done | |
exec $1 | |
cd $HOME/sec/ |
OlderNewer