Android :: Send Data Packets Out After Broadcast Event Received

May 27, 2010

I know that the apps receive a ACTION_SHUTDOWN broadcast event when the device is shutting down.
When an application receives the shutdown, is there still an opportunity to send data packets out, or does android block such attempts(or does the platform tear down the network stack before it can go out).

Android :: Send Data Packets Out after Broadcast Event Received


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 :: How To Send Data From Broadcast Receiver To Activity?

Mar 25, 2010

I am writing an application to listen the SMS inbox in android with one activity and one BroadcastReceiver. Once the SMS comes the Receiver is showing alert message. But I want to send the message information from Receiver to Activity. I don't know how to achieve this.

View 2 Replies View Related

Android :: Way To Broadcast Any Intent As New Email Received?

Jul 28, 2010

Do any one know how to broadcast any intent if new email is received?

View 8 Replies View Related

Android :: Possible To Start Activity When Received Broadcast?

Dec 8, 2009

I found that the "onReceive" of broadcast intent can't start an activity explicitly. Is there any way to start an activity when I receive a broadcast? eg: I need an interaction UI with user when specific package has been installed in the system.

View 3 Replies View Related

Android :: Receive An Event Via Broadcast?

Nov 9, 2010

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

General :: Receiving Broadcast Event Without Activating App

Sep 6, 2013

I want to create an app in which I need to send SMS to a predefined number after first boot up of Phone. I want to do this without user intervention. i.e I don't want to create launcher icon.For that i am using a Broadcast receiver which will receive "android.intent.action.BOOT_COMPLETED" event and I can send SMS from this receiver after some duration. This mechanism works fine till Android Version 3.1. I came to know that in later versions A broadcast receiver will not receive an event if Application is not activated at least once. Due to this security measure adopted in Android 3.1+ This mechanism is not working. Any alternate way to meet my requirement.

View 1 Replies View Related

Android :: Google Maps Broadcast Event For Audible Navigation Instructions / Start And Stop?

Dec 14, 2009

I have an application which is playing audio.I have some customers that use this application while driving and who also use the Google Maps application to get directions to the places where they are driving.They have asked me to change my application to pause my audio while the Google Maps application is giving them audio navigation instructions. I am trying to find out if I can register a Broadcast Receiver to let me know when the Google Maps application is giving audio navigation instructions, or if there is a way to detect when any other application has started or stopped playing audio.It seems that this type of functionality would be beneficial for Google Maps and for any type of application which is playing media, so I am hoping that Google Maps is broadcasting events when it starts and stops giving audio navigation instructions, or that there is a generic way to discover when overlapping audio sources are trying to play.

View 6 Replies View Related

Android :: Broadcast Event / Android Intent Action

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

Android : How To Get Context From A Broadcast Receiver OnReceive To Send To?

Nov 7, 2010

I basically want to make and intent and pass to a service from my BroadcastReceiver's onReceive(). So far I always used View.getContext(), but here, I'm stuck. How exactly can I get the context so I can use public Intent (Context packageContext, Class<?> cls). Or is there any other way I can create an Intent and send to a service?

View 1 Replies View Related

Android :: How To Send An Specific Key Event To FG App Using Adb?

Aug 13, 2010

I want to keep launching my app and stress test two scenarios: launch it and press BACK key launch it and press MENU key I can launch from adb using "am" command. But how can I send a BACK or MENU key using adb. I want to do thousands of rounds of testing so I don't want to do it manually.

View 2 Replies View Related

Android :: How To Send Motion Event To Activity?

Aug 17, 2009

I am developing an input method with full screen size views, How can I send a grabbed motion event to the client applications?

View 2 Replies View Related

Android :: How To Send Motion Event Down To Another Activity

Feb 7, 2010

My Activity using transparent Theme in AndroidManifest.xml *android:theme="@android:style/Theme.Translucent"* Which works fine. When it's started from the Home screen, we can see both the content of my activity and the home screen below it. It gives the feeling of "floating". Furthermore, to make it real "floating", the motionEvent has to go down to the home screen to let the home screen response some motion touch. But I have no idea of 2 things : 1. Whether the event can be send down to any thing behind the current activity. 2. If so, how. The solution don't need to be restricted in API level.I mean if any solution need us to rewrite home screen or something else, It's also ok for me.

View 10 Replies View Related

Android :: Possible To Send An Event From A Thread To An Activity?

Jan 28, 2010

If I want to send an event, e.g. OnClick, to an activity from a thread? The expected work flow is below:public class HelloAndroid extends Activity {public void onCreate(Bundle savedInstanceState)Code...

View 4 Replies View Related

Android :: Send Event From First Activity / Receive On Second

Apr 29, 2010

I have two activities. The first activity display list of the users with short info. And after select some user I go to the second activity for display full info about this user. For send event I used startActivityForResult(); for receive event in socond activity and added public void onActivityResult(int requestCode, int resultCode, Intent data). After start project I send intend from first activity and I do not receive in the second : How I can receive sent event in second activity.

View 1 Replies View Related

Android :: Broadcast Data To Other Application?

May 15, 2009

I create an application where i get the various data from net (say for example i am getting the temperature information of particular city and another data is the information of stock value of a particular company) now i want to broadcast that various data to all application. I create a registration process for diff application for diff data (EX app A is registrar for temp of city). so application is registrar for particular data will get that data.

How can i broadcast the information to all application which are registrar .

View 2 Replies View Related

Android :: Save Data In Broadcast Receiver

Jul 2, 2010

I'd like to maintain a hash table in a broadcast receiver. If I understand BroadcastReceiver's life cycle currently it could get killed wiping out my member variables. What would be the ideal strategy for retrieving a hash table from a previous run of onReceive in the BroadcastReceiver?

View 3 Replies View Related

Android :: Send Key Event Using Native Methods / Low Level Classes

Feb 24, 2010

I was looking 2 weeks ago for sending back and home key events when on Click is performed on a Image Button, I could do that perfectly. I have a device with no buttons. So, I want to simulate Menu button click. To know what is really happening, I implemented a code in on Create Options Menu that rises a Null Pointer Exception. I got the following stack trace. code...

View 21 Replies View Related

Sprint HTC Hero :: Can't Send Or View Received Pics

May 30, 2010

I get pics and forward messages that I can't view.. Plus I also like to send pics to people. I have 1.5 on my phone on 2.1 is this issue fixed I will risk the trouble just to send pics. I can't find a solution other then going on sprint.com/picturemail and I'm tired of doing that now.

View 5 Replies View Related

HTC Incredible :: Can Phone Send Repeated Alerts For Received Text Message

May 2, 2010

I would like the phone to alert me approx every 5 minutes that there is an unread text. My phone alerts that I have a new text but I also want it to alert me again if I don't hear the first alert. Is there a way to do this?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Mini - Not Send Or Download Received Mms Messages?

Aug 21, 2010

I have a new phone which will not send or download received mms messages, there is no 3g icon i the status bar, should this be there?

View 3 Replies View Related

General :: Texts Won't Send / Received Multiple Times - Keyboard Won't Work

Nov 22, 2011

My phone is the Droid X.

1. The main thing is that my texts won't send anymore when I turn my screen off or even exit out of the text message window. I have to keep my phone on and on that screen for at least 5 minutes until it finally sends. Before this, I could just text, send it, turn my screen off, and put it in my pocket and not worry about it sending. With my job and my life, I can't be doing this. I need a fix for this if possible.

2. This problem isn't as big as the other two but someone will send me one text and I will receive 2-6 times. I'll either receive all of them at once, or I will receive one text, and then 5 minutes later get it again, and then again 5 more minutes, and so on and so on. Now this can get very annoying when I am quickly texting and I keep getting texts like 15 times. I need a fix for this as well if possible.

3. One of the most annoying things about all this is my keyboard is not typing. I'll click on the "insert message here" box and start typing but the letters won't appear. The word suggestions will appear and whatnot acting like I am typing but it won't. My only temporary solution to this is exiting out and going back into the text but it doesn't seem to actually work as I am finding myself sitting there for about 10 minutes exiting and entering back into the texts over and over.

View 9 Replies View Related

Android :: Data Lost When Sending Bundle With PendingIntent To Broadcast Receiver

Sep 16, 2010

I am adding some basic alarm functionality to my program via the use of AlarmManager and a BroadcastReceiver class (named AReceiver.java). My problem is that the data I add to the bundle attached to the Intent creating the PendingIntent appears to be lost. The only bundle data I can access in the AReceiver class is a android.intent.extra.ALARM_COUNT=1. Here is the basic code in the main activity class creating the Intent, PendingIntent and the AlarmManager: [Code in main activity - Notepadv3]

Intent intent = new Intent(Notepadv3.this, AReceiver.class);
intent.putExtra("teststring","hello, passed string in Extra");
PendingIntent alarmIntent = PendingIntent.getBroadcast(this, pendingPeriodIntentId, intent, 0);
AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
am.set(AlarmManager.RTC_WAKEUP, timeOfNextPeriod.getTimeInMillis(), alarmIntent);..................

View 1 Replies View Related

Android :: SDK 1.1 Support An Easy Way To Know What Network Data Is Sent / Received?

Feb 12, 2009

Does SDK 1.1 support an easy way for me to know what network data is sent/received?

View 7 Replies View Related

Android :: Send Data Using CSD / Data Channel Of GSM Service?

Jul 28, 2010

I wanna develop an app that uses CSD or Data channel of GSM Service to send data. Can anyone help me out with it?

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

Parse Binary Data Received Through Bluetooth

Sep 22, 2011

I have an application that receives data in binary form through bluetooth. I read the data using bluetoothsocket to an byte[]. But i must parse all messages, because they must have an given format and they are in binary.

My solution was to convert byte[] to a string and then split the string and parse all received messages.

An example of the data to parse:
0000000010000001

I should know that the first 8 zeros are the header and 10000001 the real data.

My idea was to create a string that represents -> 0000000010000001 and then split the whole string in one byte and check the value, like:

string1 had 00000000
string2 had 10000001

I know that 8 zeros are the header, therefore string2 has the representation of the data.

View 1 Replies View Related

Android :: Public Calendar API For Reading / Writing Event Data?

Jan 7, 2010

Is someone from Google able to advise when the Android SDK is likely to include a public API for reading/writing event data to the user's calendar? Searching the forums I see that this is a much desired feature by many developers but I haven't seen any indication as to when (or even if) this need will be addressed.

View 1 Replies View Related

General :: Notifications Only Received When Using Mobile Data Not WiFi

Nov 24, 2013

The facebook messenger app for my Samsung Galaxy Fame only receives notifications of messages when connected to a mobile data network, not when connected to wifi. If I swap to solely using mobile data after a conversation, I receive a string of notifications of all the messages I've just been sent in the conversation which is very frustrating.

View 1 Replies View Related







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