Android :: DatagramSocket.receive - Sometimes Blocks For Too Long

Dec 28, 2009

I have a thread that constantly polls a UDP connection and posts the received data to another thread. It uses a connected DatagramSocket, reads a packet (which is always the same side), gets the data and posts it to a message queue (not the android one, my implementation). The problem happens mainly over 3G connection, not wifi.

Code looks like:

CODE:...............

Android :: DatagramSocket.receive - sometimes blocks for too long


HTC EVO 4G :: How Long Untill ESPNradio.com Blocks Droid

Aug 3, 2010

Just noticed that now that with the 2.2 update we can now go to espnradio.com and stream with our browser. Kinda defeats the purpose of buying the espnradio app (like I did last month).

View 12 Replies View Related

Games :: DROID BLOCKS - Sliding Blocks Puzzle

Jun 29, 2010

Droid Blocks is a classic sliding block puzzle with a sci-fi twist and over 500 levels.

You can get it from the marketplace (lite version also available) or from Droid Blocks Official Website for only 1.99$.

View 3 Replies View Related

HTC Incredible :: Receive After Long Wait - Delivery

Jul 11, 2010

I am supposed to receive my Droid Incredible after a month long wait...the only problem is...I don't think I will be at home at all. What should I do? Do I call and tell them to set it aside? Or tell them to come later? Or try for Tuesday?

View 4 Replies View Related

Android :: Get FileDescriptor From DatagramSocket?

Aug 7, 2009

So how can you get a FileDescriptor from a DatagramSocket (or even a Socket for that matter)? I notice there is a DatagramSocketImpl function which has a protected class for getFileDescriptor() but how do I extend the standard one to expose that somehow? Is there another way?

View 2 Replies View Related

UDP DatagramSocket Usage?

Sep 16, 2013

I am trying to port an application from Windows to Android that uses datagramsockets for communication. (C# to Java)

In the windows world, I created a messagereceived event listener that is automatically called when a UDP packet is received. The program continues to process data while it is waiting for a message to arrive.

In Android, there does not appear to be a corresponding event listener. All of the samples that I have found use loops to poll for the data and call the blocking datagramsocket.receive method to fetch the packet.

My program can't sit idle as it waits for the UDP packet, it needs to work even if the other end of the UDP system is down.how to replicate this process in java on the Android?

View 2 Replies View Related

Android :: Android DatagramSocket Not Working Correctly

Aug 2, 2010

public void Connect() throws Exception
{
InetAddress dest;
dest = InetAddress.getByName("192.168.1.100");
DatagramSocket socket = new DatagramSocket();
socket.connect(new InetSocketAddress(15900));
byte[] message = "Oh Hai!".getBytes();
DatagramPacket packet = new DatagramPacket(message, message.length,dest,15900);
socket.send(packet);
}

Using the above code on Android SDK 1.5, when attaching the debugger to the android emulation, I step through the above sample (obtained from a tutorial), and the debugger returns control to the user when it reaches the DatagramSocket line... as soon as I hit F8 (Eclipse Galileo) to continue, I immediately have control again.. basically it never reaches socket.connect.... What is going wrong here? If I surround it in a try/catch block, nothing is caught so it's not an exception.

View 1 Replies View Related

Android :: Sleeping In OnTouchEvent Blocks OnSensorChanged

Nov 13, 2010

I'm making an application which will utilize both touchevents and sensorevents. The problem with touchevents is that they fire off very often, and thereby consumes massive amounts of CPU time. The common solution is to do a Thread.sleep to make it cool down.However, if one wants to use both the onTouchEvent and onSensorChanged in the same activity, applying the Thread.sleep hack will also slow down onSensorChanged. This is obviously caused by the two methods being called from the same (ui) thread.Is there some way to call onTouchEvent from a different thread than the ui, so one could do the Thread.sleep trick without slowing down onSensorChanged as well?

View 1 Replies View Related

HTC EVO 4G :: Blocks Access Exchange Server - Not Available For Android

May 23, 2010

I'll be new to Android starting on June 4th and I'll be retiring my Blackberry Tour. There are a few apps on my Blackberry that I really like and use daily. So I have a few questions for the Android gurus out there.

1. Exchange Email- I work for a Computer Company that blocks access to their Exchange Server and although I've requested access repeatedly, they deny me every time. Is there a work around for Android similar to the Blackberry Desktop Redirector?
2. Sirius/XM- I know it's not available yet for Android but I was wondering if anyone has an update on the future availability of this App for the Evo.
3. Password Keeper- I would not be able to survive without this App on my Blackberry. Is there something as good or better available on the Android Market?
4. Can anyone recommend a good Chess Application for the Evo?

View 4 Replies View Related

Android :: Protected Blocks On Home Screens

Jun 17, 2010

I have an HTC Incredible and I noticed what appears to be protected blocks on one of the home screens. The home screen has only a couple of programs on it that take up 1 block. When I tried to move the location of one of the programs, I noticed there is a 1x2 vertical strip that is blank that is just to the top right of center that won't allow me to place anything. There is no reason why I shouldn't since there is plenty of room on the screen. Could there possibly be something hidden there? All i see is the background and touching that region does nothing.

View 1 Replies View Related

Android :: CheckBox Blocks ExpandableListView.OnGroupClic­kListener

Nov 5, 2009

I'm trying to put a checkbox into ExpandableListView. I noticed that doing that disables basic functionality of displaying child list when group row is clicked. Furthermore when I click outside of checkbox the click is detected by nether checkbox nor by OnGroupClickListener. Can someone help me to resolve this? The CheckBox works fine though including detecting clicks when clicking directly on the box.

View 2 Replies View Related

Android :: Activity Blocks Till Service Completes

Oct 10, 2009

I am starting a service from an activity. Once the services starts, the calling activity loses focus and blocks till the service is completed. Why is this and is there a way around it to return the control to the calling activity while the service runs in the background?

View 6 Replies View Related

Android :: Youtube Blocks So Many Videos From Being Viewed On Mobile?

Aug 18, 2010

why is it that youtube blocks so many videos from being viewed on mobile? does not compute. is this at google's discretion, or carriers?

View 4 Replies View Related

Android :: SSL Socket Blocks On Read While Changing Connection / Is It A Bug?

Feb 19, 2010

I assume that when I do a read on the inputstream, it blocks until it gets more data to read.
I also assume that when the connection is closed, the read throws an IOException.

The problem is that sometimes when I change the connection from carrier to WiFi or from WiFi to carrier, the read just gets stuck and never throws the IOException.

The SDK is 1.5 and the phone a HTC Hero.

This behavior is quite ugly for me because I need to stay always connected.
Does someone else have ever seen this problem ? Is it a bug or am I the bug?

View 2 Replies View Related

Android : Scrolling Down In App Inventor Blocks Editor Window

Aug 29, 2010

How can you scroll down in the Blocks Editor window?It lets me scroll down a little, but not to the end of my (lengthy) code.

View 1 Replies View Related

Games :: Blocks

Nov 4, 2010

Blocks is an original logic game. Your aim is collecting all rubies. It's very hard, but you should try it!

trial version
Blocks trial ~ Android Game v1.0 By rewqgame | Brain & Puzzle

full version
Blocks ~ Android Game v1.0 By rewqgame | Brain & Puzzle

View 5 Replies View Related

HTC EVO 4G :: Skype Blocks Fring

Jul 12, 2010

Skype Blocks Fring ? Or Not? Fingerpointing... But Where is Skype for Android? So what will we use now for video calling on our Evo's ?

View 3 Replies View Related

KitKat 4.4 :: App That Really Blocks SMS Text?

May 23, 2014

Is there an app that really blocks SMS text from blacklisted numbers? Avast is working on their software, since Google broke text blocking with KitKat. But any already released software that really works with KitKat? (I used the Nexus 5 SMS app on my Nexus 7 in order to restore SMS, but along with good text is a lot of spam. Go SMS Pro does not work for me, it will only save drafts, not send or block.)

View 3 Replies View Related

HTC Hero :: Blocks Synch With Googleaccount

Jul 30, 2009

Hero On Orange not letting me sign in to google account

But normally everything should work on my simcard....

Now the other part...Im from Belgium. The htc hero is not launched yet in Belgium because they need to remove the youtube app.

So I went to netherland and bought a htc hero! Hehe...but then I tried to connect to the market...so I tried to connect to my gmail account and I got the same error as the guy above...From the simcard/service etc...

Now I called my provider..he sais my simcard is quite new...so normally their shouldn't be any problem. I don't got data activated yet...but I'm connected true wifi...so that shouldn't be the problem? To be sure I activated the service right now..and waiting to get activated...

Could It be that my htc is blocked because I'm using one from the netherlands in Belgium?because of the situation with the belgium htc's?

View 3 Replies View Related

HTC Droid Eris :: Turn Off Mobile Network And Connected To Wi-fi Can Receive Texts - Send/Receive Pics

Feb 22, 2010

If i turn this off while I am home or in my dorm and connected to wi-fi

can I
1) Receive Texts
2)Send/Receive Pics
3)Make Calls?

View 26 Replies View Related

HTC Desire :: Wi-Fi Network Blocks Mobile Devices

Jun 8, 2010

The Wi-Fi network at my workplace apparently blocks mobile devices somehow.I can connect to the network fine but cannot load any webpages or connect through any apps on my Desire. It works fine however on my laptop.Has anyone else encountered this and more importantly is there a way round it?

View 30 Replies View Related

General :: App That Blocks Incoming Calls From Certain Users?

Jul 16, 2012

Basically I am looking for an app that will allow me to sort my contacts in groups and will block certain groups to call me for example during the night but other group of people will be allowed to contact me during the night, weekends, etc.

Nokia has this option as default but I am not aware of this feature on my Desire S.

View 1 Replies View Related

General :: Nexus X - Can't Restore Bootloader Due To Bad Blocks

Jun 30, 2012

Yesterday I got a sort-of-refurbished Nexus S (I9023) which was apparently not in such a good shape...Had problems flashing the system and userdata partitions (kept saying they were flashed fine but after reboot went back to their previous state).

I followed some tip without actually reading up on it and ended up formatting my bootloader partition.

Now, what I get is just a black screen no response or anything but using a tool called UnBrickable Mod I can get it back to fastboot mode and then boot into a recovery image and have adb access.

All in all, I am currently stuck cuz I want to flash a new bootloader image but what i get when i do that is:

Code:
~ # nandwrite /dev/mtd/mtd0 /bootloader.img
Skipping bad block at 0x00000000
Skipping bad block at 0x00040000
Skipping bad block at 0x00080000
Skipping bad block at 0x000c0000
Writing at 0x00100000
Writing at 0x00140000
Writing at 0x00180000
Writing at 0x001c0000
nandwrite: not enough space in MTD device

I have read that NAND blocks tend to go bad when continuously being flashed, but 50% bad blocks on the bootloader partition? Seems pretty unlucky... Is it possible to resize the partitions without any JTAGing or writing custom bootloaders?

View 1 Replies View Related

General :: Specify Memory Blocks In Updater Script

Oct 23, 2013

I m just rebuilding my stock rom with some mods. Used a random updater script provided in forum (As I don't have my own). Rebuild it in dsixda's kitchen. It says this:

Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system"); mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
but I've gathered info via adb of my device that looks like this:
[code]....

View 5 Replies View Related

Samsung Captivate :: White Blocks Over Screen When Selecting New Game?

Aug 23, 2010

Anyone got it working? when i launch it loads up then when selecting new game white blocks over the screen. Update 9/3/10, http://www.symbiantalk.net/showthread.php?41938-The-Sims-3-HD-Android-Update-12-08-10 scroll down half way and follow links for SGS phone it is the vibrant sims3.apk =D

View 6 Replies View Related

General :: Chrome Beta Update Blocks Custom Roms?

Feb 24, 2012

Dont install newest chrome beta update from market. After update cant open the browser on different ics roms (include cm9)

View 2 Replies View Related

Jelly Bean :: Quiet Mode Randomly Turns On And Blocks Calls - LG Optimus F3 4G LTE

Oct 27, 2013

I'm on Virgin Mobile, LB Optimus F3 4G LTE (it wasn't an option in the forums, so I came here instead). Not sure if this is an Android feature or an LG feature.

Anyway, this thing called "Quiet Mode" will randomly turn itself on at nighttime or in the middle of the day with no warning and silence all sounds and block calls from all contacts. This is obviously frustrating. I'm not bumping it in my pocket or anything -- you can't even turn this mode on without unlocking the screen and scrolling all the way over in my top pull-down bar. For instance, it's been sitting on the chair next to me for the last two hours and I just checked it and it's been in Quiet Mode for who knows how long.

I can add contacts to the allowed calls list, but I still won't hear the ring, and I can only add a limited number of contacts. Also, all the writing within this mode is really poor English, which is odd. Example: "Please mind that incoming calls with exactly the same numbers with below list will only be allowed." Anyway, it can be scheduled for certain times and I'm going to try scheduling it for just one minute from 4:00 - 4:01 AM every night and see if that satiate its compulsion to be in control.

Any ways I can keep it from doing this otherwise? It doesn't appear to be an app that I can fiddle with.

View 4 Replies View Related

Android :: Android - Why UI Still Blocks When Worker Thread Used?

Oct 17, 2010

package com.commonsware.android.threads;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;

public class HandlerDemo extends Activity {
Thread mBackground; ProgressBar bar;
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
bar.incrementProgressBy(5);
} }; boolean isRunning = false;
@Override
public void onCreate(Bundle icicle) { super.onCreate(icicle);
setContentView(R.layout.main); bar = (ProgressBar) findViewById(R.id.progress);
} public void onStart() { super.onStart(); bar.setProgress(0);
mBackground = new Thread(new Runnable() { public void run() { try { int a = 0;
for (int i = 0; i < 20 && isRunning; i++) { for (int j = 0; j < 2000; j++) {
for (int k = 0; k < 1000; k++) { a++;
} } handler.sendMessage(handler.obtainMessage());
} } catch (Throwable t) { // just end the background thread } } } );
findViewById(R.id.LoginButton).setOnClickListener(
new OnClickListener() { public void onClick(View v) { mBackground.run();
} } );
isRunning = true;
} public void onStop() { super.onStop();
isRunning = false;
} }

View 1 Replies View Related

Sony Ericsson Xperia X10 :: "Backup And Restore" Blocks Sim Card / Solve It?

Nov 25, 2010

So yesterday I was able to update my x10 to 2.1, everything has worked perfectly. The only problem that i have is that when I close the "Backup and restore" app (I already restored all my data) using "task manager", the phone blocks the SIM card and I have to introduce the PIN again.

View 1 Replies View Related

Android :: When Do Synchronize Methods Or Use Synchronized Blocks In Methods In Android Game

Mar 14, 2010

I'm looking into writing simple graphics code in Android and I've noticed some synchronized() blocks. What is the reasoning behind this and how do I know when I should be "synchronizing" my code?

View 1 Replies View Related







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