android Programming Glossary: listening
Google maps api v2 custom infowindow like in original android google maps http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps move the PopupWindow somehow yourself which is possible by listening to some onTouch events but IMHO you can't make it look good..
Android Speech Recognition as a service on Android 4.1 & 4.2 http://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2 a work around to this problem Voice Recognition stops listening after a few seconds but I am unsure as how to implement the.. target.mIsListening true Log.d TAG message start listening NON NLS 1 break case MSG_RECOGNIZER_CANCEL target.mSpeechRecognizer.cancel..
Detect rotation of Android phone in the browser with javascript http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascript the screen's orientation and change of orientation by listening for the onorientationchange event and querying window.orientation..
Can we delete an SMS in Android before it reaches the inbox? http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox If you define an android priority attribute on your SMS listening intent filter you will then receive the notification before..
Kiosk mode in Android http://stackoverflow.com/questions/2068084/kiosk-mode-in-android this question You can autostart applications on boot by listening to the android.intent.action.BOOT_COMPLETED intent in a BroadcastReceiver..
Detect if an outgoing call has been answered http://stackoverflow.com/questions/2250455/detect-if-an-outgoing-call-has-been-answered intent I guess my answer is in the activity listening for Intent.ACTION_CALL_PRIVILEGED . So to reprhase my question..
Android: Prompt user to save changes when Back button is pressed http://stackoverflow.com/questions/2459848/android-prompt-user-to-save-changes-when-back-button-is-pressed track what you should be doing is overriding onKeyDown and listening for the back key then overriding the default behavior @Override..
How can I connect to Android with ADB over TCP? http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp adbd start adbd And you can disable it and return ADB to listening on USB with setprop service.adb.tcp.port 1 stop adbd start adbd.. assigned to your device. To tell the ADB daemon return to listening over USB adb usb Apps to Automate the Process There are also..
What is a Sticky Intent? http://stackoverflow.com/questions/3490913/what-is-a-sticky-intent some_boolean true sendStickyBroadcast intent If you are listening for this broadcast in an Activity that was frozen onPause you..
Android apps, communicating with a device plugged in the USB port http://stackoverflow.com/questions/3803871/android-apps-communicating-with-a-device-plugged-in-the-usb-port be one way just data pushed from the cell phone to the listening app on the PC whenever the cell phone wants I don't need any..
Connecting 2 Emulator instances In Android http://stackoverflow.com/questions/4683854/connecting-2-emulator-instances-in-android on emulator 5554 and the client on 5556. My server code listening on 6000 public class SocketServer extends Activity ServerSocket..
Android TextWatcher.afterTextChanged vs TextWatcher.onTextChanged http://stackoverflow.com/questions/476848/android-textwatcher-aftertextchanged-vs-textwatcher-ontextchanged a you need to see and possibly edit new text. If I'm just listening for changes in EditText I won't need to use the first two methods.. two methods. If I also had a need to edit the text after listening to the changes I would do that in the third method. share improve..
How to parse XML using the SAX parser http://stackoverflow.com/questions/4827344/how-to-parse-xml-using-the-sax-parser you don't specify or declare you XML structure but just listening for events. The most widely used ones are following events Document..
Create a NinePatch/NinePatchDrawable in runtime http://stackoverflow.com/questions/5079868/create-a-ninepatch-ninepatchdrawable-in-runtime chunk metadata. read more Okay now down to business you're listening to DJ kanzure . Client code something like this InputStream..
MediaPlayer stutters at start of mp3 playback http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback socket private int port public StreamProxy Create listening socket try socket new ServerSocket SERVER_PORT 0 InetAddress.getByAddress..
How can I use speech recognition without the annoying dialog in android phones http://stackoverflow.com/questions/6316937/how-can-i-use-speech-recognition-without-the-annoying-dialog-in-android-phones the listener when the speech recognizer is ready to begin listening for speech and as it receives speech and converts it to text...
Suppress / Block BroastReceiver in another app http://stackoverflow.com/questions/6600266/suppress-block-broastreceiver-in-another-app notification . The feature causes other applications listening to the incoming SMS broadcast to not fire. For example my application..
Listening for ACTION_SCREEN_OFF on Android http://stackoverflow.com/questions/11346958/listening-for-action-screen-off-on-android for ACTION_SCREEN_OFF on Android I'm trying to start a service..
Asynchronous communication between Javascript and Phonegap Plugin http://stackoverflow.com/questions/19177991/asynchronous-communication-between-javascript-and-phonegap-plugin Toast pops but the PluginResult isn't sent to the JS. PS Listening to WiFi events isn't my actual problem I want to replicate the..
Android -Starting Service at Boot Time http://stackoverflow.com/questions/4562734/android-starting-service-at-boot-time . You also need RECEIVE_BOOT_COMPLETED permission. Read Listening For and Broadcasting Global Messages and Setting Alarms share..
Android UDP Communication http://stackoverflow.com/questions/5904820/android-udp-communication new DatagramSocket udp_port Log.i ServerWrapper UDP Listening on port udp_port break catch SocketException e Log.e ServerWrapper..
Stream live video from phone to phone using socket fd http://stackoverflow.com/questions/6116880/stream-live-video-from-phone-to-phone-using-socket-fd @Override public void run connectionStatus.setText Listening on IP SERVERIP serverSocket new ServerSocket SERVERPORT ..
How to implement an HTTP server on android http://stackoverflow.com/questions/7268320/how-to-implement-an-http-server-on-android is handled at this level. Your question is about to open a Listening Socket level 4 and a client that talk with it with a HTTP protocol..
Android - Server Socket http://stackoverflow.com/questions/7455016/android-server-socket new ServerSocket SERVERPORT System.out.println Listening SERVERPORT System.out.println Server IP SERVERIP catch Exception..
“Service discovery failed” from Android Bluetooth Insecure Rfcomm http://stackoverflow.com/questions/8515572/service-discovery-failed-from-android-bluetooth-insecure-rfcomm catch IOException e serverSocket tmp ServerThread Listening for Connections BluetoothSocket socket while true try socket..
How to call Android contacts list? http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list or canceled . startActivityForResult intent PICK_CONTACT 3 Listening for the Result Also in your Activity override the onActivityResult..
Google maps api v2 custom infowindow like in original android google maps http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps shows up when you start to move the map around. You have to move the PopupWindow somehow yourself which is possible by listening to some onTouch events but IMHO you can't make it look good enough especially on some slow devices. If you do it the simple..
Android Speech Recognition as a service on Android 4.1 & 4.2 http://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2 issues detail id 37883 I have found a question which proposes a work around to this problem Voice Recognition stops listening after a few seconds but I am unsure as how to implement the Handler required for this solution. I am aware of the 'beep'.. target.mSpeechRecognizerIntent target.mIsListening true Log.d TAG message start listening NON NLS 1 break case MSG_RECOGNIZER_CANCEL target.mSpeechRecognizer.cancel target.mIsListening false Log.d TAG message..
Detect rotation of Android phone in the browser with javascript http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascript javascript I know that in Safari on an iPhone you can detect the screen's orientation and change of orientation by listening for the onorientationchange event and querying window.orientation for the angle. Is this possible in the browser on Android..
Can we delete an SMS in Android before it reaches the inbox? http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox system which components should receive the broadcast first. If you define an android priority attribute on your SMS listening intent filter you will then receive the notification before the native SMS application. At this point you can cancel the..
Kiosk mode in Android http://stackoverflow.com/questions/2068084/kiosk-mode-in-android and if so how android kiosk kiosk mode share improve this question You can autostart applications on boot by listening to the android.intent.action.BOOT_COMPLETED intent in a BroadcastReceiver and start your Activity from there. In the Activity..
Detect if an outgoing call has been answered http://stackoverflow.com/questions/2250455/detect-if-an-outgoing-call-has-been-answered Uri.fromParts tel phoneNumber.toString null context.startActivity intent I guess my answer is in the activity listening for Intent.ACTION_CALL_PRIVILEGED . So to reprhase my question Does anyone know which activity handles Intent.ACTION_CALL_PRIVILEGED..
Android: Prompt user to save changes when Back button is pressed http://stackoverflow.com/questions/2459848/android-prompt-user-to-save-changes-when-back-button-is-pressed share improve this question You're not quite on the right track what you should be doing is overriding onKeyDown and listening for the back key then overriding the default behavior @Override public boolean onKeyDown int keyCode KeyEvent event if keyCode..
How can I connect to Android with ADB over TCP? http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp with the commands su setprop service.adb.tcp.port 5555 stop adbd start adbd And you can disable it and return ADB to listening on USB with setprop service.adb.tcp.port 1 stop adbd start adbd From a Computer if You Have USB Access Already It is even.. replace 192.168.0.101 with the IP address that is actually assigned to your device. To tell the ADB daemon return to listening over USB adb usb Apps to Automate the Process There are also several apps on Google Play that automate this process a quick..
What is a Sticky Intent? http://stackoverflow.com/questions/3490913/what-is-a-sticky-intent Intent intent new Intent some.custom.action intent.putExtra some_boolean true sendStickyBroadcast intent If you are listening for this broadcast in an Activity that was frozen onPause you could miss the actual event. This allows you to check the..
Android apps, communicating with a device plugged in the USB port http://stackoverflow.com/questions/3803871/android-apps-communicating-with-a-device-plugged-in-the-usb-port phone I just need a very simplistic data exchange it can even be one way just data pushed from the cell phone to the listening app on the PC whenever the cell phone wants I don't need any data sent from PC to phone . When I plug it in the phone gives..
Connecting 2 Emulator instances In Android http://stackoverflow.com/questions/4683854/connecting-2-emulator-instances-in-android had the comms handled in a separate thread. I ran the server on emulator 5554 and the client on 5556. My server code listening on 6000 public class SocketServer extends Activity ServerSocket ss null String mClientMsg Thread myCommsThread null protected..
Android TextWatcher.afterTextChanged vs TextWatcher.onTextChanged http://stackoverflow.com/questions/476848/android-textwatcher-aftertextchanged-vs-textwatcher-ontextchanged The same as above except now the text is editable . Use when a you need to see and possibly edit new text. If I'm just listening for changes in EditText I won't need to use the first two methods at all. I will just receive new values in the third method..
How to parse XML using the SAX parser http://stackoverflow.com/questions/4827344/how-to-parse-xml-using-the-sax-parser SAX handler implementation is a bit different. Here you don't specify or declare you XML structure but just listening for events. The most widely used ones are following events Document Start Document End Element Start Element End Characters..
Create a NinePatch/NinePatchDrawable in runtime http://stackoverflow.com/questions/5079868/create-a-ninepatch-ninepatchdrawable-in-runtime that Android expects. This is where the png file gets its chunk metadata. read more Okay now down to business you're listening to DJ kanzure . Client code something like this InputStream stream .. whatever Bitmap bitmap BitmapFactory.decodeStream..
MediaPlayer stutters at start of mp3 playback http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback Thread thread private boolean isRunning private ServerSocket socket private int port public StreamProxy Create listening socket try socket new ServerSocket SERVER_PORT 0 InetAddress.getByAddress new byte 127 0 0 1 socket.setSoTimeout 5000 port..
How can I use speech recognition without the annoying dialog in android phones http://stackoverflow.com/questions/6316937/how-can-i-use-speech-recognition-without-the-annoying-dialog-in-android-phones
Suppress / Block BroastReceiver in another app http://stackoverflow.com/questions/6600266/suppress-block-broastreceiver-in-another-app Go SMS recently updated with a new feature Disable other message notification . The feature causes other applications listening to the incoming SMS broadcast to not fire. For example my application Shady SMS listens to the incoming SMS broadcast to..
Listening for ACTION_SCREEN_OFF on Android http://stackoverflow.com/questions/11346958/listening-for-action-screen-off-on-android for ACTION_SCREEN_OFF on Android I'm trying to start a service that runs in the background that is listening for ACTION_SCREEN_OFF..
Asynchronous communication between Javascript and Phonegap Plugin http://stackoverflow.com/questions/19177991/asynchronous-communication-between-javascript-and-phonegap-plugin PluginResult.Status.ERROR Wifi Disconnected The Toast pops but the PluginResult isn't sent to the JS. PS Listening to WiFi events isn't my actual problem I want to replicate the Android Bluetooth Chat app in Phonegap. So it has to be asynchronous..
Android -Starting Service at Boot Time http://stackoverflow.com/questions/4562734/android-starting-service-at-boot-time
Android UDP Communication http://stackoverflow.com/questions/5904820/android-udp-communication while true try udp_port r.nextInt 1000 8000 udp_port 8000 comm_skt new DatagramSocket udp_port Log.i ServerWrapper UDP Listening on port udp_port break catch SocketException e Log.e ServerWrapper Could not bind to port udp_port byte sdata new byte..
Stream live video from phone to phone using socket fd http://stackoverflow.com/questions/6116880/stream-live-video-from-phone-to-phone-using-socket-fd From Server.java try if SERVERIP null handler.post new Runnable @Override public void run connectionStatus.setText Listening on IP SERVERIP serverSocket new ServerSocket SERVERPORT while true listen for incoming clients Socket client serverSocket.accept..
How to implement an HTTP server on android http://stackoverflow.com/questions/7268320/how-to-implement-an-http-server-on-android to exchange high level data file images audio .. and is handled at this level. Your question is about to open a Listening Socket level 4 and a client that talk with it with a HTTP protocol level 7 . So you're miss to fill the gap socket listening..
Android - Server Socket http://stackoverflow.com/questions/7455016/android-server-socket dataOutputStream null ServerSocket serverSocket null try serverSocket new ServerSocket SERVERPORT System.out.println Listening SERVERPORT System.out.println Server IP SERVERIP catch Exception e e.printStackTrace while true try socket serverSocket.accept..
“Service discovery failed” from Android Bluetooth Insecure Rfcomm http://stackoverflow.com/questions/8515572/service-discovery-failed-from-android-bluetooth-insecure-rfcomm on insecure RFCOMM channel for service requests for SERVICE_NAME catch IOException e serverSocket tmp ServerThread Listening for Connections BluetoothSocket socket while true try socket serverSocket.accept catch IOException e break if socket null..
How to call Android contacts list? http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list then return to this Activity when the selection is made or canceled . startActivityForResult intent PICK_CONTACT 3 Listening for the Result Also in your Activity override the onActivityResult method to listen for the return from the 'select a contact'..
|