Questions tagged [receiver]

An object that receives some messages.

An object that receives some messages.

389 questions
0
votes
1 answer

Error when trying to click on Push Notification Android

Hi all having a fierce issue with this Push Notification for android. I set up a Custom receiver. I'm able to send and see the Push Notifications. But when I click on the notification i get the error below. FATAL EXCEPTION: main …
SmiffyKmc
  • 801
  • 1
  • 16
  • 34
0
votes
1 answer

Broadcast Receiver for received sms messages does not activate on all handsets

I am making an app which makes use of a broadcast receiver for obtaining specific sms messages that are received in the phone. The sms messages which are to be fetched by the broadcast receiver contain "!test!" in them, and are then sent to the…
0
votes
0 answers

Specifying headers in Chromecast Receiver

The API that I'm using to retrieve media payload from requires an authentication header to be specified. Right now, I'm simply setting the cookies of the documents then getting the content because this seems to be the easiest way. I ran into issues…
jensiepoo
  • 571
  • 3
  • 9
  • 26
0
votes
1 answer

Running a receiver even if the app is not open

Well some months ago I learned the basics of android and now I'm triying to practice to remember what I learned. So the problem is that I'm doing an app that when it catches a change in the status of the screen (screen on/screen off) it does…
xampla
  • 157
  • 1
  • 1
  • 10
0
votes
0 answers

NoClassDefFoundError on using com.ning.http.client.AsyncHandler

I am building a receiver for Apache Spark after a template of szelvenskiythat gets an http-URL as input. I can package a jar with sbt, but on runtime the application throws a java.lang.NoClassDefFoundError: com.ning.http.client.AsyncHandler…
noteven2degrees
  • 383
  • 2
  • 9
0
votes
0 answers

How to get action from key of Headset in android

I am a android developer.I make a music player application.Now I want to handle play and pause event by headset.this is my code for register receiver: IntentFilter iF = new IntentFilter(Intent.ACTION_MEDIA_BUTTON); iF.setPriority(10000); …
Ahmad Azarnia
  • 129
  • 1
  • 1
  • 11
0
votes
3 answers

switching off wifi results in two times call to onReceive()

I am using Broadcast receiver for Internet availability. Here is the code private BroadcastReceiver mConnReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { boolean noConnectivity =…
Bunny
  • 237
  • 2
  • 13
0
votes
1 answer

How can I start receiver class from an Activity in android?

I have an activtiy and a receiver.class with broadcastreceiver. I would like to start receiver from mainactivity but I could not do this with my solution. Here is may way Intent iinent= new Intent(MainActivity.this,MyReceiver.class); …
0
votes
1 answer

Handle multiple Intent Services within the same class (Receive data back from multiple services)

I have initialized 2 public Receiver variable at beginning of my register.class public RegisterReceiver rReceiver; public ConvertAddressToLatLongReceiver catllReceiver; and then in onCreate() I defined them as follows rReceiver = new…
amoh
  • 163
  • 12
0
votes
1 answer

Why my broadcast is not received in this code?

Why my broadcast is not received in this code ? I post my code below. When I run this, I can see sender broadcast intent. But there is no response at receiver side. I have tested on lollipop AVD. Receiver Manifest
myoldgrandpa
  • 871
  • 7
  • 21
0
votes
1 answer

cast receiver GameManager add GameManagerListener Error

I'm trying to implement the GameManagerInterface and add it to GameManager but I always get the next error: Uncaught Error: Missing listener method for player_available event.cast.receiver.games.j.hk @ cast_games_receiver.js:249 And this is my…
0
votes
1 answer

golang create dynamically receiver inside switch

I would like read, extract and save data from different sources with Read and Write methods implemented in Process interface The code works rigth in the first example: type Process interface { Read() write() string } type Nc struct { …
0
votes
1 answer

Prevent android app from showing up in switcher

I have an app with an SMS receiver set up, but even if the sms receive function is turned off using the package manager, the app will go to the top of recent applications (when holding the home button) if a sms is received. How can I stop this…
strange quark
  • 5,205
  • 7
  • 41
  • 53
0
votes
2 answers

How to receive INSTALL_SHORTCUT broadcast on Android

I try to receive an event everytime a new shortcut on the Homescreen/Luncher was created. After my app receive the event I like to modify the shortcut. My current configuration is listed below, but I never receive an event.
Andre Kullmann
  • 121
  • 2
  • 6
0
votes
3 answers

"if" in method on the BroadcastReceiver service will not work

I have a problem with checking variables in the "if". I get a userPhoneNumber variable from SharedPreferences and phoneNumber of SmsMessage. I will displaying Toast with both variables and they are the same, but the if didn't work. Where is the…