短信接收器在通话时无法正常工作

时间:2019-09-19 15:38:06

标签: android broadcastreceiver

我的短信接收器工作正常,但是我的手机处于通话状态并接收短信,接收器无法正常工作。我的代码

import numpy as np

xd = np.arange(0, 20, 1)
yd = np.arange(0, 10, 1)

grid = np.random.choice([True, False], (len(xd), len(yd)))

x_start = 2.7
x_end = 4.9

y_start = 1.5
y_end = 5.7


## find line equation
m = (y_end - y_start)/(x_end-x_start)
c = y_start - m*x_start

## find y value of line at all starting x of grid
y_line = m*xd + c

## find y index of cell at which line cross at each start of grid
insert_ind = yd.searchsorted(y_line)

## find x and y index of grid where line intersect
x_index, y_index = zip(*[(i,ind) for i, ind in enumerate(insert_ind) if (ind>0 and ind<len(yd)-1)])

## create grid with all False for intersecting and set intersecting cells to True
intersecting_grid = np.full((len(xd), len(yd)), False)
intersecting_grid[x_index, y_index] = True

result = intersecting_grid & grid

print(result)

}

我该如何解决?我正在尝试使用Android 9和5 在正常状态下接收机工作良好 对不起,我的英语

0 个答案:

没有答案