Comments (10)
Hi finaly i got the problem
I where sending a null context iI catch out the error after trying to debug your code
I'm Really sorry about that
Greate Job it work's perfectly
Thank's
from voipussd.
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
at com.romellfudi.ussdlibrary.USSDController.isAccessiblityServicesEnable(USSDController.java:280)
at com.romellfudi.ussdlibrary.USSDController.verifyAccesibilityAccess(USSDController.java:202)
at com.romellfudi.ussdlibrary.USSDController.callUSSDInvoke(USSDController.java:101)
at com.romellfudi.ussdlibrary.USSDController.callUSSDInvoke(USSDController.java:74)
from voipussd.
Here is my code
USSDController.verifyAccesibilityAccess(this);
HashMap map = new HashMap<>();
USSDApi ussdApi;
map.put("KEY_LOGIN", new HashSet<>(Arrays.asList("espere", "waiting", "loading", "esperando")));
map.put("KEY_ERROR", new HashSet<>(Arrays.asList("problema", "problem", "error", "null")));
ussdApi = USSDController.getInstance(this);
ussdApi.callUSSDInvoke("#99#", map, new USSDController.CallbackInvoke() {
@Override
public void responseInvoke(String message) {
// message has the response string data
String dataToSend = "0";// <- notifyTaskComplete "data" into USSD's input text
}
@Override
public void over(String message) {
// message has the response string data from USSD or error
// response no have input text, NOT SEND ANY DATA
}
});
from voipussd.
Did you add xml? Or ask user to allow ussdservice permissions?
from voipussd.
and the manifest permission
from voipussd.
Fork and update code , to go over it
from voipussd.
These errors happen when you ask the accessibility service is installed & disabled
Sent from my Galaxy S8+ using FastHub
from voipussd.
@yann-yvan, did you work it out?
from voipussd.
@yann-yvan can you update your code or send a gift?
from voipussd.
I recently created a ussd-community chat please join: https://gitter.im/romellfudi/VoIpUSSD .
from voipussd.
Related Issues (20)
- [VoIpUSSD] Automated Upgrade HOT 1
- Lokk HOT 1
- Improvement of installation documentation HOT 3
- Interaction
- how to click a button HOT 2
- cancel() method doesn't seem to work HOT 6
- My app doesn't launches with flutter and platform channel
- Detecting failed HOT 3
- Get Response First and Reply HOT 18
- Third Option not working HOT 8
- rcursively creates callback HOT 6
- Default Activity not found HOT 2
- A Lack of Coding
- Detect if a USSD is currently running HOT 11
- [VoIpUSSD] Automated Upgrade HOT 1
- Final USSD dialog message showing on top of Splash Screen HOT 13
- USSD Request throwing Exception HOT 6
- Programatically close any dialog before running USSD HOT 6
- Ussd stop at first step HOT 9
- how to make instance in kotlin ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voipussd.