-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
#!/bin/bash | |
# Android Emulator launcher script | |
# Created: April 28, 2025 | |
# Author: Sergey Chilingaryan | |
# | |
# This script helps manage and run Android emulators with common configuration options. | |
# It detects the Android SDK location, lists available emulators with interactive | |
# arrow key navigation, and launches them with customizable options. |
https://stackoverflow.com/questions/37063267/high-cpu-usage-with-android-emulator-qemu-system-i386-exe | |
The cause of the constant CPU usage is the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file. | |
Change/add those two lines | |
hw.audioInput=no | |
hw.audioOutput=no | |
On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini | |
On Windows the file is located at C:\Users\<username>\.android\avd\<AVD_Name>.avd\config.ini |
# Purpose: Shell script to connect a USB connected device via adb over WiFi | |
# | |
# Author: Amanshu Raikwar | |
# | |
# Assumptions: | |
# 1. USB debugging is enabled in the Android device | |
# 2. The Android device is connected to the computer via USB | |
# 3. The Android device is connected to the same wifi as the computer | |
# 4. The Android device is accessible through port 5555 over the wifi network | |
# |
package com.chilisoft.myapplication | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.location.LocationManager | |
import androidx.appcompat.app.AppCompatActivity | |
import com.google.android.gms.common.api.ApiException | |
import com.google.android.gms.common.api.ResolvableApiException |
android.applicationVariants.all { variant -> | |
variant.outputs.all { | |
outputFileName = "${variant.name}-${variant.versionName}.${variant.versionCode}.apk" | |
} | |
} |
import java.util.concurrent.atomic.AtomicBoolean | |
/** | |
* Created with ❤ by Sergey Chilingaryan | |
*/ | |
// Yes, I made class for this simple call | |
// but this is more readable than having booleans and checking ifs | |
// I hate using booleans with ifs to do things once |
package pl.kpob.utils.extensions | |
import android.app.Activity | |
import android.content.Context | |
import android.graphics.Color | |
import android.support.v4.content.ContextCompat | |
import android.view.WindowManager | |
import flow.Flow | |
import org.jetbrains.anko.AlertDialogBuilder | |
import pl.sisms.gminformix.utils.extensions.supportsLollipop |
/** | |
* Created by sergey on 1/29/18. | |
*/ | |
import android.os.SystemClock; | |
import java.util.ArrayList; | |
public class ProfilingUtil { | |
private static final String PROFILING = "PROFILING"; |
/** | |
* A general RecyclerViewAdapter which supports OnItemClickListener and OnItemLongClickListener. | |
* | |
*/ | |
public abstract class BaseRecyclerViewAdapter<VH extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<RecyclerView.ViewHolder> { | |
private RecyclerViewListener.OnItemClickListener itemClickListener; | |
private RecyclerViewListener.OnItemLongClickListener itemLongClickListener; | |
public void setOnItemClickListener( |