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
Those are values for android 4.4.4 in S3 for Smasung S3. | |
V/ActivityManager$SmsObserver(17187): .onChange: SMS Send !!! timestamp: 1446649046654 | |
V/ActivityManager$SmsObserver(17187): .onChange: _id and its value: 211 | |
V/ActivityManager$SmsObserver(17187): .onChange: thread_id and its value: 7 | |
V/ActivityManager$SmsObserver(17187): .onChange: address and its value: +48692631872 | |
V/ActivityManager$SmsObserver(17187): .onChange: person and its value: null | |
V/ActivityManager$SmsObserver(17187): .onChange: date and its value: 1446649046654 | |
V/ActivityManager$SmsObserver(17187): .onChange: date_sent and its value: 1446649022000 | |
V/ActivityManager$SmsObserver(17187): .onChange: protocol and its value: 0 |
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
//If file is compressed uncompress it | |
if(FilenameUtils.getExtension(file.getAbsolutePath()) | |
.equals("zip")){ | |
logger.debug("file={}, unzipping", | |
file.getAbsolutePath()); | |
} |
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
private boolean isMyServiceRunning(Class<?> serviceClass) { | |
logger.debug("serviceClass={}", serviceClass); | |
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); | |
for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { | |
if (serviceClass.getName().equals(service.service.getClassName())) { | |
return true; | |
} | |
} | |
return false; | |
} |
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
/** | |
* Test broadcast receiver used only for debug | |
*/ | |
private BroadcastReceiver testTransitStateReceiver = new BroadcastReceiver() { | |
@Override | |
public void onReceive(Context context, Intent intent) { | |
logger.debug("Entry"); | |
Log.d("SomeReceiver", "testTransitStateReceiver"); | |
if(TEST_ACTION.equals(intent.getAction())){ | |
String extras = intent.getStringExtra("state"); |
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
logger.error("msg={}", e.getMessage()); |
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
private void readLogs() { | |
logger.debug("Enter"); | |
BufferedReader logReader = null; | |
try { | |
String line = null; | |
File log = getLogFile(); | |
logReader = new BufferedReader(new FileReader(log)); | |
while ((line = logReader.readLine()) != null) { |
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
<RelativeLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<de.hdodenhof.circleimageview.CircleImageView | |
android:id="@+id/no_answer_image" | |
android:layout_width="40dp" | |
android:layout_height="40dp" | |
android:layout_alignParentLeft="true" | |
android:layout_marginLeft="5dp" |
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
$scope.excludedTrips = _.reject($scope.excludedTrips, function(objArr){ | |
return objArr.id == event.id; | |
}); |
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
_calculateOffset: function(bearing_angle, radius){ | |
//Calculate destination point based on bearing and distance | |
//http://www.movable-type.co.uk/scripts/latlong.html | |
var d2r = L.LatLng.DEG_TO_RAD; //simple convert do radians | |
var r2d= L.LatLng.RAD_TO_DEG; //simple convert to degrees | |
var radius = radius/1500; | |
var lat = this._latlng.lat * d2r; | |
var lng = this._latlng.lng * d2r; | |
var angle = bearing_angle * d2r; | |
var R = 6372.795477598; |
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 addFailedTask(taskID){ | |
if(taskID != null){ | |
$scope.failedTaskList.push(taskID); | |
} | |
$scope.failedTaskList = _.uniq($scope.failedTaskList); | |
} |
OlderNewer