Thank you!

We could not find anything for "" !

Browse By Category

Search results have nothing to do with ""?report

Lovense SDK for Android

Lovense SDK Introduction

The Lovense Android SDK is a set of application interfaces based on Android 4.3 and above devices. You can use this set of SDK to develop applications for Android mobile devices. By calling the Lovense SDK interface, you can easily control Lovense toys and build applications with rich functions and strong interactivity.

Process for using the Lovense SDK

  1. Copy the following file to your 'libs' directory.

    Lovense.arr

  2. Queto 'lovense.arr' in your app build.gradle,Configure 'libs' in the program build.gradle

    app build.gradle

    program build.gradle

  3. Configure permissions and register service in AndroidManifest.xml

    Permission list

     <uses-permission android:name="android.permission.INTERNET" /> 
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 
     <uses-permission android:name="android.permission.BLUETOOTH" />  
     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> 
     <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    Register service

     <service 
     android:name="com.xtremeprog.sdk.ble.BleService"
     android:enabled="true" />  
  4. Connect Lovense Toys.

    Pass your token into Lovense framework

    Lovense.getInstance(getApplication()).setDeveloperToken("Your token");

    Add a scan success notification

    Lovense.getInstance(getApplication()).searchToys(new OnSearchToyListener() {
    @Override
    public void onSearchToy(LovenseToy lovenseToy) { } // Find toys
                        
    @Override
    public void finishSearch() { }  // Scan finish
                        
    @Override
    public void onError(LovenseError msg) { } // error
                        
    });

    Add a connection success notification

    Lovense.getInstance(getApplication()).connectToy(toyId, new OnConnectListener() {
            @Override
            public void onConnect(String toyId,String status) { // Toy connection status
                  switch (status) {
                     case LovenseToy.STATE_CONNECTING:
                       break;
                     case LovenseToy.STATE_CONNECTED:
                       break;
                     case LovenseToy.STATE_FAILED:
                       break;
                     case LovenseToy.SERVICE_DISCOVERED: 
                       break;
                  }
            }
            @Override
            public void onError(LovenseError lovenseError) {} // Connection error
     });

    Add sending command notification

    Lovense.getInstance(getApplication()).addListener(toyId, new OnCallBack() {});

    Search for the toys over Bluetooth

    Lovense.getInstance(getApplication()).addListener(toyId, new OnCallBack() {});

    Stop searching for toys

    Lovense.getInstance(getApplication()).stopSearching();

    Save the toys

    Lovense.getInstance(getApplication()).saveToys(lovenseToys, new OnErrorListener());

    Retrieve the saved toys

    Lovense.getInstance(getApplication()).listToys(new OnErrorListener());

    Connect the toy

    Lovense.getInstance(getApplication()).connectToy(toyId,new OnConnectListener());

    Disconnect the toy

    Lovense.getInstance(getApplication()).disconnect(toyId);

    Send a command to the toy

    Lovense.getInstance(getApplication()).sendCommand(toyId,LovenseToy.COMMAND
                            _VIBRATE,vibrateLevel);
  5. For API documentation, please Click Here

Select Coupon

Coupon
Extra Discount

Not available

[amount]

OFF

Applies to [toyname] only For orders over [amount] Valid till - [date] For orders over [amount] and new users only Collect Now Use Now Check Coupons Continue Shopping From [coupon activity name] campaign (CST) Expired Shop with Coupon Not available Buy with Coupon
Date of Birth Cancel Confirm Month Day Continue shopping Use CONGRATULATIONS! For compliance, please share your birthdate to receive our SMS updates. Save

Coupons not applicable to Christmas Gift Boxes,Lovense Webcam,Lovense Sex Machine, Lovense Mini Sex Machine,Gush2,Osci 3.

Lucky Buyer Discount

background
{0} OFF

For your order over {0}

Expires in :

Use
*Applies to any Lovense toy excluding single products with a discount over 50%.
Date of Birth Cancel Confirm Month Day Continue shopping Use CONGRATULATIONS! For compliance, please share your birthdate to receive our SMS updates. Save

Coupons not applicable to Christmas Gift Boxes,Lovense Webcam,Lovense Sex Machine, Lovense Mini Sex Machine,Gush2,Osci 3.

Lucky Buyer Discount

{0} OFF

For your order over {0}

Use
Thanks for subscribing!
New Year Coupons
Go to Store

For a better experience, we suggest you upgrade your browser or using other browser.

Loading...
Are you sure?

 

Login
     Forgot Password?
  Login

This order has been cancelled.

We will initiate a refund that should reach you within 7-10 working days.

OK

This order has already been shipped out. You can’t cancel it now. Please contact us for further assistance.

Security Tip

Dear

Due to a recent system security inspection, we have identified that your password is weak.

Please update your password to ensure the security of your account.

Cancel Change now

Please verify your email address

To ensure the security of your account, Please verify your email address.

Click "Verify" button to verify your email address.

Cancel Verify

We've sent the verification email to .

Please check your inbox and click the link within 24 hours to complete your verification.

If you don’t see it, please check your spam folder or resend.

Cancel I've verified