What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2022-01-30 13:05:16
hide keyboard android
public void hideKeyboard(Context context, View view) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); } // call from inside an Activity... Add solution -
C 2022-01-29 10:36:54
RTOS task status
/* This example demonstrates how a human readable table of run time stats information is generated from raw data provided by uxTaskGetSystemState(). The human readable table is written to pcWriteBuffer. (see the vTaskList() API function which actually do... Add solution -
Kotlin 2022-01-28 16:26:30
kill other apps in kotlin
// add this permission to AndroidManifest.xml <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/> //and use this code to kill the process val am = getSystemService(Activity.ACTIVITY_SERVICE) as ActivityMana... Add solution -
C# 2022-01-22 09:15:21
xamarin forms alarm
public string Create(string title, string message, DateTime scheduleDate, Dictionary<string, string> extraInfo) { // Create the unique identifier for this notifications. var notificationId = Guid.NewGuid().ToString(); ... Add solution -
Other 2021-11-22 05:35:21
android get connected bluetooth devices
BluetoothManager manager = (BluetoothManager) getSystemService(BLUETOOTH_SERVICE); List<BluetoothDevice> connected = manager.getConnectedDevices(GATT); Log.i("Connected Devices: ", connected.size()+""); Add solution -
PHP 2021-11-21 09:01:24
php numberformatter currency without symbol
// change symbol to whatever you want, nothing to no-symbol $fmt = new NumberFormatter('en_GB', NumberFormatter::CURRENCY); $fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, ''); echo $fmt->formatCurrency($price, 'EUR'); Add solution -
Javascript 2021-11-15 11:48:23
js deep copy array
var sheep=[ {"height":20,"name":"Melvin"}, {"height":18,"name":"Betsy"} ]; var clonedSheep=JSON.parse(JSON.stringify(sheep)); //clone array of objects //note: cloning like this will not work... Add solution -
Other 2021-11-14 18:05:16
xamarin forms alarm
public string Create(string title, string message, DateTime scheduleDate, Dictionary<string, string> extraInfo) { // Create the unique identifier for this notifications. var notificationId = Guid.NewGuid().ToString(); ... Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5