Android :: Listening On TCP Port / Kill A Blocking Thread?

Jan 28, 2010

I have a thread listening on a TCP port. When there's nothing coming in on that port, the thread blocks. This is fine, and the behaviour I want, but how do I kill said thread while it's blocking?

Android :: Listening on TCP port / Kill a Blocking Thread?


Android :: Getting Around Port 25 Blocking Ideas?

Dec 30, 2009

I'm trying to use the Mail client on my Hero to send emails, but it seems that Three is blocking port 25. I've asked my hosting company if they can allow me to use port 587, but in the meantime, does anybody know of how else I can send email from my Hero?

View 3 Replies View Related

Android :: Specify Port When Programmatically Listening For SMS Messages?

Feb 13, 2009

I can get SMS messages by using the syntax below: code...

But what I really need to do is listen on a particular port.

It appears you can set it in the manifest like below, but this is a utility class so it doesn't have a manifest:

<data android:port="8192"/>

I'm looking at the IntentFilter documentation, but I'm not sure what to use...

Does 'port' fall under "Data Path"? Is it a "Category"?

Can you even add properties like that to a programmatically created IntentFilter (I presume you can)?

Also, I am interested in reading the message (as part of a control scheme), will this trigger some sort of notification to the user to decide who/what gets to handle the SMS?

View 2 Replies View Related

Android : Stop / Kill A Thread?

Apr 29, 2010

I am basing my game off of the Lunar Lander demo.

The problem I am having is my game not restoring its last saved state when it comes back into focus.

When the game loses focus/quits it saves all the information to a Bundle correctly, then runs surfaceDestroyed() to shut down the thread.

When I restart the game, I thought onCreate(Bundle savedInstanceState) method was supposed to always start first, then restore the saved Bundle if it is not "Null". But because it sees that I have started/ created a thread last time, it jumps straight to surfaceCreated method.

The only thing I can think of is to find a way to get rid/destroy the thread so that it runs onCreate at the start. However the stop() and destroy() methods for threads have been depreciated. Is there anyway to do this? Or is there a better method of saving an instance of the game? code...

View 7 Replies View Related

Android :: Kill Activity From Asynchronous Thread?

Sep 27, 2010

How can I kill Android activity from asynchronous thread? In my android application, I start another activity using startActivity. Is there anyway for me to kill that activity I started after several minutes?Or is there any way beside using thread?

View 2 Replies View Related

HTC EVO 4G :: Broken Charging Port Thread

Jul 26, 2010

sprint can't say "Its the users fault" because you know dam well its not. If you have a loose or broken port please post here and try to include your hardware version 2 or 3 and your build dates. Frankly im sick and tired of HTC and Sprint passing the buck about there faulty equipment.

View 49 Replies View Related

Android : Kill The Currently Running Thread - If One Is Currently Running

Nov 4, 2010

I've created a class which is an extension of Thread. This class hits a web service and throws some data on screen. I don't care about persisting this data (the screen displays search results).

Currently, the user simply types into an EditText and clicks a search button. I'd like to take away the search button and implement something similar to Google's Instant Search where, as you type, the search results get updated.

This means, as the user types, the search parameters change. I want to be able to kill the currently running thread (if one is currently running) and spawn a new one with the new search string. How can this be achieved? Can I do it with Thread or will I need to use a new object?

View 4 Replies View Related

Samsung Moment :: Need Kill / Auto - Kill List

Dec 17, 2009

I have the startup auditor and Task Panel apps. I want to try and setup the phone to always have as much memory available as possible. Most of them are pretty obvious but there are a few I'm not sure of. Does anyone have a comprehensive list of services/processes/etc. that we can safely kill off and/or set for auto-kill/disable at startup? Edit: One I was curious about is Google Partner Setup. I have killed it off without any issues through Task Panel. But would having it on the auto-kill list be OK?

View 7 Replies View Related

Android : Java - Implement A Run Method Of Thread If Create A Thread Global

Sep 7, 2010

How can I implement a run() method of thread if I create a Thread Global?

I mean If I create a Thread Globally then can I implement its run() method {" public void run()"} anywhere in my Application?

In the run() method I have to write the code to perform some action.

IF I can do it then please can anyone show me briefly how to do it particularly.

View 2 Replies View Related

Android : Handle Messages Between The Main Thread(the Deafult UI Related Thread) And The User Created Gamethread

May 21, 2009

I am writing an application in which i need to handle messages between the main thread(the deafult UI related thread) and the user created Gamethread.

The requirement is like this.

An activity(say "Activity_X") is setting the view by "setContentView(some "View_Y")". In "Activity_X" i have implemeted "onCreateOptionsMenu()" and "onOptionsItemSelected()" fucntions for creating menus & a switch case for action to be taken on selecting those menus.Menu has items like "resume/pause/zoom/" .

All action to be take on selecting these menus are implemented in "View_Y" in a separate Gamethread by extending "Thread" class.

So whenever a menu is selected in "Activity_X" i need to send a message to "View_Y". And on receiving this ,a particular action/method should be called in View_Y(GameThread).

How can i achieve this using Handlers?Is there any other way of doing this? Please do share with me some code snippets for these.

View 3 Replies View Related

Android :: Update ListView In Main Thread From Another Thread

May 27, 2010

I have a separate thread running to get data from the internet. After that, I would like to update the ListView in the main thread by calling adapter.notifyDataSetChanged(). But it does not work. Any workaround for that?

View 1 Replies View Related

Android :: Use Thread With SurfaceView - Ie Draw In Separate Thread?

Jul 22, 2009

I want to do the drawing in another thread to speed up the game(it is way to slow right now). I was told to do this but don't quite understand why that would speed things up. Is it GameView that should implement Runnable? Should I make the thread sleep when not drawing? where should I start the thread? package com.android.WWS;

import android.app.Activity; import android.content.Context; import android.graphics.*; import android.os.Bundle; import android.view.SurfaceView; import android.view.KeyEvent; import android.view.View; import android.view.View.OnKeyListener; import java.lang.Runnable; import java.lang.Thread;...................

View 4 Replies View Related

Android :: Suspend / Resume Thread From Another Thread In Same App

Feb 20, 2009

I need to suspend/resume a thread from another thread in the same process. I tried to look into thread apis,but I couldn't figured out a way to achieve this.Can anyone pls point me some references to look or give a tip to do this.

View 2 Replies View Related

HTC Droid Eris :: Remove Certain Texts From Thread In Easily Instead Of Whole Thread?

Dec 28, 2009

Does anyone know how to delete certain texts from a thread in an easy manner instead of having to delete a whole thread??

View 7 Replies View Related

Android :: Main Thread The Same As UI Thread?

Jul 16, 2010

The Android doc says "Like activities and the other components, services run in the main thread of the application process." Is the main thread here the same thing as UI thread?

View 3 Replies View Related

Android :: Need Blocking Application

Nov 28, 2009

Is there any way to block an app so that cannot be launched?

View 7 Replies View Related

Android :: Listening To Beacons

Nov 11, 2009

I want to create an advanced WiFi access points scanner for a university project. Currently I am using the WifiManager.getScanResults() api call. It seems that not all the data I see using a wifi sniffer (Wireshark) is available using this api.

Can I get access to each beacon the wifi interface receives at its raw state? Can I listen to beacons on android and process them as byte[]?

View 2 Replies View Related

Android :: Listening To Services

May 19, 2009

In my ideal little dream world, I'd like to have a custom service running that handles network comms. Activities (e.g. UIs) then add listeners to it and it provides callbacks when anything interesting happens.

As it stands, I can't see how to do this in an appropriate way. OK, you can call bindService() and have a ServiceConnection implementation that monitors the service state. From there you can easily talk *to* the service whenever you desire, using serialisation over transactions, but I don't think that helps with communication initiated by the service.

The only way I know of doing what I want is by maintaining static collections of listeners on the service class, which doesn't strike me as good engineering.

View 2 Replies View Related

Android :: Listening To Wav Files

Sep 13, 2009

My telephone provider emails me .wav files that contain my phone messages. I can't read these in android. Does anyone know of an application that can read them.

View 1 Replies View Related

Android :: Listening To Podcasts At 2x?

Jun 1, 2010

I am looking for a way to listen to educational talks that I have as MP3s and podcasts at twice the speed. My brother does this on his iphone and he learns twice as much as me. I like .podkast and google listen but neither offer that option. Also tried the stock media player, tune wiki and cubed 3 - no luck on double speed.

View 4 Replies View Related

Android :: UI Blocking On Intent Service?

Sep 14, 2010

I'm launching an IntentService using startActivity from inside the onClickListener of a button. startActivity returns immediately. No blocking there. But the button stays "pressed" until the IntentService finishes its work. In addition, the screen does not respond to rotation while the IntentService thread is running. I can see that it's a separate thread in the debugger but the UI seems to be coupled to it. As soon as the IntentService thread finishes, the UI is unblocked. Any idea how I can prevent this and let the UI continue?

View 2 Replies View Related

Android :: Need Application For Blocking Calls?

Jun 8, 2010

Need a program to block calls. Telemarketers, debt collectors, annoying ex's etc. Anything like that for the Android? The send to voice mail feature causes them to just leave me voice mail.

View 4 Replies View Related

Android :: Need A Call Blocking Application?

Apr 6, 2010

I am developing a call blocking application for android. What I've achieved so far is that my application gets informed whenever there is some incoming call. Now i want my application to handle the incoming call instead of default android application. So for this, i am trying to kill the android phone process. Please tell me can i do so. If not, then how can i reject the incoming call.

View 4 Replies View Related

Android :: Blocking Intents From Launching?

Apr 6, 2010

On the market, there's an application called App Protector, which seems to effectively block the launching of configured activities until a password is correctly provided. By default, it blocks access to itself (not very interesting), Settings, and a few others. I wrote my own app to launch settings (rather than doing so through the home screen) and App Protector continued to do the job it claims to do.
When an activity that is protected is started, App Protector's password input activity is shown instead. Once the correct password is provided, the activity that was started comes to the front.
First -- does anyone know how this app is able to get between the rest of the system and the activities it protects? I would like to do something along these lines in my own application as well. Perhaps this app is receiving a broadcast about other activities coming to the foreground, and when the foreground activity is protected, it forces itself to the foreground?
Second -- does anyone know how well this technique will stand up to attack? Are there other ways to circumvent, where start Activity(...) fails to? It seems that one could use adb to un install it, thus removing its protection easily, but if I pursue my plans here, the app will be a part of a device's firmware (which, I assume, offers some protection against its apps being installed?)

View 2 Replies View Related

Android :: API For Intercepting And Blocking A Call?

Oct 6, 2009

Is there a API for intercepting and blocking a call? What I want to do is to create app that autometically detect incoming call and based on the caller it either alert the user or don's alert the user. Like, if the number is stored in the phone book then alert the user other wise just send a message to the caller that the person is busy.

View 3 Replies View Related

Android :: OnClick Seems To Be Blocking OnFling

Nov 23, 2010

I have an Activity that implements a Gesture Detector to catch the user fling input for navigation to other screens. That was working fine - but - I recently updated a class that derives from my BaseActivity to add an onClick function and now that click event seems to block the onFling from being hit. The onClick is tied to a TextView area (in a LinearLayout) I have on my screen. The resultsClick method is wired to the TextView using its onClick property in the XML layout.

I've tried changing the return values in onSingleTapUp and onDown without luck. I've also tried adding log statements to all the functions below as well. None of them fire when I fling in the TextView area but they do on other areas of the screen.

Maybe I am using the wrong search terms, but I couldn't seem to find an example that addressed this - yet I'm sure this problem has been solved before.

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

View 2 Replies View Related

Android :: Listening To Changes In Address Book

Feb 3, 2009

Is there any way to know the changes made in the address book. What I want to know is that whenever an contact is added ,modified or deleted my app should receive the notification as well as the ID of the contact changed.

View 4 Replies View Related

Android :: Register Listening For Contact Changes?

Jun 30, 2009

How to register listening for any Contact (add/remove contact, change in email/phone) changes on android?

View 1 Replies View Related

Android : API Can Use To Listening To Change Of Contact?

Sep 9, 2009

Is there any API can use to listening to the change of the contact? Such as add/delete/edit the contact it will invoked certain method and I can know which contact the user has been modified.

View 3 Replies View Related

Android :: Need A Call-Blocking Application For Motorola?

Mar 18, 2010

I have someone who's calls I wish to block. No I don't want to forward him to voice mail (even though I already have). I want the phone's caller ID to recognize the caller and simply bloc the call (I don't want the phone to ring and I don't want it to accept any voice mails from this guy). I know google voice has this feature, but I don't want to activate the single number version of GV (I'm not ready to have only one number. I read a similar thread that was posted here some time ago, but there were no definitive answers on it: http://androidforums.com/support/6077-caller-id-based-blocking-call-forwarding.html. I was wondering if anyone was aware of any apps that could be used to block a specific incoming number, which could be installed without having to root the phone.

View 20 Replies View Related







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