Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "broadcast reciever"
-
Seems like everything on android is a "hack" or temporary solution, thanks to google .
Now how the fuck should i create a custom SMS inbox when:
1) i can't run the SMS broadcast reciever in a background service(because background services are deprecated )
2)message SMS reciever in a foreground service ,because this service is not fucking foreground! when the app is cleared from the recents , it shows the service as running, but on recieving the next message , the service dies??wtf?? i think its something related to processes
the app needs to detect a message instantly because some messages are needed to be sent to server the moment they are recieved :/5 -
people familier with android (~~ broadcast reciever) , help me out.
I have two activities , main and second. from main , you can go to second if a broadcast is triggered. (eg if flight mode is on, you can go to second activity). I know how to make a reciever for this and the best case here should be that of a dynamic broadcast reciever.
But In the SecondActivity , i again want to implement a similer check, since anyone can turn the flight Mode on and off from the status bar.So if flight mode is on, certain layouts should be shown else not. again a reciever is required
My problem is : is static reciever a better choice, if yes then how can I interact with the reciever, like it should request changes only if either of the following activities are open and application is running..??
(And I don't know why daddy yankee's shaky shaky video is being played in the back of my head)5