Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover Communication error please try again #7

Open
Frontpage656 opened this issue Aug 17, 2022 · 0 comments
Open

Hover Communication error please try again #7

Frontpage656 opened this issue Aug 17, 2022 · 0 comments

Comments

@Frontpage656
Copy link

Frontpage656 commented Aug 17, 2022

I tried to follow each and every step as directed in HOVER DOCUMENTATION but I ended getting this warning here

img

if is there a way to solve plz help. @davkutalek @UseHover

MainActivity

package com.example.nolla_money_hover;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.hover.sdk.api.Hover;
import com.hover.sdk.api.HoverParameters;


public class MainActivity extends AppCompatActivity {
    TextView run;

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

        Hover.initialize(MainActivity.this);

        run = findViewById(R.id.run);
        run.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ussd();
            }
        });

    }


    private void ussd() {
        Intent intent = new HoverParameters.Builder(MainActivity.this)
                .request("7ee3c804")
                .extra("receiverNumber","xxxxxxxxxx")
                .extra("amount","100")
                .buildIntent();

        startActivityForResult(intent,0);
    }

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant