Android :: Way To Determine Sender Of Broadcast Intent
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
May 12, 2009
I would like to know how can I determine the value to put in an ACTION tag in AndroidManifest....
We have some defined intent at http://developer.android.com/reference/android/content/Intent.html...... ok.
I tried to do some stuff with receiver. I found an example SMS_RECEIVED. This example work when I use android.provider.Telephony.SMS_RECEIVED in the action. If I try to find these constant in android.provider.Telephony I've a problem...It doesn't exist...So where is it defined?
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
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
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
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
Jul 21, 2010
Is there a way for an Activity to find out who (i.e. class name) has sent an Intent? I'm looking for a generic way for my Activity to respond to a received intent by sending one back to the sender, whoever that may be.
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
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
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
Jul 21, 2010
Is there anything out there that will send a podcast to your car radio or a music file etc. rather than having to put your headphones on you can listen to this rather than the radio, great for catchups!
View 1 Replies
View Related
May 8, 2010
Is it possible to have the sender's name/number displayed on the lock screen when a text is received? I've got handcent installed and I've got it set up so that when I receive a text, the quick reply box pops up for 10/20 seconds. But if I'm away from my phone and I later check to see if I've received a text, the only indication I have is a small icon on the navigation bar.
View 4 Replies
View Related
Aug 3, 2010
Is there any way to hook a plugin in the default SMS messaging application so that it invokes our code for sending SMS. Can our app become an alternate SMS sender for default Messaging sending operations.
View 1 Replies
View Related
Jan 28, 2009
I want my application to send emails.
The user can pick arecipient from the contacts.
Then I generate the body text of the email and send it to the email app ( using something like http://androidguys.com/?p=3100#comment-5168).
The email body looks something like :
------------------------- Hi {recipientname}!
Please click the following link :
[url]
If you click that like, you will live forever.
{sendername} ---------------------------------
"{recipientname}" is replaced by the name of the recipient that I get from the Contacts via Contacts.People.
For convenience, I'd like to replace "{sendername}" with the name of the sender, that means the name of the owner of the phone. (As stored in the email app, under Account Settings -> General Settings -> Your name) So, obviously that name is stored somewhere, ...
My question:
Is there any way to access this name via a content provider ? Or is there any other way to get a string (e.g. "John Doe" ) with the name of the owner/user of the device ?
View 4 Replies
View Related
Oct 13, 2010
I've just become the proud owner of a lovely Sony Ericsson x10 mini! Love the phone but today my mate text me wanting a contact sent to him. No problem I thought, i'll send a business card. No I won't because I can't! No worries I thought i'll search google for an app, heard of an app called ciacs contact sender. Can't find it on the android market so any ideas where I go now?
View 1 Replies
View Related
Nov 3, 2010
I was using a treo755 and holy !*!%!#, why did i wait so long to upgrade. Anyhow, I'm using Chomp and as far as I can tell there is no way to call a sender of a text while in Chomp. If this feature doesn't exist then, is there an SMS app that has it?
View 2 Replies
View Related
Sep 16, 2009
In android, How can I query the name of the MMS sender and text of the MMS from MMS database? For SMS, there are these 2 columns for that: Sms.PERSON_ID and Sms.Body. But what is the equivalent columns in MMS Table?
View 1 Replies
View Related
May 30, 2010
Is it possible to change the sender number when sending an sms from my android program ?
View 1 Replies
View Related
Nov 14, 2010
Bit of an odd one this...Every now and again I get a blank text. The sender is stated as ...
View 1 Replies
View Related
Oct 18, 2010
I'm adding Android C2DM to a Android library project. I started with the com.google.android.c2dm package that is included with JumpNote and Chrome To Phone. In order to use this package, you have to subclass the C2DMBaseReceiver service which takes the Sender Id as an argument to it's constructor. In JumpNote, this argument is initialized using a hard-coded static variable in a config class. However, in an Android library project, which may be used by multiple concurrently running apps I don't think I can use a hard-coded static variable (that is, I believe it could lead to problems when/if multiple apps are trying to access/modify the static variable). I tried to think of a way to initialize the Sender Id without using a static variable and am stumped so far.The obvious solution would be to use the Manifest or a Resource string or a combination of the 2. For example, in strings.xml I might have a "ac2dmSender" string, which is accessed in a meta-data child of the C2DMReceiver service declaration in the manifest. However, it seems that you cannot get a reference to the PackageManager or ResourceManager from a static context, so there is no way for me to then retrieve the meta data in such a way as to pass it in to the constructor of C2DMBaseReceiver.
View 1 Replies
View Related
Apr 7, 2010
I am using Gmail sender function defined here to send a mail to the predefined mail id. But my problem is that I want to embed more text into the body of my mail. The Gmail sender is only accepting one sting to be embedded into the body of the mail. Can anyone tell me how to embed more strings into the body of the mail. If Gmail sender is not efficient method to send a mail then please suggest me an alternative with an example.
View 1 Replies
View Related