Android :: Will My App Receive A Broadcast If It Is Not Running?
Oct 3, 2010I have an app that I want to start when people receive a text. Is this possible?
View 3 RepliesI have an app that I want to start when people receive a text. Is this possible?
View 3 RepliesI'm trying to receive Android's Broadcast message say MEDIA_SCANNER_FINISHED, but not able to do so. Here is my code snippet:
CODE:..............
Is there any way to receive an event via a broadcast or any other way when new activity starts or any task in android?
View 1 Replies View RelatedI want to receive a broadcast receiver whenever any app is started.
for example: I have an app which has the broadcast receiver which listens for the app started event .
I installed this app on the device.
Now I have opened the Phone or Contacts app. Now my app which is listening for this kind of event(app opened or started) has to be invoked.
How to show a alert dialog(whithout any Activity) when receive a broadcast.
View 3 Replies View RelatedI have a service in an APK which starts a Thread which has the following in it's run method; Code...
But the receiver doesn't receive the broadcast when I run it in the emulator (or at least the log message doesn't get received). Any hints?
The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.
It is easy to find on google which is the broadcast receiver to listen for sms messages. Is there also a similar receiver to listen for gtalk messages or new emails?
View 1 Replies View RelatedI was make source to catch and process SD Card mount/unmount broadcast received dynamically in activity.
but the USM_CONNECTED/DISCONNECTED broadcast msg is not catched dynamically in activity like below:.
how the receiver can receive the UMS msg in activity?
below:
CODE:......................
I have an activity, it needs to response to a broadcast event.Since an activity can not be a broadcast receiver at the same time,I made a broadcast receiver.My question is: how can I notify the activity from the broadcast receiver?I believe this is a common situation, so is there a design pattern for this?
View 1 Replies View RelatedQuestion: My wife and I both have an Evo 4g. We live in the US. She will be traveling Europe for three months and I would like for her to be able to call me free through WiFi access. What app would be best for this situation? Something that is most like a normal phone call would be ideal. Also I would much rather be able to receive calls without running a special app. Simple and easy is important.
View 9 Replies View RelatedI cannot receive text messages. I can successfully send them, and my data/internet work fine. I saw other posters had those issue, but where mine is different, is that all of my conversations were deleted, except for sent/received picture messages. If a particular conversation didn't have a picture in the conversation, it was completely deleted.
I've tried my settings, turning the phone off, doing a battery pool. Nothing has worked. I of course would like to do everything possible to not have to do a factory reset, but if I have to, I have to.
I have a Droid X2 running version 2.3.5. I have Verizon.
I'm trying to figure out if a system event broadcast is broadcasted using ordered broadcast or normal.The event is EVENT_REMINDER and in the source for the calendarprovider i noticed it sets up a alarmmanager to sent the broadcast. I can't find how the alarmmanager sends it. My guess would be as a normal broadcast , But while i was trying some things i noticed i could delay the system's notification (tried up to 10 sec) by building a sleep in my broadcastreceiver. This would indicate that they are handled ordered , and the systems receiver is only called when mine has finished. But can i be sure of this behavour?? (in all 1.5> sdk versions) the docs state that in some cases normal broadcasts are also handled ordered..due to spare of resources.
View 1 Replies View RelatedI spent hours last night search and trying various combinations of APN settings. But I still can't send or receive MMS messages.
View 1 Replies View RelatedHow to fix the MMS issue with MIUI V5 on the HTC One XL(AT&T version). I noticed that the One S has a fix, however I can't figure out what they are saying about replacing the framework files and what not. If your not familiar with the issue, trying to send/receive MMS causes the messaging app to force close.
View 3 Replies View Relatedtrying to create a broadcast receiver which responds to system events and change system settings. I don't need any interaction from the user so I don't need an activity and have been trying to do everything through the manifest file. I've put a log event into my onReceive method but it never logs anything so I'm presuming my method is never called. I've tried this with both the 1.5 and 1.6 SDKs. I was hoping somebody could have a look at my code please and let me know if there are any problems.
View 2 Replies View RelatedIf i turn this off while I am home or in my dorm and connected to wi-fi
can I
1) Receive Texts
2)Send/Receive Pics
3)Make Calls?
I am developing an application which is communicating with the server. Tha application can perform log-in and get different parameters from server.
The application consists of a RESTful client (custom class for making requests), Communication Service (the service which runs in the background) and the main activity.
For now I created multiple broadcast messages and multiple broadcast receivers in the main activity so when the application performs login operation a receiver (loginBroadcastReceiver) in the main activity receives a message and when another parameter is received from the server different message is broadcasted and another receiver handles the message.
This way however the application performance is poor but I am not sure whether it is due to multiple broadcast receivers.
Does anyone know what is the best way to exchange data between service and main activity - is it better to create a single broadcast receiver and retrieve all parameters from message or is it better to initialize multiple broadcast receivers for multiple parameters?
I have a project that builds against Android v2.1 . I can run it fine on a phone running 1.5 but when I try to launch it with an emulator running 1.5, the emulator doesn't show up on the list of available AVDs. I have the <uses-sdk android:minSdkVersion="3"/> tag in my manifest but it doesn't make a difference.
View 2 Replies View RelatedI am trying to get the list of process running in the background.
View 4 Replies View RelatedI've created a class which is an extension of Thread. This class hits a web service and throws some data on screen. I don't care about persisting this data (the screen displays search results).
Currently, the user simply types into an EditText and clicks a search button. I'd like to take away the search button and implement something similar to Google's Instant Search where, as you type, the search results get updated.
This means, as the user types, the search parameters change. I want to be able to kill the currently running thread (if one is currently running) and spawn a new one with the new search string. How can this be achieved? Can I do it with Thread or will I need to use a new object?
I have an IntentService that broadcasts an Intent each time if finishes some work. Each broadcast Intent is identical except that it contains a Bundle with some result information from the IntentService. Evidently, having different data in the Bundle is not enough for Android to think it's a different Intent. If the IntentService broadcasts two of these Intents back-to-back, the second one is dropped as a duplicate.
I know I've read about this behavior in this forum in the past but I can't find in the documentation where this duplicate elimination logic is described in detail. Mostly, I just want to differentiate the Intents enough that they are not considered duplicates. Any pointers would be appreciated.
I'm pretty sure no one but me is using UDP broadcasts but in the rare chance that someone is - has any experienced this? I use UDP broadcast to do LAN multiplayer games - it's how clients discover hosts of games.The EVO can't ever see the games when all my other phones can.
View 4 Replies View RelatedI had one question: Is it feasible to use a BroadcastReceiver as a glue layer between the user interface and the underlying business logic ? Example use case: Suppose i am maintaining the state of a call, and providing callbacks to the UI by invoking sendBroadcast with the relevant intent. Similarly, my underlying business logic can send broadcasts to the activity that has registered for receiving it on certain events ( like call connected, connecting, timed out etc).
View 4 Replies View RelatedIs it possible to use just a broadcast receiver without any activities? I just want to run some sample code only when the phone receives a call and nothing more. I use Log.d to write out but I don't see anything in the log. Am I missing something here? I also have permissions set in the androidmanifest.xml to allow for these type of intents.
View 3 Replies View Relatedis there any way to be notified (using a broadcast receiver) after a sms is sent? i want to get notified when a sms is sent and carry on with my program.
View 7 Replies View RelatedI have an application that acts as both client and server. I have a scenario that I need to test that involves three devices. One of them needs to broadcast a message (UDP) to the other two. Running on physical devices, this is not a problem, and it works fine. On the emulator however, this is much harder. I have managed to get it work for two devices using the emulator. Here my client thread broadcast the message to 10.0.2.255 port 6002, and server thread listens on port 6006. By using redir add udp:6002:6006 the server receives the message fine. Now, if I add another instance and do the same portforwarding, only one of them receives the message. I also tried to use a different port number on the server, and forward port 6002 to that number, with the same result. It appears as if a port can only be forwarded from one instance. Does anyone of a method to broadcast using the emulator, without sending a separate message to each emulator instance?
View 4 Replies View RelatedI've tried these phones: Motorolla Backflip 1.5, Nexus One 2.1
Basically I register BroadcastReceiver to get ACTION_HEADSET_PLUG broadcast and look on 3 extras that come in intent:
state
name
microphone
Here is the description from API:
* state - 0 for unplugged, 1 for plugged.
* name - Headset type, human readable string
* microphone - 1 if headset has a microphone, 0 otherwise
Issue #1: Broadcast comes when activity is started (not expected), when screen rotation happens (not expected) and when headset/headphones plugged/unplugged (expected).
Issue #2: Backflip phone (1.5) sends null for state + microphone, 'No Device' as name when headset/headphones unplugged, and sends null for state + microphone, 'Stereo HeadSet'/'Stereo HeadPhones' as name when headset/headphones plugged.
UPDATE: T-Mobile G1 with 1.6 behaves the same as Backflip phone.
Nexus even worse, it always sends null for state + microphone, 'Headset' as name when headset/headphones plugged or unplugged.
Question: How it can be explained that API is broken so much on both 1.5 and 2.1 versions and different devices, manufactures?
UPDATE:
Code in onCreate of main Activity:
CODE:.........................
Now the code of BroadcastReceiver:
CODE:................................
I noticed that if i dont use the app to kill running apps after i exit them they are still running in the background is this normal for the Android? I am coming from Pre so not sure if they are killed when exited.
View 3 Replies View RelatedI am trying to start TTS from a broadcast receiver and it as document an intent receiver can't bind the service. Is there a work around, I can't figure out how to start the service using startService(Intent, Bundle).
View 4 Replies View RelatedA WAP PUSH (Broadcast)receiver basically doesn't need any UI. It is a silence application which handles the Push messages based on actions/ mimetype without needing any intreaction with user, I've tried to test it in a SMS receiver by removing the Activity from the project and it stopped receiving the SMS messages. My question: Does all android applications "MUST" define a activity? Is there a way to hide it?
View 5 Replies View Related