Skip to content

Instantly share code, notes, and snippets.

View neosinan's full-sized avatar

neosinan

  • İstanbul, Turkey
View GitHub Profile
@neosinan
neosinan / moverService
Created February 18, 2021 22:13
moverService
import socket
import win32serviceutil
import servicemanager
import win32event
import win32service
import shutil
import os
import time
from datetime import datetime
/*
This file is part of Repetier-Firmware.
Repetier-Firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Repetier-Firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
public static final Uri EC = EXTERNAL_CONTENT_URI; //Added as Media image
public static final Uri IC = INTERNAL_CONTENT_URI;
public static final String FILES = "image";
public static final String PROVIDER_AUTHORITY = "com.neosinan.cspr.simplecamera";
public static final Uri CONTENT_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/");
public static final Uri FILES_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/" + FILES + "/");
<provider
android:authorities="com.neosinan.cspr.simplecamera"
android:name=".Provider.ImageProvider"
android:exported="true"/>
public static final Uri EC = EXTERNAL_CONTENT_URI; //Added as Media image public static final Uri IC = INTERNAL_CONTENT_URI;
public static final String FILES = "image";
public static final String PROVIDER_AUTHORITY = "com.neosinan.cspr.simplecamera";
public static final Uri CONTENT_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/");
public static final Uri FILES_URI = Uri.parse("content://"
+ PROVIDER_AUTHORITY + "/" + FILES + "/");
public static final String CONTENT_TYPE = "vnd.android.cursor.dir/image" + PROVIDER_AUTHORITY + "." + FILES;
Siyah ş’utz’e ш1уц1э
Beyaz fıjı фыжьы
Kırmızı ptlıjı плъыжьы
Kahverengi haptlı хьаплъы
Yeşil vıtzışo уцышъо
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
Intent Ourintent2 = new Intent(Listening.this, MyService.class);
Ourintent2.putExtra("dek1", dek1);
startService(Ourintent2);
bool = true;
} else {
try{
//MyService.initMediaPlayers();
public class Listening extends AppCompatActivity {
MediaPlayer oursong;
boolean bool = false;
private SeekBar mSeekBarVolume;
SharedPreferences sp;
enum State{
Retrieving,
Stopped,
Preparing,
Playing,