Android :: Broadcast Intent When Network State Has Changend
Apr 20, 2010
Does Android broadcast an intent when the network state has changend, i.e. from GSM to Wifi? And if so what permission do I need and what is the intent action called?
View 3 Replies
Jul 11, 2009
Am I right if I say that, there is no broadcast action currently for the SIM card state changes?
View 2 Replies
View Related
Jun 29, 2010
I was just working on an application that will do stuff when a call is missed or made; and am left wondering why do you have to register a listener using a long lived background service for phone state changes instead of being able to use broadcast intents?
View 2 Replies
View Related
Feb 20, 2010
Is there a Broadcast Intent that gets sent out when the device is plugged in for power? I want to create a BroadcastReceiver to detect the device's plugged in state.
I've looked everywhere in the Developer's resources and reference, but I can't find anything that resembles what I'm trying to do.
View 4 Replies
View Related
Jul 28, 2010
Do any one know how to broadcast any intent if new email is received?
View 8 Replies
View Related
Nov 29, 2009
I'm trying to start an activity out of a widget so I can't use the startActivity() function. So I'm trying to create the correct intent but I don't find what I'm missing.
View 2 Replies
View Related
Jul 23, 2010
In the examples, they create Intent as:
Intent intent = new Intent(this, AlarmReceiver.class);
But suppose my AlarmReceiver class is in another app, how do I create this intent?
I've tried with
new Intent("com.app.AlarmReceiver")
but nothing happens.. It was not called..
--Broadcast definition added using the manifest editor on Eclipse:
CODE:.................
View 1 Replies
View Related
Nov 2, 2010
Is it possible to broadcast an Intent from native code? If so, is there documentation and/or sample code pertaining to the relevant APIs?
View 1 Replies
View Related
Sep 20, 2010
I have an application that is at the same time a broadcast sender and receiver of standard action android.intent.action.SET_WALLPAPER. I want to do some stuff only in a case when another application broadcasted this intent.
Is there any way to determine who initiated a broadcast in onReceive method of a BroadcastReceiver?
View 1 Replies
View Related
Jul 10, 2010
I want to send a broadcast from a new thread is start.
This is what i tried:
CODE:............
But ofcourse i need context..this won't work. How can i handle this.
View 1 Replies
View Related
Jul 25, 2009
I'm building a service that sends a broadcast intent when some value changes. The service sends the broadcast like this:
Intent broadcastIntent = new Intent(); broadcastIntent.setAction("nl.vu.contextframework.NEWREADING"); broadcastIntent.setData(Uri.parse("context://"+cer.getKey())); broadcastIntent.putExtra("reading",cer); broadcastIntent.addCategory("nl.vu.contextframework.CONTEXT"); sendBroadcast(broadcastIntent);
In some Activity (in a different process), I'm tryint to receive this broadcast as follows:
IntentFilter intentFilter = new IntentFilter();
intentFilter.addDataScheme("context");
intentFilter.addCategory(CATEGORY_CONTEXT);
registerReceiver(new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Received intent "+intent); }
}, intentFilter);
View 6 Replies
View Related
Jul 6, 2010
I am new to android platform.please help me out how the Broadcast Receiver and Intent Filter behaves in android.please explain in simple line or with example.
View 1 Replies
View Related
Oct 25, 2010
I'm working on a project where I need to run the BroadcastReceiver for a third party library for a specific Intent. I also want to run some of my own code when the Intent is broadcast. If I supply my own BroadcastReceiver for the same Intent, it seems that only, one or the other runs, but not both, depending on which appears first in the AndroidManifest.xml file. Is it possible to register multiple BroadcastReceivers for the same Intent in the same application and have them all run? AndroidManifest.xml snippet
View 4 Replies
View Related
Oct 29, 2010
Is there a way to capture a key event from the Menu button using an Intent or Broadcast Receiver? Basically I want my app's Service to be activated when the Menu key is pressed.
View 1 Replies
View Related
Aug 22, 2010
Is it possible to listen for entries to the log?
Ie is there a broadcast intent for when a log entry is appended?
View 1 Replies
View Related
Aug 31, 2009
We have an Activity which has a form on it and we launch an Intent to take a picture.We've overridden onSaveInstanceState and onRestoreInstanceState to push the data from the view fields But, on the return from the CameraActivity, the onRestoreInstanceState method is never called. Should this behavior work when calling another Intent?
View 7 Replies
View Related
Feb 17, 2010
I want to send an intent to my service everytime the state of Wifi connectivity changes. So when I currently use a broadcast receiver to listen for the state changes in Wifi, so when this recieves an intent I want to be able to send this info on to my service. Is this possible and if so the correct way to do it?
View 2 Replies
View Related
Apr 9, 2009
I have a main activity class that launches a couple of my subordinate activities from a tabHost.
Periodically (actually when I receive an incoming message on a socket), I want to inform the subordinate activities that application state has changed so that they can refresh their views.
In Swing I could wire this together using something like a PropertyChangeListener. As far as I can see, the Android design philosophy requires creating an Intent and broadcasting to (as far as I can tell all) other activities that are running.
This strikes me as overkill considering that I'm only trying to notify my own views of a model change. Am I missing something?
View 2 Replies
View Related
Jan 10, 2010
im currently looking for the way that my app knows when the phone has being paired and connected to a bluetooth headset device.
I read something about this intent, but not on the Reference documentation of http://developer.android.com
android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED
Is this actually working, is it officially supported.
I mean, can we just register a broadcastreceiver to handle this intent , check for the EXTRA_STATE string extra to see if it equals STATE_CONNECTED and be sure that the phone is now connected with a bluetooth headset device ?
What about this BluetoothA2dpService class? There is no official documentation about this, everything i found i from code snippets of the android OS source code.
View 9 Replies
View Related
Jul 4, 2010
I used to keep my SSID broadcast at home disable, and four computers have never had a problem using the network. Only my Incredible doesn't seem to be able to reconnect to a remembered network not broadcasting its SSID. In fact, if I turn off the SSID while the Incredible is connected, it instantly drops the WIFI connection. Anyone have luck having the Incredible use a network without the SSID being broadcast constantly? I'm using WPA2 if that makes a difference.
View 7 Replies
View Related
May 31, 2010
I am trying to determine if my current connection state is WIFI or Cell network (3g/2g... etc)
I am using SDK 1.5.
Tried couple of technique not really working.
Any working suggestions?
View 2 Replies
View Related
Mar 25, 2010
I added broadcast listener "BATTERY_CHANGED" to Android Manifest file so that when the status changed I should get informed. I am adding to Android Manifest file as I want it active through my application life time. But the problem is that I am not getting the broad cast event from the system when battery status changes.
My code is here :-
<receiver android:name=".MyBroadcastReceiver" android:enabled="true"
android:permission="android.permission.BROADCAST_STICKY">
<intent-filter>
<action android:name="android.intent.action.BATTERY_CHANGED" />
</intent-filter> </receiver>
<uses-permission android:name="android.permission.BATTERY_STATS"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
View 10 Replies
View Related
Aug 30, 2010
I am new to android. I what to know the difference between Intent and Broadcast Receiver. I am more confused with Broadcast receiver then Intent. Simple codes will be helpful.
View 1 Replies
View Related
Jul 30, 2010
I have an AT&T Captivate and it has been working fine until yesterday. All of a sudden I can't connect to the internet and no 3G icon. I have restarted the phone, pulled the battery,put my sim card in my brothers captivate and it works fine on his. After the phone restarts the 3G icon will appear for maybe 1 minute and I connect for that short time then it disappears and no more 3G. If I switch to wifi I can connect just fine.
View 2 Replies
View Related
Nov 25, 2010
running cyanogen 6.1 rom with baseband 2.42.02.10.29 and still cant figure out why I cant connect to the internet. It also says mobile network state is disconnected. Can someone guide me on how to maybe fix this problem.
View 12 Replies
View Related
Jan 19, 2009
I can use this code make outgoing call.
Intent dial = new Intent(Intent.ACTION_CALL); dial.setData(Uri.parse("tel:5556") );
context.startActivity(dial);
But how to detect call pick up the call or refuses to answer?
I tried PhoneStateListener but not working.
View 2 Replies
View Related
Aug 13, 2010
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 Related
Aug 11, 2010
I have a compound UI component built up from a ViewGroup containing a number of TextView, ImageView etc. components. Many of these have StateListDrawables as their images/backgrounds. Is there any way of making them select from this drawable based on the state of the parent ViewGroup rather than the component itself? Ideally I want to be able to change the visual state of all children of the ViewGroup (text colour, image etc) based on the state of the ViewGroup, preferably without having to hook up complex logical code. This seems like a fairly common sort of requirement, so I was hoping it would be straightforward in Android - am I going to be disappointed?
View 1 Replies
View Related
Feb 8, 2009
I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING -> IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one.Is this a bug or am I just not in tune with the paradigm here?
View 2 Replies
View Related
Sep 28, 2009
trying 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 Related