[android-developers] Camera Preview Sample
Hi, has anyone of you a sample code which uses the camera preview callback in help with the SurfaceHolder.SURFACE_TYPE_NORMAL? I want to generate a own preview to analyse the picture and to display some infos into the picture. but i still have some problems to display a own preview ( only the camera picture, no analyse ). For Example: http://scheinwohnsitz.de/preview.jpg Additional, only the emulator displays this result, on my g1 i get a black screen with some exceptions. Can anybody help me, please! Cheers Gerby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Headset Detection
Hi, i hope somebody can help me. i have developed a service to detect a connected headset at the mobile using following constant http://developer.android.com/reference/android/content/Intent.html#ACTION_HEADSET_PLUG The definition of this constant defines two extra values which will be available in the resulting intent. Now, the question: What does the extra value name describes? Is this the product name of the connected headset? When i connect the htc headset or adapter this extra value contains the string Headset and i'm not smarter than before. It would be great when someone can help me! Cheers Gerby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Get active apps displayed on screen
Hi, is it possible to get listed the apps or activity which are actually displayed on the screen of the android mobile. I need this function for an service which should only start an own activity when no application is displayed, excepting the home screen. Please help me! Cheers Gerby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to use the Intent.createChooser ...
to display all audio or media application, which were installed at the android phone? i don't want to set a media file as extra, i only want to show all available applications to play audio or media files. Can somebody help me? Please! Cheers Gerby --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)
hi henning do you have some example code for me, how to create a service to detect the headset, please? Cheers On 16 Feb., 17:21, zero zeroo...@googlemail.com wrote: on a side note, i recommend the logcat app for such momentshttp://code.google.com/p/android-random/ On Feb 16, 5:04 pm, Henning Schaefer henning.schae...@gmail.com wrote: OK, after digging into the android system code, I think I figured out what's wrong here... the class HeadsetObserver from the base system actually sends out this intent with its FLAG_RECEIVER_REGISTERED_ONLY flag set... obviously, there's no way to receive this intent without implementing a service. On 15 Feb., 12:59, Henning Schaefer henning.schae...@gmail.com wrote: Hi all, yesterday, I spent several hours trying to figure out how to capture the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines the receiver, with its intent-filter set to action android:name=android.intent.action.HEADSET_PLUG /. The receiver is working correctly (I verified that by changing the intent filter to capture things like SMS_RECEIVED including the proper permissions and the receiver fired as expected on receiving an SMS), but when listening for HEADSET_PLUG, it never fires. Debugging the whole thing is a bit complicated, as the emulator doesn't seem to support headsets and I have to disconnect my target device (a HTC Dream) from USB in order to attach a headset (so there's no logfile viewing). Are there any special permissions required for applications to capture the HEADSET_PLUG intent (and if so, which? I've tried several, to no avail)? Maybe the Dream doesn't fire such an intent at all (that'd be bad luck for me), but I guess that it must be an issue related to application permissions. The documentation says extremely little (well, actually: nothing) about the single permissions needed to perform all the actions described in the API docs, so this is absolutely something to be improved. What I want to do: Upon detecting a headset, I want to re-route the ringtones from the speakers to the headset, so as not to annoy people in my vicinity by a harsh ringing sound (I'm used to this behaviour from my old phone) - by default, the speaker just keeps on ringing, no matter whether a headset is attached or not. This part is already working, but now I need to know how to detect headset attachment/ detachment events. Thanks in advance, Henning --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---