[Q] Android Widget/UI Without Broadcast receiver? - Java for Android App Development

Hi ,
I am an Android developer and I need to implement a widget. However, my constraint is that I cannot use a broadcast receiver to implement the widget. So is there any solution or way around to implement the widget without the broadcast receiver? Or maybe any UI way of showing if an application is running without having to use broadcast receiver?. I am desperately waiting for an answer.
Thanks,
Savio

Related

[Q] Creating an event when bluetooth starts?

Hi, im wondering if and how (any tutorials?) i could get a command to start another event? Say bluetooth is started and i want it to start something else, How would i go about it?
I'd prefer to learn how to do it but dont have a clue where to start!
your application can listen for the ACTION_STATE_CHANGED broadcast Intent, which the system will broadcast whenever the Bluetooth state has changed. This broadcast contains the extra fields EXTRA_STATE and EXTRA_PREVIOUS_STATE, containing the new and old Bluetooth states, respectively. Possible values for these extra fields are STATE_TURNING_ON,STATE_ON, STATE_TURNING_OFF, and STATE_OFF. Listening for this broadcast can be useful to detect changes made to the Bluetooth state while your app is running.
Taken from http://developer.android.com/guide/topics/wireless/bluetooth.html
I can help more if you need it
From something awesome

[Q] Control Android device with REST service

Hello all,
I am building a system to control an Android tablet using an Android phone. The phone will take a gesture as input, and call a RESTful service, which then has to render the output on the tablet screen. Has anyone done this kind of thing before? Any help would be appreciated.
Specifically, I need to display different views, and be able to launch other applications by making calls from the REST API.
Thanks in advance!
Krishna
kchaitanya said:
I am building a system to control an Android tablet using an Android phone. The phone will take a gesture as input, and call a RESTful service, which then has to render the output on the tablet screen. Has anyone done this kind of thing before? Any help would be appreciated.
Specifically, I need to display different views, and be able to launch other applications by making calls from the REST API.
Click to expand...
Click to collapse
Are you saying you want this RESTful service to run on the tablet, with the phone connecting to it (presumably on local network only)? Or the service called by the phone runs on a publicly accessible server and then the tablet also needs to connect to that server?

Using Polar M400 as smartwatch with own/other app?

Hello,
I own a Polar M400 and it has some smartwatch feature. (showing notifications and beeping)
Currently it is only utilized through the polar flow app.
Has anybody already figured out how to utilize this watch by other/self-programmed apps?
:good: That is an interesting question. I would also be curious about that.
I am looking in to this, as I got some choices on some applications. Like beyond pod. Allows me to pause and skip on the watch. Should be able to create one that could be customised :=

Best way to receive "DisplayOn" Intents in background

Hi,
I´ve have a App, which to some stuff everytime the user turn on the display or unlock the phone.
So far it works without a problem.
I just registered a Receiver (ACTION_SCREEN_ON / ACTION_USER_PRESENT) in a Service which runs in background.
But now wit Android 8 I can´t use this solution, because I can´t start the Service without putting it in foreground.
My question is:
What is the best way to listen to ACTION_SCREEN_ON and/or ACTION_USER_PRESENT Intents?
Is it importent that these receivers will run, even when the App is killed or in background!
I don´t want to create a foreground Service (With the icon in the android bar)!
Is JobIntentService the right solution?
Thanks for helping....

Can you recommend me an open Fitness tracker?

Hello Guys.
I have an Idea which i want to make reality. i searched for many hours but came to no conclusion:
i often go running with bluetooth headphones(Phillips SHQ6500) and my xiaomi mi mix 2 nonroot.
I want to buy a bluetooth fitness tracker(120$ max) and i want to use the live data from that tracker in an self programmed app.
My imagination looks like this.
The App on my phone gets my live pulse and live velocity(Mph) from the bluetooth fitness tracker. and when i am too fast or have too much pulse according to the settings in my app i will hear a specific beep tone on my bluetooth headphone without stopping the music on my phone.
The only thing i found while searching is the metatracker from mbientlab (dot) com
But does it allow all the things i want?
-live raw data access, good api, is it possible to have multi bluetooth connection?
I am really thankfull for every post.

Categories

Resources