[android-developers] display one view from 2 different activity
Hi, I have 2 activity, one activity is rendering form view and one common date activity is rendering view for data picker. i want to render both output in one view. I am using the date view in multiple place, i want to avoid writing date picker code in form activity. Please help me to achieve this. i have been trying this. Thanka -- 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] Knwon issues and limitations on running Android applications on Android 2.1 smartphone
We would like to gather some general known issues and limitations on running Android applications on Android 2.1 mobile phone. eg. memory issues, battery usage, ..etc; since there is only limited information from developer.android.com/guide/practices/design/ -- 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: Geo Fix Still Not Working in 1.6
Hi, i am also facing the same problem with android 1.6, i am sending coordinate through telnet but LastKnownLocation is returning null, m using android 1.6 eclipse window vista, am i doing anything wrong in Java code, can please send me java code. is it require any changes in menifest except permission. i have tried with all permissions. Thanks On Oct 24, 4:16 am, jotobjects jotobje...@gmail.com wrote: Cool. It seems like the best thing is to do both. Call getLastKnownLocation AND register a listener. LastKnownLocation can be null as documented so you have to expect that. And it can be completely wrong if the the phone has been moved (you get off an airplane and turn on your phone). But you might not get any value for a while from the listener (also as documented) so you have to expect that also. Quote from docs - It may take a while to receive the most recent location. If an immediate location is required, applications may use the getLastKnownLocation(String) method. You are right about telnet. I meant I'm runninggeofixON the emulator after invoking telnet and the emulator itself is running Linux - so that's wheregeofixruns in telnet (ALWAYS on Linux) even if the O/S is windows or whatever. On Oct 23, 3:50 pm, Brian Conrad brianjto...@gmail.com wrote: I solved the problem and have it working but not the way it originally worked. Originally in one's code you code set up the location manager and then call from it getLastKnownLocation and get the coordinates. These were what examples did when I first looked at GPS code. That was what got broken and was apparently unintentional. Instead I set up a location listener and nowgeofixworks and probably DDMS though I haven't tried that. My thinking is that most people were writing applications where they would want updates while running. Mine was just simple and needed the location at runtime or whenever the user wanted a recalculation. So I'll instead set up the listener though we still only care when the application runs or is recalculated. That change is easy to implement. FYI, telnet also runs in the command line on Windows. It's not unique to Linux. jotobjects wrote: I just used Google Maps to prove thatgeofixworked and resulted in the platform correctly knowing the location given bygeofix. You might want to try that too to prove thatgeofixdoes or doesn't work in an application other than your own code. That would be interesting confirmation for you and is easy to do. When I telnet into the emulator console and rungeofixas shown I am using Linux on the emulator of course. What problem has Android acknowledged regardinggeofix? What is the bug number? On Oct 23, 12:44 pm, Brian Conrad brianjto...@gmail.com wrote: Are you running on Windows or Linux? I'm running Ubuntu 8.04 and Eclipse. Android acknowledgedgeofixwas broken in the 1.5 SDK. I am usinggeofixto get the longitude and latitude only and not with Google Maps. Everything is set in the manifest correctly too. I have a 20% installed base which is about 600 users so I doubt if they would keep it around if it wasn't working. I don't know anything about a rounding bug as I round anyway for use down to degrees and minutes. One would think that DDMS would work when I have the app recalculate after sending coordinates manually. jotobjects wrote: geofixworks for me with both DDMS and the emulator console. Using console this works - telenet localhost 5554 geofix-117.24 32.883 This locates you in the University of California San Diego campus. I tried this with DDMS manualgeofixand it works there also. My test is using Google Maps My Location menu selection. What is not working withgeofixfor you? Incidently I am now noticing that DDMS gives me the correct location. But thegeofixcommand in the console exhibits the rounding problem Auguste Lunang pointed to that is a couple of hundred feet off (which is a problem for testing that depends on more accuracy). Do you know if there is a bug filed for the rounding problem? On Oct 22, 5:06 pm, Brian Conrad brianjto...@gmail.com wrote: There is a bug filed forgeofix(not by me but by people who found it earlier). I haven't filed one for DDMS until I'm sure I grok how it works as information still is very sketchy about this stuff and docs rather terse. My app calls getLastKnownLocation when it runs once. It will call it again if the user selects Recalc. Now under 1.1 when first run the emulator it would return what was set withgeofixor a default which I believe was Google's coordinates. The DDMS method seems is something one would use to emulate location updates. With 1.5 and 1.6 when my app runs it gets a null back from getLastKnownLocation on the emulator. So then I have DDMS send the coordinates to the emulator (as instructed via
[android-developers] Re: Geo Fix Still Not Working in 1.6
Thanks, its working now, i was making mistake in Java side. its working through telnet and DDMS both in windows. thanks a lot On Nov 22, 1:25 am, jotobjects jotobje...@gmail.com wrote: Null is a valid return value from this method. The documentation says If the provider is currently disabled, null is returned. Possibly there other situations when there is no known last location. http://developer.android.com/reference/android/location/LocationManag... Also you can use Google Maps app on this device/emulator with myLocation to see if Google Maps has the same problem or not. On Nov 21, 11:58 am, android_dev pankaj.i...@gmail.com wrote: Hi, i am also facing the same problem with android 1.6, i am sending coordinate through telnet but LastKnownLocation is returning null, m using android 1.6 eclipse window vista, am i doing anything wrong in Java code, can please send me java code. is it require any changes in menifest except permission. i have tried with all permissions. Thanks On Oct 24, 4:16 am, jotobjects jotobje...@gmail.com wrote: Cool. It seems like the best thing is to do both. Call getLastKnownLocation AND register a listener. LastKnownLocation can be null as documented so you have to expect that. And it can be completely wrong if the the phone has been moved (you get off an airplane and turn on your phone). But you might not get any value for a while from the listener (also as documented) so you have to expect that also. Quote from docs - It may take a while to receive the most recent location. If an immediate location is required, applications may use the getLastKnownLocation(String) method. You are right about telnet. I meant I'm runninggeofixON the emulator after invoking telnet and the emulator itself is running Linux - so that's wheregeofixruns in telnet (ALWAYS on Linux) even if the O/S is windows or whatever. On Oct 23, 3:50 pm, Brian Conrad brianjto...@gmail.com wrote: I solved the problem and have it working but not the way it originally worked. Originally in one's code you code set up the location manager and then call from it getLastKnownLocation and get the coordinates. These were what examples did when I first looked at GPS code. That was what got broken and was apparently unintentional. Instead I set up a location listener and nowgeofixworks and probably DDMS though I haven't tried that. My thinking is that most people were writing applications where they would want updates while running. Mine was just simple and needed the location at runtime or whenever the user wanted a recalculation. So I'll instead set up the listener though we still only care when the application runs or is recalculated. That change is easy to implement. FYI, telnet also runs in the command line on Windows. It's not unique to Linux. jotobjects wrote: I just used Google Maps to prove thatgeofixworked and resulted in the platform correctly knowing the location given bygeofix. You might want to try that too to prove thatgeofixdoes or doesn't work in an application other than your own code. That would be interesting confirmation for you and is easy to do. When I telnet into the emulator console and rungeofixas shown I am using Linux on the emulator of course. What problem has Android acknowledged regardinggeofix? What is the bug number? On Oct 23, 12:44 pm, Brian Conrad brianjto...@gmail.com wrote: Are you running on Windows or Linux? I'm running Ubuntu 8.04 and Eclipse. Android acknowledgedgeofixwas broken in the 1.5 SDK. I am usinggeofixto get the longitude and latitude only and not with Google Maps. Everything is set in the manifest correctly too. I have a 20% installed base which is about 600 users so I doubt if they would keep it around if it wasn't working. I don't know anything about a rounding bug as I round anyway for use down to degrees and minutes. One would think that DDMS would work when I have the app recalculate after sending coordinates manually. jotobjects wrote: geofixworks for me with both DDMS and the emulator console. Using console this works - telenet localhost 5554 geofix-117.24 32.883 This locates you in the University of California San Diego campus. I tried this with DDMS manualgeofixand it works there also. My test is using Google Maps My Location menu selection. What is not working withgeofixfor you? Incidently I am now noticing that DDMS gives me the correct location. But thegeofixcommand in the console exhibits the rounding problem Auguste Lunang pointed to that is a couple of hundred feet off (which is a problem for testing that depends on more accuracy). Do you know if there is a bug filed
[android-developers] urgent: issue with media recorder
HI, i am really stuck with media recorder. i am trying to record a video. it is working to record audio and i can play the recorded audio as well.the code sample for recording audio is: recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); but when i try for video it gives prepare failed error. recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); recorder.setAudioEncoder (MediaRecorder.AudioEncoder.AMR_NB); rest of code is same i only added 2 lines to record the video. i have tried everything but i am not able to debug it, it is really urgent, please help to find me the error. do i need to make any changes in menifest. i am working with android 1.6 window vista. is it issue with emulator. Thanks -- 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: media recorder error on start
when i add video source and video encoder, it gives error in recoreder.prepare while the same code is working for audio. i am not finding what i am doing wrong. setContentView(R.layout.camera); preview=(SurfaceView)findViewById(R.id.surface); previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); recorder = new MediaRecorder(); String url = /sdcard/dcim/test/3gp; camera = Camera.open(); Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(352, 288); parameters.set(orientation, portrait); camera.setParameters(parameters); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(url); recorder.setVideoFrameRate(15); recorder.setVideoSize(480, 320); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); recorder.prepare(); recorder.start(); Thread.sleep(10); recorder.stop(); recorder.release(); } catch (Exception e) { e.getMessage(); } On Nov 18, 9:11 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: It might be helpful to attach your code. Have you called the prepare() method before starting the recording? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 17, 5:55 am,android_devpankaj.i...@gmail.com wrote: Hi i am trying to record video and upload to web server. i created a temp file but when i try to startrecorder.start(), it gives me java.lang.RuntimeException: start failed. i tried debugging it but i am not getting it working. can someone please give me sample code to record video and save. i am really stuck with this error -- 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: media recorder error on start
when i add video source and video encoder, it gives error in recoreder.prepare() (prepare failed) while the same code is working only for audio. i am not finding what i am doing wrong.Please help setContentView(R.layout.camera); preview=(SurfaceView)findViewById(R.id.surface); previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); recorder = new MediaRecorder(); String url = /sdcard/dcim/test.3gp; camera = Camera.open(); Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(352, 288); parameters.set(orientation, portrait); camera.setParameters(parameters); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(url); recorder.setVideoFrameRate(15); recorder.setVideoSize(480, 320); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); recorder.prepare(); recorder.start(); Thread.sleep(10); recorder.stop(); recorder.release(); } catch (Exception e) { e.getMessage(); } On Nov 18, 9:11 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: It might be helpful to attach your code. Have you called the prepare() method before starting the recording? -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 17, 5:55 am,android_devpankaj.i...@gmail.com wrote: Hi i am trying to record video and upload to web server. i created a temp file but when i try to startrecorder.start(), it gives me java.lang.RuntimeException: start failed. i tried debugging it but i am not getting it working. can someone please give me sample code to record video and save. i am really stuck with this error -- 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: video recording issue
when i add video source and video encoder, it gives error in recoreder.prepare() (prepare failed) while the same code is working only for audio. i am not finding what i am doing wrong.Please help setContentView(R.layout.camera); preview=(SurfaceView)findViewById(R.id.surface); previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); recorder = new MediaRecorder(); String url = /sdcard/dcim/test.3gp; camera = Camera.open(); Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(352, 288); parameters.set(orientation, portrait); camera.setParameters(parameters); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(url); recorder.setVideoFrameRate(15); recorder.setVideoSize(480, 320); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); recorder.prepare(); recorder.start(); Thread.sleep(10); recorder.stop(); recorder.release(); } catch (Exception e) { e.getMessage(); } On Nov 17, 10:32 pm, android_dev pankaj.i...@gmail.com wrote: HI, i am trying to record video and upload to web, i have given my best effort but no luck, i am not sure if it is possible with android 1.6. Please help me to figure out the solution. is it possible to do that.its really urgent -- 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] media recorder error on start
Hi i am trying to record video and upload to web server. i created a temp file but when i try to start recorder.start(), it gives me java.lang.RuntimeException: start failed. i tried debugging it but i am not getting it working. can someone please give me sample code to record video and save. i am really stuck with this error -- 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] video recording issue
HI, i am trying to record video and upload to web, i have given my best effort but no luck, i am not sure if it is possible with android 1.6. Please help me to figure out the solution. is it possible to do that.its really urgent -- 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: Animated window transitions in Android 1.5
How do I override system activity transitions to create custom transitions between activities for my app? On Jun 12, 6:33 pm, Dianne Hackborn hack...@android.com wrote: Unless you are explicitly overriding them, you should get the default activity transitions as long as the setting under sound and display is turned on. On Thu, Jun 11, 2009 at 2:08 PM, David Golightly davig...@gmail.com wrote: So, I have a project where no animations are being performed - how do we get the system to use its standard one? i.e., where is that setting located? On May 12, 9:56 am, Dianne Hackborn hack...@android.com wrote: You generally don't -- let the system use its standard one. On Tue, May 12, 2009 at 7:07 AM, poncz oded.po...@labpixies.com wrote: How do you set an animation for an activity in SDK 1.5? Thanks, -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Custom transitions for Activity in 1.5
Anyone successful in setting a custom transition for an app or activity (different from the default slide left/right)? --~--~-~--~~~---~--~~ 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] Custom transitions for Activity in 1.5
I have enabled Activity transitions on the emulator thru the SpareParts app. However, I would like to override the system default transitions for a specific activity in my app. I find that in 1.5, animation attributes can be set in the application theme. I have defined a custom animation theme as: style name=MyTheme parent=Theme item name=android:windowAnimationStyle@style/ MyAnimation.Activity/item /style style name=MyAnimation.Activity parent=android:Animation.Activity item name=android:activityOpenEnterAnimation@anim/my_anim1/ item item name=android:activityOpenExitAnimation@anim/my_anim2/ item item name=android:activityCloseEnterAnimation@anim/my_anim3/ item item name=android:activityCloseExitAnimation@anim/my_anim3/ item /style When I set the theme to MyTheme for my activity, it does not play the enter/exit animations when the activity is launched or closed. The interesting thing is that the activity transition gets turned off for this activity. For all other activities, I see the default slide left/ right animation. Any ideas would be helpful. --~--~-~--~~~---~--~~ 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: Drawable or Uri for Notification icon
Looking for comments on this On Mar 24, 11:20 pm, android_dev esks...@gmail.com wrote: --~--~-~--~~~---~--~~ 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] Drawable or Uri for Notification icon
The Notification API allows to set a drawable resource id for the icon of a notification. This drawable resource id is used to put the icon in the status bar and in the expanded window shade. This is a limitation if the icon images are to be represented by a Drawable or from a content provider at runtime. I propose that the Notification class adds fields (or methods) that would allow to set a Drawable or an Uri for the notification icon. This Drawable or Uri would then be used by the system notification service to put the icon in the status bar and in the expanded window shade. Android team, could you provide your comments? --~--~-~--~~~---~--~~ 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] Dalvik VM VFY messages
What are these messages in LogCat output? My app seems to run fine but there are several messages like this: DEBUG/dalvikvm(183): VFY: ... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Phone state listener for missed call
Hi.. I would like to have a phone state listener for missed calls. I am looking at the PhoneStateListener. However, the TelephonyManager does not define a listen state constant for MISSED CALL. I have a phone state listener and simulated a missed call from incomingphone# using DDMS. The sequence of the method calls onCallStateChanged(int state, String incomingNumber) for a missed call looks like this: 1 (CALL_STATE_RINGING), incomingphone# 0 (CALL_STATE_IDLE), incomingphone# Is this sequence good enough to know that there is a missed call from incomingphone#? I'm wondering how the Android phone app knows about a missed call and puts a notification in the status bar. Any ideas? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Web search
Any plans to have business and/or local search in 1.0? On Sep 3, 2:02 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/3 android_dev [EMAIL PROTECTED] How to get web search results in an application (without launching the browser)? Can the getFromLocationName(...) be used for getting web search results given a search term? It can be used for location search. example: getFromLocationName(pizza San Jose, CA, 5) Will this return the pizza places around San Jose, CA? Business search is not a part of the current API, so you can only search places or addresses.. For details see the API docs below:http://code.google.com/android/reference/android/location/Geocoder.html - Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Web search
How to get web search results in an application (without launching the browser)? Can the getFromLocationName(...) be used for getting web search results given a search term? example: getFromLocationName(pizza San Jose, CA, 5) Will this return the pizza places around San Jose, CA? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Search Invoke sample
Question on the API demo - Search Invoke I launched this sample and have selected Automatic in the spinner. I also see a menu option Automatic. When this menu option is selected, it pops an alert that says To invoke search try menu+S However, menu+S doesn't bring the search dialog. Any issues? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Search Invoke sample
Thanks. Will try this. On Sep 3, 4:23 pm, Andrew Stadler [EMAIL PROTECTED] wrote: That's a bug in the Sample. On the emulator, you can use F5 to bring up Search (in the sample's automatic mode). For comparison, if you select Disabled, F5 no longer works - simulating an activity where you do not want to support any search capabilities. For comparison, you can see this in the browser, too - you can can use menu-search or you can use F5, and both will bring up a search box. If you'd like to file a bug, you can help make sure that the sample gets fixed. (Note, emulator -help-keys provides a complete list of special keys in the emulator) Thanks, Andy On Wed, Sep 3, 2008 at 4:06 PM, android_dev [EMAIL PROTECTED] wrote: Question on the API demo - Search Invoke I launched this sample and have selected Automatic in the spinner. I also see a menu option Automatic. When this menu option is selected, it pops an alert that says To invoke search try menu+S However, menu+S doesn't bring the search dialog. Any issues?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Comunication Server-Phone: SMS directed to an application (0.9 SDK)
There are a few unanswered posts on this topic. Android team, any ideas? On Aug 26, 6:35 am, Cristina [EMAIL PROTECTED] wrote: --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Geocoder IOException
The Geocoder in 0.9 uses network lookup to obtain results. This seems to not work since I see the following exception: java.io.IOException: Unable to parse response from server at android.location.Geocoder.getFromLocation(Geocoder.java:120) This is for the location 37.422006, -122.084095. I was expecting to see Google HQ address. Is the Geocoder ready for getting correct lookup results? Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Notification -- is it persistent?
The API doc says Notification is used to present a persistent notification to the user. What does persistent mean? Does the notification stay persistent after phone reboots? Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Geocoder IOException
Yes, I have uses-permission android:name=android.permission.INTERNET / in my manifest file. I get this error the first time I invoke the Geocoder in my app for reverse geocoding. Subsequently, I don't see the error. But the results from the reverse geocoding is weird. On Aug 26, 1:20 pm, Mark Murphy [EMAIL PROTECTED] wrote: The Geocoder in 0.9 uses network lookup to obtain results. This seems to not work since I see the following exception: java.io.IOException: Unable to parse response from server at android.location.Geocoder.getFromLocation(Geocoder.java:120) This is for the location 37.422006, -122.084095. I was expecting to see Google HQ address. Is the Geocoder ready for getting correct lookup results? Out of curiosity, did you add the INTERNET permission to your AndroidManifest.xml file? uses-permission android:name=android.permission.INTERNET / If you didn't, try that -- it might be a security issue under the covers. If you did, and you're still getting the error, could you provide us with a snippet of source code that demonstrates how you're using the API? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Address.getMaxAddressLineIndex()
Any idea what is the purpose of Address.getMaxAddressLineIndex() ? Is it supposed to return the max address lines for street or thoroughfare? How is getMaxAddressLineIndex() used with getAddressLine(int index)? The getAddressLine(int index) sometimes returns city, country. But these are available thru the corresponding getXXX methods. Sometimes I see a landmark name in the address line. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: correct way to iterate through database table in 0.9 beta
Use cursor.moveToFirst() and cursor.moveToNext() On Aug 26, 2:33 pm, kingkung [EMAIL PROTECTED] wrote: Obviously if (cursor.first()) { do { ... } while (cursor.next()) } doesn't work anymore. What's the right way to iterate through the rows of a database table without running into errors from empty databases, etc.? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Menu bug?
Menu does not show up. If the focus is on an EditText field with android:password=true, then hitting the Menu key does not show the menu options for that screen. If the focus is on some other field, then the menu shows up. Bug? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SMS directed to application
How can I send an SMS directed to an application? My app looks for messages with a particular prefix and then must consume it. Other applications (including the Messaging app) should not get the SMS messages directed to my app. I have an SMS broadcast receiver that can get all the messages and processes the ones only with the particular prefix. After processing the SMS, if I do abortBroadcast(), then it throws a runtime exception. Anyway, aborting the SMS in the middle of a broadcast is not a good idea as it can cause other problems. The issue is that the SMS targeted to my app is also passed to the Messaging app. The SMS directed to my app must never go to Messaging app since it is odd to show that message in the ticker text of the status bar notification and to see it in the SMS inbox. Android doesn't seem to have the concept of a port number to listen for incoming SMS. I am sure there are apps out there that use SMS for communication. Any ideas, android team? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Abort SMS broadcast
Hi Justin, How to direct an SMS to an application without passing the SMS to other apps and the SMS inbox? On Aug 20, 11:24 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Gallery missing attribute / method
android.widget.Gallery: What is the equivalent for these in SDK 0.9? android:drawSelectorOnTop or setDrawSelectorOnTop(boolean) android:spinnerSelector or setSelectorSkin(Drawable) Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---