Android :: Java.net.SocketException - Operation Timed Out - Not Behind Proxy

Feb 25, 2009

I'm developing an app which needs to connect to the internet, but when i send a request using DefaultHtpClient.execute() method it takes 2-3 minutes and then the stacktrace says java.net.SocketException:operation timed out............

Android :: java.net.SocketException - operation timed out - not behind proxy


Android :: Java.net.SocketException - Operation Not Permitted

Sep 11, 2010

.............
nexus 2.2, device connects via wifi port not blocked datagram send works from android 1.5 moto blur.

View 2 Replies View Related

Android :: Launched Application - The Operation Timed Out

Nov 2, 2010

I am reading one simple web page, but when I launched my application after 2-3 min it show me output as: The operation timed out. Here ia my code...........

View 10 Replies View Related

Android :: Java.net.SocketException - Connection Reset

Jul 17, 2009

i got this (java.net.SocketException: Connection reset ) exception on server program when i try to read inputStream sent by client. BufferedReader.readLine(); is anybody know what can be the reason for this exception?

View 2 Replies View Related

Android :: Exception With Web Service ( Java.net.SocketException Permission Denied) In Android

Nov 23, 2010

When I call a Web Service, it returns me this exception: java.net.SocketException Permission denied. I dont know waht is the actual problem. I don't know how to solve this? home.java page:............

View 2 Replies View Related

Android :: Android Application - SocketException Permission Denied (No File Or Directory)

Sep 25, 2010

when I try to adapt the code to my project, things are not running well since I bumped to this exception (SocketException). Somehow, I keep getting it even after setting the permission in the manifest to have Internet permission (and yes, I have an Internet connection working):...............

View 2 Replies View Related

Android :: Android - SocketException (system Call Cancelled)

Apr 6, 2010

I am working on a android project and I need to connect the gPhone with the PC using UDP socket. The same operation, sending a message to from gPhone to the PC, returns different results in different time: Sometimes succeeded and sometimes throws a SocketExcepton(The system call was cancelled). Can anyone tell me what possibly results in this SocketException?

View 1 Replies View Related

Android :: Key Dispatching Timed Out

Aug 12, 2010

In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing.

Here is what gets printed in the log:

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

This is the code for the Button (Image):

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

If I comment the following out the pressing of the button (image) doesn't cause the crash:

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

The above code calls down through several levels of the app and into the native layer (NDK), could the call passing through several objects be leading to the force close? It seems unlikely as several other buttons do the same without issue.

How about the native layer? Could some code I've built with the NDK be causing the issue?

View 1 Replies View Related

Android :: Timed Notification

Sep 9, 2010

I'm writing an app, that lets users subscribe to notification for TV transmissions. Currently the user can choose email, sms or push, but it all feels a bit overkill for a simple timed notification. I wonder if I can tell Android to simply "show this Notification at 11:30"?

View 1 Replies View Related

Android :: Looking For Best 1/4 Mile Timed Application

Sep 25, 2010

Looking for an app that will give me 0-60, 1/4 mike times, etc. what is a good one?

View 8 Replies View Related

Android :: Lock_layer Timed Out (is CPU Pegged)?

Nov 18, 2009

I have a situation occurring intermittently with an application where I receive the following message. It's probably something to do with a Thread. The application seems to stop, but I get the following message and I'm not sure what it means: WARN/SurfaceComposerClient(2106): lock_layer timed out (is the CPU pegged?) layer=1, lcblk=0x424800a0, state=00000043 (was 00000043). I see others have had this issue, but I don't see a solution or explanation (that I can understand :-) ).

View 3 Replies View Related

Android :: Timed Trial Expiry?

Feb 20, 2009

Does anyone have a somewhat secure method of expiring a trial version of an app a certain amount of time after an install? I do not want to use a server, because I am making a game that shouldn't need permissions. I would like the expiration data to survive an uninstall, but I am ok if it doesn't survive a manual edit of the database. Do an application's database entries get deleted when an app is uninstalled? How about preferences? Local files? Other methods?

View 3 Replies View Related

Android :: Timed Modeless Dialog

Nov 9, 2010

Is there any way to show a modeless dialog--a dialog that allows the user to interact with whatever was on the screen before the dialog but also allows the user to interact with the dialog if pressed?

I know of Toasts, but they don't allow interaction with the popup.

I know of Dialogs, but they're modal and don't allow interaction with the background.

I know of Notifications, but I want something that is visibile on screen.

I basically want to be able to be playing a game or something and a popup appears that I have a new email or something. I can click it to view my email, but I can wait for it to go away if I just want to continue playing my game. Is this possible in Android?

View 2 Replies View Related

Android :: ObtainBuffer Timed Out In AudioTrack.write

Sep 1, 2010

After stopping and restarting playback of an audiotrack stream, on some devices I consistently get;

W/AudioTrack( 2453): obtainBuffer timed out (is the CPU pegged?) 0x64acc0 user=00010000, server=00000000

after freezing for a couple of seconds. This happens whether I just pause() and flush() my audiotrack or release() and recreate it.

View 4 Replies View Related

Android :: AudioTrack - 51 - WARNING - ObtainBuffer() Timed Out

Nov 4, 2009

I am using MediaPlayer to play background music and SoundPool to play sound effects. All Audio data is stored in .ogg file format. Sometimes it happens that the MediaPlayer playback is interrupted for a fraction of a second if SoundPool.play() is called. Whenever this happens, the following two warnings are printed to logcat:

11-04 01:49:05.113: WARN/AudioTrack(51): obtainBuffer timed out (is the CPU pegged?) 0x2b6e8 user=000cc520, server=000cb710 11-04 01:49:05.113: WARN/AudioTrack(51): *** SERIOUS WARNING *** obtainBuffer() timed out but didn't need to be locked. We recovered, but this shouldn't happen (user=000cc520, server=000cb710)

Do you have any ideas what could cause the warning messages and/or how to avoid them? I.e. how to prevent SoundPool.play() from interrupting MediaPlayer playback?

An other warning that's sometimes appearing is: 11-04 01:55:49.793: WARN/AudioFlinger(51): write blocked for 89 msecs There seems to be no connection to the above messages, but do you have any ideas what causes this message and/or how to avoid it?

Here's some more detailed background information, maybe they are useful: My OpenGL powered game is split into three threads: One for rendering, one to take care about the game logic and the main thread to process user input. All Audio data is accessed through a central AudioManager class, which is only used in the game logic thread. (So this does not seem like a threading issue. Needless to say that synchronizing all methods has not solved the problem). The game runs smoothly at ~60 frames per second. According to DDMS the game causes ~33% system load (~10% in kernel space and ~23% in user space) on a G1. Even the idle task gets ~24% CPU time assigned while the game is running and input happens through the touch screen! (So it does not look like a performance problem) The MediaPlayer playback interruption always happens if SoundPool.play () is called in response of a touch screen input. Although touch screen input and SoundPool.play() happen in different threads. I've tried suspending the UI thread for various different delays between 8 and 32 msec after a MotionEvent has been processed, but again, without success...

View 3 Replies View Related

Android :: Play Sound On A Timed Interval

Aug 27, 2010

I have an Android app which needs to play a sound resource on a timed interval, say every 120 seconds. I know how to access the sound resources and play them, however it's time timer part I'm not sure of. What's the best approach?

View 1 Replies View Related

Android :: Call To .NET Web Service Timed Out - Dev Using KSOAP2

Sep 4, 2010

I'm getting a Java Socket Exception "Operation timed out" when trying to call a .NET web service method. I've followed the many examples out there on the web to get my android to call a .net web service.

I'm running the web service using VS2010 in debug mode. The web method I'm calling is very simple -> "string GetVersion()"

I've read some posts that eclipse needs to be configured to access the internet by modifying the Proxy preferences "Preferences -> General -> Network Connections" from the Window menu item. I haven't been able to figure out exactly what I need to configure in the Proxy to get things to work if that is the problem.

I've also tried to access the .net web service root page (service.asmx) from my android with no success. I can access the asmx page with no problems using IE on the local machine. I've turned off the firewall and that didn't solve anything either. This is the first time I've tried to access a web service from a remote computer when it was running using VS2010 in debug mode.

I don't know if I have a configuration issue on the eclipse side or on the VS2010 side.

I'm also running Windows 7 Home Premium.

Below is a code snippet...

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

View 4 Replies View Related

Android :: Intent For New Contact Operation?

Jan 19, 2009

I wish to add a new operation to the contact detail view page under the current set of operations for a mobile number (Dial, Send SMS/MMS, ...), such as "Send a file". For my custom activity, what action and category would I specify so that my new operation appears in the contact detail view page? The end result would look like this (apologies for dodgy ascii art): ...........

View 2 Replies View Related

Android :: Key Dispatching Timed Out - Displaying Remote Images

Apr 9, 2009

I am working on an android project where the local and remote image files and their thumbnails are to be displayed. Now i have a problem with displaying the remote images. If i click the back button when the application is connected with the server, It waits for few seconds and forces my application to close. Log has a message "Key dispatching timed out". Once the image has downloaded completely back button is working, Here is my log...............

View 4 Replies View Related

Android :: SocketTimeoutException - Read Timed Out Occurs Only Via Mobile

May 4, 2010

I'm receiving "SocketTimeoutException: Read Timed Out" errors in my client app when attempting to post image data to a central server over HTTPS. What's odd is that I cannot reproduce the error when posting data from my local machine (via the emulator) to the same server. Increasing the SO_TIMEOUT value seems to only prolong the amount of time it takes for the timeout exception to occur. I am very new to using the Apache HTTP API - what am I missing?

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

View 3 Replies View Related

Android :: How To Create Toast From Background Operation?

May 1, 2009

what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Can I somehow get eleto the current UI thread? Can I somehow use the MainLooper from the application context? I use notification for serious events where the user needs to take action, e.g. a login failed, but here I am looking for a transient notification with a toast and it would be ok if the toast is not seen in some cases.

View 13 Replies View Related

Android :: Got Black Screen After No Operation On Application

Aug 13, 2009

in my app, I came into an Activity from the pre Activity's UI (such as:click a TextView which has added OnClickListener), like this way, after several times, I came into a deeper Activity. I left it for a while (such as left away) , when I came back ,I returned the Activity before the last Activity. then I got a black screen.

View 3 Replies View Related

Android :: Is Wi-Fi Adhoc Mode Operation Supported

Jul 6, 2010

I am trying to use Wi-Fi Adhoc Mode in my application. But I could not find any API or method to set the same. I read a thread in Android Forum and could not come any concrete solution on how to use enable Adhoc mode in Android.I used to use WPA_Supplicant conf file in Linux to enable Adhoc mode.

I would like know if I can enable Wi-Fi Adhoc mode in Android from my application and how to do the same.

View 2 Replies View Related

Android : How To Do Some Init Operation Immediately After Install

Sep 29, 2009

There is a big database(15M) in my application, it is too big to download the apk if I publish the source database in myapp.apk. So I encode the db to binary files(300k). But the new problem is I should decode binary files and create the database(with data), this procedure take about several minutes, so I can NOT do this in SQLiteOpenHelper.onCreate(), this is too slow for user experience(though it is a one time procedure, it is still unacceptable).

My application has NO main activity entry in launcher, the main entry is Broadcast Receiver.on Receive, the information should display to user immediately when receiving the broadcast, so I have no chance to display a several minutes "Initializing, please waiting..." UI. The best chance to create database and init data immediately after install, but how to do this, is there any broadcast? or is there any AndroidManifest attribute?

View 3 Replies View Related

Android :: Setting Timed Expiry For Application To Be Submitted To Adc2

Aug 30, 2009

I am submitting an application to the android developer challenge 2, but i would like to sell my application after the competition is over. In the terms and conditions google has mentioned that in case if i have to sell the application after the contest is over I have to set a timed expiry date.But while going through the steps for publishing the applications it is mentioned that the certificate validity limit should be a minimum of 22 October 2003."1.Your application must be signed with a cryptographic private key whose validity period ends after 22 October 2033. " Is it possible for me to set the expiration date as 120 days in the certificate? If not what is the best proccess that i should be following to set a timed expiry period?

View 3 Replies View Related

Android :: Cursor Move To First / Blocking UI Until Operation Completed?

Jul 20, 2010

I have a background thread which queries for 1000 records at a time. After querying , when i call cursor.move To First(), the UI gets blocked until the operation is completed.This is very disturbing experience for user , especially if there are 10000 plus records.I use Thread.sleep in between after each 1000 records, As soon as cursor.move To First is called, UI blocks for 2 3 seconds. Am i missing anything here ?

View 9 Replies View Related

Android :: Animation Jerking When Background Operation Running

Mar 30, 2010

In the background(seperate thread) when extensive operations are going, like create database and parsing, in the UI thread I am displaying an animation. But its not smooth, the view is jerking. How can I remove the jerking and make the animation smooth.

View 3 Replies View Related

Android :: During Refresh Operation - Show ProgressDialog Which Actually Is Never Visible

Mar 24, 2009

I know that this is common problem, but still I cannot find the answer. I have two classes: InternetConnection extends Activity ConnectionChangeReceiver extends BroadcastReceiver

From ConnectionChangeReceiver I'm calling InternetConnection method which is refreshing UI when Internet connection is changed. The problem is that during refresh operation I'd like to show ProgressDialog which actually is never visible !!

So broadcast class looks like: public class ConnectionChangeReceiver extends BroadcastReceiver. Code...

View 2 Replies View Related

Android :: Key Dispatching Timed Out - Press Button (Image) On UI Application Freezes

Aug 12, 2010

In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing.

View 2 Replies View Related

Android :: Process Dialog For Long Operation - Thread Object

May 29, 2010

In the code showed as below I create a process dialog for doing some long
operation (in this case waiting 4 seconds). It runs as it should. And shows the "Starting" and "Done" message but when it finishes and I click Button1 again it terminates.

public class main extends Activity { public ProgressDialog dialog = null;
final Handler handler = new Handler(){ public void handleMessage(Message msg){
dialog.dismiss(); TextView tv2 = (TextView) findViewById(R.id.TextView02);
tv2.setText("Done"); } };
Thread runlongjob = new Thread(){ public void run(){
SystemClock.sleep(4000); handler.sendEmptyMessage(0);
} };
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.main);
} public void clickhandler(View v){ switch(v.getId()){
case (R.id.Button01): TextView tv1 = (TextView) findViewById(R.id.TextView01);
tv1.setText("Starting...");
dialog = ProgressDialog.show(main.this, "Please wait", "Doing Job...",
true); runlongjob.start(); break; } }

View 2 Replies View Related







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