This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final int RC_SIGN_IN = 9001; | |
| private GoogleApiClient mGoogleApiClient; | |
| @Override | |
| public void onCreate(@Nullable Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| // Configure sign-in to request the user's ID, email address, and basic | |
| // profile. ID and basic profile are included in DEFAULT_SIGN_IN. | |
| GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) | |
| .requestEmail() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread. | |
| at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:62) | |
| at android.os.Handler.handleCallback(Handler.java:733) | |
| at android.os.Handler.dispatchMessage(Handler.java:95) | |
| at android.os.Looper.loop(Looper.java:149) | |
| at android.app.ActivityThread.main(ActivityThread.java:5257) | |
| at java.lang.reflect.Method.invokeNative(Native Method) | |
| at java.lang.reflect.Method.invoke(Method.java:515) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void login(final String mac, final String devicesOs, final String appVersion, String userAcct, String userPwd, String memType) { | |
| getSubscription().add(ApiClient.getInstance().personLogin(mac, devicesOs, appVersion, userAcct, userPwd, memType) | |
| .doOnSubscribe(new Action0() { | |
| @Override | |
| public void call() { | |
| getView().showLoading(); | |
| } | |
| }) | |
| .subscribeOn(Schedulers.newThread()) | |
| .observeOn(AndroidSchedulers.mainThread()) // (a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * $RCSfile$ | |
| * $Revision$ | |
| * $Date$ | |
| * <p/> | |
| * Copyright 2003-2007 Jive Software. | |
| * <p/> | |
| * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * $RCSfile$ $Revision$ $Date$ | |
| * <p/> | |
| * Copyright 2003-2007 Jive Software. | |
| * <p/> | |
| * All rights reserved. Licensed under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * <p/> | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package tw.com.fet.ecs.xmpp.level1.thread.readinputstream.factory; | |
| import android.preference.PreferenceManager; | |
| import android.support.annotation.Nullable; | |
| import com.fetnet.libfetnet.Log; | |
| import com.hiiir.toolkit.debug.HrLog; | |
| import org.jivesoftware.smack.packet.Message; | |
| import org.jivesoftware.smackx.packet.DelayInformation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package tw.com.fet.ecs.xmpp.level1.listener; | |
| import com.fetnet.libfetnet.Log; | |
| import org.jivesoftware.smack.PacketListener; | |
| import org.jivesoftware.smack.packet.Message; | |
| import org.jivesoftware.smack.packet.Packet; | |
| import tw.com.fet.ecs.xmpp.history.ChatHistory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package tw.com.fet.ecs.xmpp.level1.filter; | |
| import org.jivesoftware.smack.filter.PacketFilter; | |
| import org.jivesoftware.smack.packet.Message; | |
| import org.jivesoftware.smack.packet.Packet; | |
| public class EmmaDisplayedPacketFilter implements PacketFilter { | |
| @Override | |
| public boolean accept(Packet packet) { | |
| if (!(packet instanceof Message)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package tw.com.fet.ecs.manager; | |
| import android.annotation.TargetApi; | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.database.Cursor; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Matrix; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package tw.com.fet.ecs.image.watermark; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Canvas; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.util.ArrayList; |
OlderNewer