Skip to content

Instantly share code, notes, and snippets.

@evasyuk
evasyuk / AndroidManifest.xml
Last active October 23, 2015 13:57
quick cheat-paper for GCM setup
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.genyware.whereareyou"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="15"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
1. download depot-tools
2. unzip it
3. export PATH=$PATH:"your path"
4. even if step 3 failed, use "your full path"/depot_tools/fetch webrtc_android
5. step 4 would create "src" folder in your currently setted up folder
>> now you have sources of your webrtc copy
6. go to README.md
7.
8.
9.
http://www.slideshare.net/pickerweng/android-camera-architecture-8098156
https://groups.google.com/forum/#!topic/android-porting/yK17XZXkupI/discussion
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install -g phonegap
___
build
___
curl -sL https://deb.nodesource.com/setup | sudo bash -
public class customViewGroup extends ViewGroup {
public customViewGroup(Context context) {
super(context);
}
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
}
import org.apache.tools.ant.taskdefs.condition.Os
def getPlatformNdkBuildCommand() {
def rootDir = project.rootDir
def localProperties = new File(rootDir, "local.properties")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
instr -> properties.load(instr)
}
#!/usr/bin/env bash
#
# this script is intend to automize routine of creating file header
# with main aim of avoiding errors
SCRIPT_PATH=`pwd -P`
SUBMODULE="SUBMODULE"a
SRC_PATH="${SCRIPT_PATH}/src"
@evasyuk
evasyuk / system_information from Steam
Created July 2, 2016 15:54
high ping bug, system information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3c
@evasyuk
evasyuk / README.md
Created September 6, 2016 12:00 — forked from gabrielemariotti/README.md
A SectionedGridRecyclerViewAdapter: use this class to realize a simple sectioned grid `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned grid RecyclerView.Adapter without changing your code.

Screen

The RecyclerView has to use a GridLayoutManager.

This is a porting of the class SimpleSectionedListAdapter provided by Google

If you are looking for a sectioned list RecyclerView.Adapter you can take a look here