'Android Display App Which Needs To Run 24x7
I have created a Display App, which is connected to MQTT and shows the values received from the topic. And this app needs to be run 24x7.
Constraints:
- The app is placed on top of a wall so mostly, people won't touch it.
- The app is installed on an Android Tab.
- The tab is connected to a private wifi network so it's not connected to the public internet.
- MQTT broker is also in the same private network so the app can receive live updates.
Note:
- Removed the screen lock for the tab, so that the screen won't be closed.
- The Tab I'm using is LenovoTB-7306F.
- It is running fine while I'm debugging(as I won't debug for days).
- It's a lightweight app(3 MB) with just 2 screens.
Problem:
- The app is getting closed/crashed after running for a day or two.
- Not getting any crash reports from Developer Play Console as it's not connected to the public network.
- Generated the local bug reports from tab(link), but did not find any crash related messages in it.
Need help with the following:
- Am I following the right/good approach for this app? If not can you suggest?
- Do I need to choose a Tab with specific hardware specifications?
- If at all any better way to achieve this?
Solution 1:[1]
You can use apply(pd.Series)+join to transform your dictionary into columns, then pivot the output:
(df[['name']]
.join(df['attributes'].apply(pd.Series))
.pivot(index='name', columns='trait_type', values='value')
.rename_axis(columns=None)
.reset_index()
)
output:
name Color Make Model Type
0 Car#9 Red Ford Mustang Coupe
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mozway |
