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,…
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…
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…
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…
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:…
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…
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…
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…
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…
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…
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,…
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…
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
…
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,…