Questions tagged [receiver]

An object that receives some messages.

An object that receives some messages.

389 questions
0
votes
0 answers

How to handle properly SMS BroadcastReceiver in activities

I am making an SMS Android Application and currently have 2 activities : the main activity with the conversation list, and a second displaying the messages of a conversation. Now I am trying to receive messages, and my BroadcastReceiver works well,…
Dayan42
  • 1
  • 1
0
votes
0 answers

How does Windows distribute unicast UDP packets across several sockets bound to the same IP-port with the SO_REUSEADDR flag?

I am trying to find the best way to write a multi-threaded server in C# (running on a Windows system) capable of handling a big amount of UPD packets per second. Here are the main assumptions: -I have hundreds of clients sending small unicast UDP…
Alex
  • 31
  • 3
0
votes
1 answer

How to avoid continuous notification when notification is clicked

I want to send notification by BroadcastReceiver. Notification sent by AlarmReceiver but again sent notification when i clicked the notification. The same thing happens again, again and again like endless loop Here is my AlarmReceiver.java public…
emrekose26
  • 683
  • 1
  • 8
  • 21
0
votes
1 answer

Implementing BroadcastReceiver inside JobService

I am working on an application that uses JobService. Now, in my app i want to reschedule the Broadcast receiver that is working in the background. So, i want to know if i can implement BroadcastReceiver inside JobService so that it can restart after…
Piyush k
  • 297
  • 3
  • 14
0
votes
1 answer

Why do I need ifelse if I already have intent-filter in manifest file?

Ok, for example we have some code like Trying to start a service on boot on Android Why must I write ifelse in receiver for intent type validation?
glnix
  • 126
  • 1
  • 1
  • 8
0
votes
1 answer

Spark streaming receiver Out of Memory (OOM)

I have a problem where the receiver restarts again and again. I am using Spark 1.6.1. I use Spark Streaming to receive from a streaming, then use map to deserialize pb data. My testing contains two cases: Just receive the data and print directly:…
X.Bin
  • 51
  • 3
0
votes
1 answer

Need package path for RemoteControlReceiver?

I am trying to make an existing android app wearable. Is it necessary, or not, to specify the full package path for setting a media button event receiver? I haven't seen any explanation in the official documentation. It is as follows in the…
helenou
  • 13
  • 4
0
votes
2 answers

Broadcast receiver OnReceive not being called in Xamarin Android

I'm not usually posting questions on forums like this one, but today my frustration reached the sky. I am trying to implement a solution that would let me update the Exchange rate list in my application every every hour/day (doesn't matter). I was…
Marcin Bator
  • 341
  • 1
  • 8
  • 23
0
votes
0 answers

Start an Android app from a Broadcast

I'm new to the Android API and i try hard to start my app (NOT an Activity) from a Broadcast receiver. It's compiling and manualy launching on my Device, but not automatically launching when i plug an USB device in. My goal : plug usb in -> start…
Tim C.
  • 43
  • 1
  • 9
0
votes
1 answer

Read hex values as is when receiving data from serial

I have a system capable of sending hex commands as is, meaning that if I send A0 02 50 0E the receiver should receive A0 02 50 0E as a hex. It is now working fine, thanks to StackOverlfow. My problem now is to receive hex data and convert it as…
Cary Bondoc
  • 2,923
  • 4
  • 37
  • 60
0
votes
1 answer

How to play music from receiver at android 5.1, it is different form android 4.2

I want to play music from the receiver instead of loud-speaker, I use below code: am.setMode(AudioManager.MODE_IN_CALL); mMediaPlayer = MediaPlayer.create(this, R.raw.src2k); mMediaPlayer.setLooping(true); mMediaPlayer.start(); It works well in…
nunknunk
  • 1
  • 1
0
votes
1 answer

How to check whether or not a camera app is the active activity by a service?

I wrote a background service which registers a "screen off" Broadcast Receiver. I would like my service to be able to identify whether or not the last active app (I means other app) is an app that uses the camera or not (such as default camera,…
0
votes
0 answers

android wear message to handheld

I am using the Android Wearable API to send a simple string message to my handheld device. The message sending is implemented succesfully, the status of the message is SUCCES. I created a service to receive messages, but it is not working. Every…
padar_cs
  • 11
  • 4
0
votes
0 answers

Communicating dsPIC with PC application through UART. Receiver interrupt handling

I'm communicating my C# applications with dsPIC x16 microcontroller using UART. I want to send/receive fixed size frames and I tried to manage it in a following way: if(readFrame) { IEC0bits.U1RXIE=0; //turn off the U1RX interrupts …
Glamdring
  • 84
  • 1
  • 5
0
votes
0 answers

Android: BootReceiver & other Receiver getting Called

So my mention is to have a Boot Receiver which will re set the Alarm when the device is booted up.(Which work now) Intent alarmIntent = new Intent(context, AlarmReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0,…
Offset
  • 609
  • 1
  • 5
  • 22