You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the opened issues and there are no duplicates
Describe the bug
I succeed my app (apk).
Then I copied my-app (app-release.apk) to my android-phone.
Then installed my-app successfully.
Then clicked icon of my-app, but app was quit immediately.
What is the problem?
Code sample
Code
importmatplotlibimportmatplotlib.pyplotaspltimportnumpyasnpimportfletasftfromflet.matplotlib_chartimportMatplotlibChartmatplotlib.use("svg")
defmain(page: ft.Page):
# Fixing random state for reproducibilitynp.random.seed(19680801)
dt=0.01t=np.arange(0, 30, dt)
nse1=np.random.randn(len(t)) # white noise 1nse2=np.random.randn(len(t)) # white noise 2# Two signals with a coherent part at 10Hz and a random parts1=np.sin(2*np.pi*10*t) +nse1s2=np.sin(2*np.pi*10*t) +nse2fig, axs=plt.subplots(2, 1)
axs[0].plot(t, s1, t, s2)
axs[0].set_xlim(0, 2)
axs[0].set_xlabel("time")
axs[0].set_ylabel("s1 and s2")
axs[0].grid(True)
cxy, f=axs[1].cohere(s1, s2, 256, 1.0/dt)
axs[1].set_ylabel("coherence")
fig.tight_layout()
chart=MatplotlibChart(fig, expand=True)
#page.add(chart)defon_button_click(e):
plt.cla()
#plt.clf()# Fixing random state for reproducibilitynp.random.seed(23412)
dt=0.01t=np.arange(0, 30, dt)
nse1=np.random.randn(len(t)) # white noise 1nse2=np.random.randn(len(t)) # white noise 2# Two signals with a coherent part at 10Hz and a random parts1=np.sin(2*np.pi*10*t) +nse1s2=np.sin(2*np.pi*10*t) +nse2fig, axs=plt.subplots(1, 1)
#axs[0].plot(t, s1, t, s2)#axs[0].set_xlim(0, 2)#axs[0].set_xlabel("timesssss")#axs[0].set_ylabel("s2 and s1")#axs[0].grid(True)#cxy, f = axs[0].cohere(s1, s2, 256, 1.0 / dt)#axs[0].set_ylabel("coherence")cxy, f=axs.cohere(s1, s2, 256, 1.0/dt)
axs.set_ylabel("coherence")
fig.tight_layout()
#chart.update()page.update()
page.add(
ft.ElevatedButton("Update Stock Chart", on_click=on_button_click),
chart
)
ft.app(main)
To reproduce
build my-app (flet build apk -vv)
Copy apk-file to my android-phone.
Installed my-app in android-phone.
Click my-app.
Expected behavior
When clicked my-app on android-phone, app was quit immediately.
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
Windows 10
Flet version
0.25.*
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered:
edwardcho
changed the title
After installing my apk, I ran it, but it quit immediately.
After installing my apk (on android-phone), I ran it, but it quit immediately.
Dec 22, 2024
Duplicate Check
Describe the bug
I succeed my app (apk).
Then I copied my-app (app-release.apk) to my android-phone.
Then installed my-app successfully.
Then clicked icon of my-app, but app was quit immediately.
What is the problem?
Code sample
Code
To reproduce
Expected behavior
When clicked my-app on android-phone, app was quit immediately.
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
Windows 10
Flet version
0.25.*
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
The text was updated successfully, but these errors were encountered: