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
Can I build Python FastAPI app as an Android Service?
e.g. I have a FastAPI app (see below app.py), which hosts a http server, and provides an endpoint which can be called by http request.
I want it to be run on Android device as a background Android Service, in which hosts a http server and provides an endpoint too. Thus another Android app on the same phone can call it by http request.
The service-release-1.0.aar was generated, and ServiceApp.class can be found in service-release-1.0.aar\classes.jar\com\example\service\. How to load ServiceApp.class and run as a HTTP server?
Or can I build it as an Android Service (APK?), which can be directly installed on Android device?
The text was updated successfully, but these errors were encountered:
Can I build Python FastAPI app as an Android Service?
e.g. I have a FastAPI app (see below
app.py
), which hosts a http server, and provides an endpoint which can be called by http request.I want it to be run on Android device as a background Android Service, in which hosts a http server and provides an endpoint too. Thus another Android app on the same phone can call it by http request.
app.py
I can successfully build it as an AAR with p4a command:
The
service-release-1.0.aar
was generated, andServiceApp.class
can be found inservice-release-1.0.aar\classes.jar\com\example\service\
. How to load ServiceApp.class and run as a HTTP server?Or can I build it as an Android Service (APK?), which can be directly installed on Android device?
The text was updated successfully, but these errors were encountered: