Skip to content

Instantly share code, notes, and snippets.

View OrenBochman's full-sized avatar
🏠
Working from home

Oren Bochman OrenBochman

🏠
Working from home
  • WMF
  • 11:02 (UTC +03:00)
View GitHub Profile
@OrenBochman
OrenBochman / !readme.md
Last active October 26, 2018 15:30
Agile Android

#Data based junit test.

from Pragmatic unit testing in java with junit

@OrenBochman
OrenBochman / setup-java-arm.sh
Created October 24, 2018 17:52 — forked from ricardojlrufino/setup-java-arm.sh
Script to Setup JAVA (on rapberry, beaglebone, etc...)
#!/bin/bash
DFILE=`find -name "*arm*.tar.gz"`
echo "Found: " $DFILE
if [ -z "$DFILE" ]; then
echo "ERROR: Please download JRE/JDK and put in current directory"
exit 1
fi
@OrenBochman
OrenBochman / Shell.java
Created October 24, 2018 17:52 — forked from ricardojlrufino/Shell.java
Run shell comands from APP as SUDO (like start ADB)
package br.com.criativasoft.eduaccess.util;
import android.util.Log;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
@OrenBochman
OrenBochman / ADBCheatSheet.md
Created October 12, 2018 08:44 — forked from HugoMatilla/ADBCheatSheet.md
ADB Cheat Sheet

CONFIG

Include adb and other android tools on your path

In Users/hugomatilla.bash_profile add export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/tools

My own adb location

cd /Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools

START

LiveData

@OrenBochman
OrenBochman / !!readme.txt
Last active October 5, 2018 19:07
Android Scheduling - JobDispatcher
# Firebase JobDispatcher
### What's a JobScheduler?
The JobScheduler is an Android system service available on API levels 21 (Lollipop)+.
It provides an API for scheduling units of work (represented by `JobService` subclasses) that will be executed in your app's process.
@OrenBochman
OrenBochman / !!readme.md
Last active September 22, 2018 16:52
android analytics

android analytics

tasks

  1. is this an instant app or a regular app
  2. what is the apk size (actually the apk size) Getting Installed App Size
  3. what is the available memory
@OrenBochman
OrenBochman / !!readme.md
Last active September 15, 2018 08:35
Everything ADB (Android Debug Bridge) - scripts for Android Testing

Android testing ADB scripts

@OrenBochman
OrenBochman / !!Agile.md
Last active November 18, 2018 07:46
Agile Android - Testing

Agile Android - Testing

Planning

To write agile android - testing is essential otherwise it quickly beocomes impossible to sperate code.

Testing Atoms

  • Rule for launching activity
  • Rule for launching service
@OrenBochman
OrenBochman / !!readme.md
Last active September 14, 2018 20:55
android sharepreferencess

SharedPreferences