public class PopupActivity extends AppCompatActivity {
public static PopupActivity instance;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
#!/bin/bash | |
adb tcpip 5555 | |
sleep 2 | |
ip=`adb shell ifconfig | awk '/inet addr:/{print $2}' | awk -F: '/addr:/{print $2}' | tail -n 1` | |
echo Connecting at IP $ip | |
echo Detatch device and press [ENTER] to continue | |
read | |
adb connect $ip |
#!/bin/bash | |
# | |
# | |
# Script to pull SQLite database from an Android device/emulator | |
# By: Shahzar Ahmed | |
# | |
# | |
# | |
echo "============================" | |
echo "=== SQLite DB Pull Script ==" |
public static class CreateItemDialog extends DialogFragment { | |
@Override | |
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | |
getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE); | |
return super.onCreateView(inflater, container, savedInstanceState); | |
} | |
@Override |