This alias adds ADB Screen Capture on the command-line
Add the alias to your ~/.bash_profile
alias screencap="adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > "
NOTE: to add adb to the command-line
| public class EndlessListActivity<D> extends Activity { | |
| private EndlessRecyclerOnScrollListener mEndlessScrollListener; | |
| private EndlessListAdapter mAdapter; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| RecyclerView listView = (RecyclerView) findViewById(R.id.list); | |
| LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); |
| # Built application files | |
| *.apk | |
| *.ap_ | |
| # Files for the Dalvik VM | |
| *.dex | |
| # Java class files | |
| *.class |
| OkHttpClient okHttpClient = new OkHttpClient(); | |
| okHttpClient.interceptors().add(mRefreshAndRetryInterceptor); | |
| mRestAdapter = new RestAdapter.Builder() | |
| ... | |
| .setClient(new OkClient(okHttpClient)) | |
| .build(); | |
| private final Interceptor mRefreshAndRetryInterceptor = new Interceptor() { |