-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for intents to send data to i.e. Tasker #10
Comments
Yesss, I definitley thought of that! When I get stuff organised, there will definitley be a way for other apps to get info from freebuddy 👀
oh that's fun too! |
It is fun, but just like the entire original app, it's rather slow and clunky haha |
With recent widget updates, I started to check their battery in background and saving it up in shared preferences so that widget can source it Looks like best way to leave this info open to other apps is through content provider ??: https://developer.android.com/guide/topics/providers/content-provider-basics (tho this looks complicated af so would prefer it simpler if possible 👀 ) |
oh... https://pub.dev/packages/android_content_provider will just have to look this up a bit 😅 |
ahhh I gotta say I have almost 0 experience in Android Development, so I have to admit I can't say anything about the complexity and stuff 😅 But as said I have 0 experience and if I just suggested something that's even more complicated let me know 🤞 |
Another thing that i could use to share stuff is broadcasts: https://developer.android.com/guide/components/broadcasts I don't want to send intent from freebuddy because that would require user to select where to send the intent and I want to keep freebuddy simple Could you click through Tasker or smth and see which option is easier (to listen to Broadcasts or fetch from content providers ?) |
If I'm not confusing terms, I think receiving a broadcast in tasker is easy to do: The intent filter is also mentioned on the broadcasts page you linked (See here at point 3). Let me know if I'm mistaken here though, I'm happy to help out further😌 |
Hey just a small update: I was able to use a Tasker logcat profile to get the battery levels from the widget. Not quite as straightforward as receiving a broadcast intent, but I thought you'd find it interesting nonetheless :) I use a profile which has a logcat event, where component is set to
The most important one is the regex matching, which maps the data from the logcat to corresponding variables. |
Would it be possible to make an intent scheme, or a tasker plugin that can retrieve the data from the headphones (like, charge, anc mode etc)? I managed to retrieve the charge from the huawei app using a logcat read, which I mainly use to be able to remind myself to charge the case. I haven't been able to do something similar with the app (and an intent scheme would be much easier compared to my current method).
The text was updated successfully, but these errors were encountered: