Skip to content

Instantly share code, notes, and snippets.

View cavarzan's full-sized avatar

Deividi cavarzan

  • giro.tech
  • Brazil
View GitHub Profile
name value
A -5
B 20
C 22
D 18
E -2
F 6
G 26
H 18
This file has been truncated, but you can view the full file.
CM31122017000000596878547 OUT 00001
L01122017000000000035000 ADT 50155-NOVA MUTUM IND000000001000000000 1.1.1.2.0002 00002| 00000 |
L01122017000000000035000 ADT 50155-NOVA MUTUM IND000000001500000000 1.1.1.2.0002 00003| 00000 |
L01122017000000002348000ADT 50155 NOVA MUTUM IND 000000000004754000 2.1.1.3.0008 00004| 00000 |
L01122017000000002348000ADT 50155 NOVA MUTUM IND 000000000005120000 2.1.1.3.0008 00005| 00000 |
L011220170000000023
apply plugin: 'com.android.model.library'
def gpg_cpp_path = file(project(':library-so').projectDir).absolutePath + ""
// stlport configuration ["c++_static", "c++_shared", "gnustl_static", "gnustl_shared"]
// used to set stl and location of libgpg.a
def stlportType = "c++"
def stllinkType = "static"
model {
Object first = Observable
.create(s -> {
System.out.println("hue");
s.onNext(new Object());
new Handler();
s.onCompleted();
})
.subscribeOn(HandlerScheduler.from(new AsyncHandler("IO_HANDLER")))
.observeOn(AndroidSchedulers.mainThread())
.toBlocking()
return Observable.fromCallable(MobileBackendManager::getManager)
.subscribeOn(HandlerScheduler.from(new CustomHandler("MCS")))
.observeOn(Schedulers.io());
Observable
.create(s -> {
s.onNext(new Object());
s.onCompleted();
})
.subscribeOn(HandlerScheduler.from(new Handler())) // just using new Handler()
.observeOn(AndroidSchedulers.mainThread())
.subscribe();
Observable
.create(s -> {
// do some crazy stuff in "IO_HANDLER"
s.onNext(new Object());
s.onCompleted();
})
.subscribeOn(HandlerScheduler.from(new CustomHandler("IO_HANDLER")))
.observeOn(AndroidSchedulers.mainThread()) // don't forget to switch back to MainThread.
.subscribe();
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.os.Process;
import java.util.concurrent.Semaphore;
public class CustomHandler extends Handler {
public class PushIntentService extends IntentService {
@Override
protected void onHandleIntent(Intent intent) {
handleNotification(intent.getExtras());
}
private void handleNotification(Bundle extras) {
NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.Gravity;