Git Product home page Git Product logo

alan-sdk-android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alan-sdk-android's Issues

Can't controll android commponet

Bug Report:

i try to toast a message by uisng command but nothing happening

What is the current behavior?

there not show bug but nothing hapening. i donlwoded your android examples. this is the code which i update android java main class. all things are working but how to impliment this

package app.alan.alan_example_integration_java;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.widget.Toast; // Import Toast class

import com.alan.alansdk.AlanCallback;
import com.alan.alansdk.AlanConfig;
import com.alan.alansdk.button.AlanButton;
import com.alan.alansdk.events.EventCommand;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.Objects;

public class MainActivity extends AppCompatActivity {
private AlanButton alanButton;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    AlanConfig config = AlanConfig.builder().setProjectId("a2068f552fcce88059fc8a17083aa1c42e956eca572e1d8b807a3e2338fdd0dc/stage").build();
    alanButton = findViewById(R.id.alan_button);
    alanButton.initWithConfig(config);

    AlanCallback alanCallback = new AlanCallback() {

        public void onCommand(final EventCommand eventCommand) {
            try {
                JSONObject command = eventCommand.getData();
                String commandName = command.getJSONObject("data").getString("command");
                Log.d("AlanButton", "onCommand: commandName: " + commandName);

                // Show toast message
                showToast("Received command: " + commandName);
            } catch (JSONException e) {
                Log.e("AlanButton", Objects.requireNonNull(e.getMessage()));
            }
        }
    };

    // Register callbacks
    alanButton.registerCallback(alanCallback);
}

// Helper method to show toast message
private void showToast(String message) {
    Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();
}

}

What is the expected behavior?

Which versions of alan-sdk-android are you using, and which Android OS versions affected by this issue?

Did it work in the previous versions?

alan-sdk-android - ??? yes
Android OS version - ???

Asking a Question?

Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai

Feature Request

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)

Could not find com.budiyev.android:code-scanner:2.1.0

hello there , i watched your video ( Building a Voice Assistant for an Android App
)
I did exactly what you said to do in your video but an error message appears
:Could not find com.budiyev.android:code-scanner:2.1.0.
Required by:
project :app > app.alan:sdk:4.12.0

Alan SDK size

I am using Alan-android SDK in my App but after using the Alan sdk my android App size goes to huge. So my question is that is any way how to reduce APK size after releasing App on goole play store.

Failed to resolve: com.budiyev.android:code-scanner:2.1.0

Bug Report:

In Android Studio, when trying to import app:alan:sdk in a project and building with it
You'll get:
Failed to resolve: com.budiyev.android:code-scanner:2.1.0

After some research
This used to be on JCenter which has become deprecated.

They indicated (yuriy-budiyev/code-scanner#120) they've moved to 'https://jitpack.io'. But when I add that as a dependencyresolution setting in Android Studio I still get errors.

settings.gradle:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}

I've tested
implementation 'app.alan:sdk:4.12.0' and implementation 'app.alan:sdk:4.18.0'

Method 'onCommand(com.alan.alansdk.events.EventCommand)' is never used

Bug Report:

Method 'onCommand(com.alan.alansdk.events.EventCommand)' is never used
its not show in yellow color

Screenshot 2024-02-22 202440

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem (if possible).
Your bug will get fixed much faster if we can run your code.

What is the expected behavior?

Which versions of alan-sdk-android are you using, and which Android OS versions affected by this issue?

Did it work in the previous versions?

alan-sdk-android - ???
Android OS version - ???

Asking a Question?

Please describe your question here or ask it on Stack Overflow:
http://stackoverflow.com/questions/tagged/alan-ai

Feature Request

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)

minSdk Issue

When I try running my project, I get the following error:

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [app.alan:sdk:4.7.13] gradle\caches\transforms-2\files-2.1\500091d2934feee2b54e43637f208bc2\jetified-sdk-4.7.13\AndroidManifest.xml as the library might be using APIs not available in 16

Suggestion: use a compatible library with a minSdk of at most 16,
            or increase this project's minSdk version to at least 21,
            or use tools:overrideLibrary="com.alan.alansdk" to force usage (may lead to runtime failures)

Choose the placement of Alan activation button in UI

It some times is placed on the bottom-left corner, and on the bottom-right corner some other time, in a minimalistic application I created using Android Studio, and migrating the code to Kotlin, but I don't think there's an issue with the migration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.