romellfudi / VoIpUSSD

:octocat: 📞 IMEI (USSD) Library in Android Devices by @romellfudi
https://romellfudi.github.io/VoIpUSSD/
GNU General Public License v3.0
181 stars 104 forks source link

How to fix flashing window? #4

Closed xwiz closed 6 years ago

xwiz commented 6 years ago

Hi, great work here. Do you have any idea how to fix the window that flashes and disappears?

romellfudi commented 6 years ago

Well, It not directly possible, thats Windows are builded by OS, which has high privileges, thats the reason i OverlayShowingService class (worked at Android O), but now its imposible hide or resize.

xwiz commented 6 years ago

Hi @romellfudi , I figured out how to put the overlay but there still seems to be a flash just immediately during the dial. It seems Hover SDK has figured out how to complete hide everything. I am wondering if using an outgoing call receiver will solve it but it looks like too much work for a small feature

romellfudi commented 6 years ago

Hi again @xwiz ,let me see what i can do with Hover SDK, if you know a sample using that SDK, please share it here.

xwiz commented 6 years ago

I just saw one here @romellfudi : https://github.com/jumaallan/Hover

But it's pretty simple https://www.usehover.com/docs, I'm just curious how it works.

romellfudi commented 6 years ago

@xwiz What 'steps' do you think put in Hover Api?

screen shot 2018-10-25 at 8 50 44 am
xwiz commented 6 years ago

Uh it's not required to test it but it just means like ussd input response.

xwiz commented 6 years ago

Did you sign up on usehover? You have to sign up and create action https://www.usehover.com/docs/actions

romellfudi commented 6 years ago

ok, i resolved, let me see your code, how navigate for all windows, you could put your code here?

xwiz commented 6 years ago

navigate for all windows?

romellfudi commented 6 years ago

EXAMPLE send 1, then send 2, then... over

xwiz commented 6 years ago

The goal of hover is so that you don't have to do that. You just do everything in one line of code.

romellfudi commented 6 years ago

i am tried use this code, but i couldn't pass the first view: .extra("first", "1") .extra("second", "1")

romellfudi commented 6 years ago

Always return me "input requied"

xwiz commented 6 years ago

OK but does it send only one input successfully?

romellfudi commented 6 years ago

not

romellfudi commented 6 years ago

How do you define your action_name variables?

xwiz commented 6 years ago

I think it's the first input on the create action page

xwiz commented 6 years ago

It's not very user friendly

romellfudi commented 6 years ago

@xwiz , wait. What do you want with this SDK?, they use OnboardOverlayService like me. Its same

romellfudi commented 6 years ago

My overlay its simple, if you wanna hide all windows, just extends my OverlayShowingService and remove transparent background, set full color, and setting what ever you want like a textColor, a gif, or what ever you need

romellfudi commented 6 years ago

My code is better than Hover cuz its open source, so you could copy my OverlayShowingService, custom the view and set your custom layout like Hover.

@xwiz I hope you have an excellent day.

xwiz commented 6 years ago

Yes, you are right. But there code is heavily tested. I was interested because they don't have any flashing window issues.

romellfudi commented 6 years ago

Hi @xwiz, i'm developing a new overlay class/ splash progressing screen

romellfudi commented 6 years ago

in Version 1.1,d you could use SplashLoadingService, this overlay widget hide completely all ussd windows: