Hover Communication error please try again
Frontpage656 opened this issue · 0 comments
Frontpage656 commented
I tried to follow each and every step as directed in HOVER DOCUMENTATION but I ended getting this warning here
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);
}
}