-
Connect the device via USB and make sure debugging is enabled.
-
Run
adb tcpip 5555 -
Find the IP address
MACOS: adb shell ip route
| /* | |
| * Copyright 2018 Google LLC | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package com.your.package | |
| import android.app.Dialog | |
| import android.os.Bundle | |
| import com.your.package.R | |
| import com.google.android.material.bottomsheet.BottomSheetDialog | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| /** | |
| * BottomSheetDialog fragment that uses a custom |
| # | |
| # Build configuration for Circle CI | |
| # | |
| # See this thread for speeding up and caching directories: | |
| # https://discuss.circleci.com/t/installing-android-build-tools-23-0-2/924 | |
| # | |
| general: | |
| artifacts: | |
| - /home/ubuntu/AndroidCI/app/build/outputs/apk/ |
| [alias] | |
| l = !git --no-pager log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -30 | |
| ll = !git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| la = !git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all | |
| tree = log --oneline --decorate --graph # display git log as a tree | |
| st = status | |
| ss = !"ss() { git status -s | awk '{print NR,$0}' | awk -F: '{ print \"\\033[1;30m\" $1 \"\\033[0m\" }'; }; ss" | |
| # view status of files changed |
| /** | |
| * Our demo fragment | |
| */ | |
| public static class CircularRevealingFragment extends Fragment { | |
| OnFragmentTouched listener; | |
| public CircularRevealingFragment() { | |
| } |
| # | |
| # Build configuration for Circle CI | |
| # | |
| general: | |
| artifacts: | |
| - /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
| machine: | |
| environment: |
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.view.ViewTreeObserver; | |
| import android.view.animation.AccelerateInterpolator; |
| [user] | |
| name = FirstName LastName | |
| email = you@yourdomain.com | |
| [alias] | |
| A = add -A | |
| a = add | |
| aa = add --all | |
| ae = add --edit | |
| ai = add --interactive | |
| amend = commit --amend -C HEAD |