13

I am trying to simulate poor network connectivity.

I set Android Studio's emulator Cellular to Signal strength = None, but it is still allowing network traffic to go through (I am making successful HTTP requests using Okhttp after setting "None" in the emulator)

Is this a bug?

enter image description here

tenprint
  • 1,123
  • 1
  • 11
  • 29
  • 1
    I submitted this as a bug to Google: https://issuetracker.google.com/issues/116536183 – tenprint Nov 03 '18 at 13:33
  • I'm facing the same issue. – Ricardo Apr 12 '19 at 12:05
  • 1
    I'm facing the same issue in latest (current) build as well. I added comment to issue tracker with Google, but it doesn't look like this bug is getting any attention. – Greg9Strat Aug 01 '19 at 14:01
  • 1
    Honestly, I don't think it's a bug. That seems to be a non-functional UI button jammed into the emulator, just to be made functional someday. Changing settings to any given option takes no effect – Farid Nov 20 '19 at 11:31

2 Answers2

2

It seems to be a bug - I also stumbled upon the problem and found this bug-report: https://issuetracker.google.com/issues/136937549 Interestingly switching to roaming there switches off the network for me (what I mainly needed - maybe it helps you too) Otherwise staring the issue can help getting a fix sooner as google then knows it is annoying to devs.

ligi
  • 39,001
  • 44
  • 144
  • 244
1

You may need to set 'Network type'. I think this is a bug... so confused about it.I mean 'how Cellular data works without signal strength???'

clzd0792
  • 56
  • 5