Comments (13)
The last ussdDialog is dismissed
from voipussd.
- Is that message the final response or are you you waiting for more incoming windows? .
In my humble view, the api detect an ending window, and stop the service before closing it.
Does the splash-dialog keep showing?
from voipussd.
That's the final response. The splash-dialog is dismissed immediately after. But the final response is shows on top of the splash-dialog before being dismissed
from voipussd.
which part of your code it's stopped, over method? ; Otherwise you could call cancel method
from voipussd.
I have tried the cancel method in over method. Still not working
ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
@Override
public void responseInvoke(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
// first option list - select option 1
ussdApi.send("1", new USSDController.CallbackMessage() {
@Override
public void responseMessage(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
ussdApi.cancel();
getActivity().stopService(svc);
}
});
ussdApi.cancel();
}
@Override
public void over(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
ussdApi.cancel();
getActivity().stopService(svc);
Log.d("APP", "STOP OVERLAY DIALOG");
}
});
from voipussd.
Drop ussdApi.cancel() line, why do you put in that line?
Delete every canceling statement.
from voipussd.
I have deleted them, still no changes. I only added them to try to solve the problem
ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
@Override
public void responseInvoke(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
// first option list - select option 1
ussdApi.send("1", new USSDController.CallbackMessage() {
@Override
public void responseMessage(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
}
});
}
@Override
public void over(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
getActivity().stopService(svc);
Log.d("APP", "STOP OVERLAY DIALOG");
}
});
from voipussd.
Put a delay before dismiss the splash
from voipussd.
Is this what you mean? added a delay on over method. still no changes
ussdApi.callUSSDOverlayInvoke(phoneNumber, map, new USSDController.CallbackInvoke() {
@Override
public void responseInvoke(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
// first option list - select option 1
ussdApi.send("1", new USSDController.CallbackMessage() {
@Override
public void responseMessage(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
}
});
}
@Override
public void over(String message) {
Log.d("APP", message);
binding.result.append("\n-\n" + message);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
getActivity().stopService(svc);
Log.d("APP", "STOP OVERLAY DIALOG");
}
}, 3000);
}
});
from voipussd.
Is there a way to set the Splash Screen WindowManager.LayoutParams
at topmost of any dialog prompted by the USSD response?
from voipussd.
It's been set. Could you say me whether the last ussdDialog has never dismissed?
from voipussd.
The problem is it still pops up in-front of the Splash screen before being dismissed by the over method
from voipussd.
- That depends on Android SO.
- The last dialog might have had overlayShowing permissions
- You should communicate with Google developer teams immediately on the grounds that they know why the last dialog has overlayPermission too; Besides, ask to them whether you could change the attributes of that kind of dialogs
When they reply to you please re-open this issue.
please keep me updated
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
- Cancel should set the `isRunning` flag to `false` HOT 3
- Not working in Android 13 HOT 2
- 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
- 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.