Android Open Source - android-wear-GoPro-Remote Go Pro Action






From Project

Back to project page android-wear-GoPro-Remote.

License

The source code is released under:

Apache License

If you think the Android project android-wear-GoPro-Remote listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.pascalwelsch.goprowearremote.net;
//w  ww.  j a  v a2s.c  om
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;

import android.util.Log;

/**
 * @author Pascal Welsch
 * @since 25.06.14.
 */
public final class GoProAction {

    public static final int TAKE_PHOTO = 10;

    public static final int START_VIDEO = 20;

    public static final int STOP_VIDEO = 21;

    public static final int SWITCH_TO_PHOTO = 1;

    public static final int SWITCH_TO_VIDEO = 2;

    public static final int POWER_ON = 30;

    public static final int POWER_OFF = 31;

    private static final String TAG = GoProAction.class.getSimpleName();

    private GoProAction() {

    }

    public static void fireGoProCommand(final String type, final String command,
            final boolean isBacpacRequest, final String password, RequestQueue queue) {

        final GoProRequest goProRequest = new GoProRequest(password, type, command,
                isBacpacRequest,
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(final VolleyError volleyError) {
                        Log.v(TAG, volleyError.toString());
                    }
                }
        );
        queue.add(goProRequest);
    }
}




Java Source Code List

com.pascalwelsch.goprowearremote.net.GoProAction.java
com.pascalwelsch.goprowearremote.net.GoProNotificationCmdReceiver.java
com.pascalwelsch.goprowearremote.net.GoProRequest.java
com.pascalwelsch.goprowearremote.ui.home.HomeActivity.java
com.pascalwelsch.goprowearremote.ui.home.HomeFragment.java
com.pascalwelsch.goprowearremote.ui.notifications.GoProNotificaionManager.java
com.pascalwelsch.goprowearremote.utils.ViewHelper.java