Skip to content

Instantly share code, notes, and snippets.

Avatar
Working from home

Georgi Koemdzhiev georgikoemdzhiev

Working from home
View GitHub Profile
@georgikoemdzhiev
georgikoemdzhiev / uwp.cs
Created Apr 22, 2018
Scan for paird and unpaired bluetooth devices in UWP app
View uwp.cs
public async Task<List<Models.Printer>> ListAllPrinters()
{
//Gets all printers inside the Database
var printerDevices = await _deviceService.GetAllPrinters();
//Gets all unpaired Bluetooth devices
var unpairedDevices = BluetoothDevice.GetDeviceSelectorFromPairingState(false);
//Gets all paired Bluetooth devices
var pairedDevices = BluetoothDevice.GetDeviceSelectorFromPairingState(true);
View ActiveMinutesActivity.java
public class ActiveMinutesActivity extends AppCompatActivity implements IActiveMinutesView {
private static final String TAG = ActiveMinutesActivity.class.getSimpleName();
public static String CHECK_SH_JOB_ID_KEY = "check_sh_job_id_key";
@Inject
IActiveMinutesPresenter mPresenter;
@Inject
SharedPreferences mSharedPreferences;
@BindView(R.id.toolbar)
Toolbar mToolbar;
private JobManager mJobManager;
View criminalintent_Crime.java
package criminalintent.android.bignerdranch.com.criminalintent;
import java.util.UUID;
/**
* Created by koemdzhiev on 23/02/2015.
*/
public class Crime {
private UUID mId;
private String mTitle;