Skip to content

Instantly share code, notes, and snippets.

def self.load_appium_txt(opts = {})

Load appium.txt (toml format) the basedir of this file + appium.txt is what's used

[caps]
app = "path/to/app"
@lanetteamkaushal
lanetteamkaushal / webview
Created January 27, 2016 11:42
This gits for my problem and solutions
solve webview problem
add --keepattribute
package com.example.lcom75.checkuilasync;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
@lanetteamkaushal
lanetteamkaushal / URLParse.java
Created January 19, 2016 09:01
Common codes
import java.net.*;
import java.io.*;
public class ParseURL {
public static void main(String[] args) throws Exception {
URL aURL = new URL("http://example.com:80/docs/books/tutorial"
+ "/index.html?name=networking#DOWNLOADING");
System.out.println("protocol = " + aURL.getProtocol()); //http