You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
Cheef's Grand APDU List Smartcard Selected Information APDU list | |
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info | |
#------------+------------------------+------------------------+----------------------+--------------------------------+ | |
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE | | |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE | | |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ |
package com.example.sellectorsample; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
import android.widget.TextView; | |
public class MainActivity extends Activity implements OnClickListener { |
function add (a, b) { | |
let res = '', c = 0 | |
a = a.split('') | |
b = b.split('') | |
while (a.length || b.length || c) { | |
c += ~~a.pop() + ~~b.pop() | |
res = c % 10 + res | |
c = c > 9 | |
} | |
return res |