Android :: No Broadcast On SIM State Change / Get It?

Jul 11, 2009

Am I right if I say that, there is no broadcast action currently for the SIM card state changes?

Android :: No Broadcast on SIM state change / Get it?


Android :: Using Broadcast Intents / Phone State Changes

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

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 View Related

Android :: Contact Change Broadcast

Mar 11, 2009

Is there a broadcast message dispached when a contact is changed or added in Android's native contact book? If not, what would be the most efficient way to check for changes?Secend of all, what would be the most efficient method for sending a file (image) using HTTP POST request?

View 3 Replies View Related

Android :: Change Broadcast Receiver Priority

May 5, 2009

I have developed a music player and the application defines a broadcast receiver that handles MediaButton intents:

<application...>
<receiver android:name="MediaButtonIntentReceiver"> <intent-filter android:priority="32000"> <action android:name="android.intent.action.MEDIA_BUTTON"/> </intent-filter> </receiver>
</application>

which works well. My question is if it was possible to change the priority of this receiver from within the settings activity of my application. That way people could choose if they wanted my player as default handler of the headset buttons or not.

View 5 Replies View Related

Android :: Timezone Change Broadcast Receiver Not Working

Aug 30, 2010

I am trying to implement time zone change in broadcast receiver but its not working .my requirment is if i change the time zone it will go to another activity using broad cast receiver can anybody give example

View 2 Replies View Related

Android :: Date / Time Format Change Broadcast

Oct 6, 2010

I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time format changes? I don't see anything, but I could be just blind.

View 5 Replies View Related

Android :: How To Save State During Orientation Change?

Oct 12, 2010

I was looking at the way Android handles orientation change for my application (I discovered that it restarts the mainactivity on orientation change :| ). I've seen that you can ovveride the method protected void onSaveInstanceState(Bundle outState)to save stuff, then have the in onStart. The problem is that I've my view with custom objects and a listview using a custom adapter... Everything is in a ArrayList of these objects, but I've noticed that you can't put arbitrary objects in the bundle! So how do I save the state?

View 2 Replies View Related

Android :: Change State Of Any OverlayItem On Googlemap?

Feb 5, 2010

I am able to display multiple overlayItems on Googlemap, now I want to change icon of any specific overlayItem (to show it is currently selected event). I want to do it through navigation buttons (next, previous) as on Google maps.

I am using StateListDrawable to display icons for OverlayItems. code...

Now my question is how do I change the state of any overlayItem/Icon on map when user click on one of navigation keys?

View 1 Replies View Related

Android :: How To Detect State Change Of Bluetooth

Feb 19, 2009

I wanna write an app to enable and disable the Bluetooth device synchronized. Referring the Android source code, I registered following receiver to receive the bluetooth state change event:

CODE:............

But it doesn't work. Although the BT status has been changed (the icon of BT has been appeared or disappeared), the receiver could not receive nothing.

View 5 Replies View Related

Android :: Maintaining State Of Activity On Orientation Change

May 6, 2010

I m currently working on landscape mode for android app in which i want to know how to maintain the state of the activity and views displayed on orientation change i.e from portrait mode to landscape mode ?

View 3 Replies View Related

Android :: Get Droid Icons To Change State (highlights)?

Aug 1, 2010

I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and I need to change the selection state when it is pressed. How is this done? Do I define an XML for the button?

View 1 Replies View Related

Android :: How To Send An Intent On Wifi State Change To A Service?

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

Android :: MVC Model State Change Requires Creating An Intent?

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

Android :: Save My Custom View's State After Orientation Change?

Oct 20, 2009

I have a custom View, what is the proper way of saving / restoring it's state after orientation change. I know I should implement onSaveStateInstatnce() and onRestoreInstanceState() methods, but how exactly (with which argumets) and when I should call them?

View 4 Replies View Related

Android :: Is This Systems Broadcast Ordered Or Normal Broadcast?

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

General :: Change Charging State From USB To AC Adapter?

Feb 10, 2014

change the charging state from usb charging to ac charger without using ac charger.I mean how to scam my tablet to think that is charged with ac charger when im charging with usb from pc.

HTC Flyer P510e

View 1 Replies View Related

Android :: Changing Displayed State Of Views Based On Parent ViewGroup's State

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

Android :: Phone State Listener State Transitions

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

Android :: Maintain Scrolling State While Orientation Change In Android

Oct 5, 2010

I have created one custom view that contains the horizontalscrollview. Now when i changes the orientation its scroll state change to 0 every time. I got the previous scroll state by using onSaveInstanceState(Bundle savedInstanceState) and onRestoreInstanceState(Bundle savedInstanceState) . in onRestoreInstanceState i am using following method to get reposition the scroll, hoz_scroll.scrollTo(hoz_x_pos, hoz_scroll.getScrollY());

View 2 Replies View Related

Android :: Broadcast Receiver - Create A Broadcast Receiver Which Responds To System Events

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

Android :: Multiple Broadcast Messages With Less Data Or Less Broadcast Messages With More Data

Oct 5, 2009

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?

View 1 Replies View Related

Android :: How Different Do Broadcast Intents Need To Be?

Oct 30, 2010

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.

View 13 Replies View Related

Android :: HTC EVO Can't See UDP Broadcast Packets?

Jul 19, 2010

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 Related

Android :: Using Broadcast Receivers

Sep 9, 2009

I 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 Related

Android :: How To Use Broadcast Receivers?

Dec 30, 2009

Is 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 Related

Android :: Notification / Broadcast For Sent Sms

Jul 1, 2010

is 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 Related

Android :: IP Broadcast On Emulator

Oct 15, 2009

I 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 Related

Android :: ACTION_HEADSET_PLUG Broadcast ?

Mar 26, 2010

I'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:................................

View 1 Replies View Related

Android :: Start TTS From Broadcast Receiver

Jul 9, 2009

I 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 Related







Copyrights 2005-15 www.BigResource.com, All rights reserved