[android-developers] bitmap drawable resource gravity ignored in layer list?
I'm trying to build a seek bar with text in/under it to make something akin to the slide to unlock bar on the iPhone. I figured I'd change the style of the seek bar and added: layer-list ... item android:id=@android:id/background layer-list item shape corners android:radius=10dip / gradient android:startColor=#88747674 android:centerColor=#885a5d5a android:centerY=0.25 android:endColor=#889d9e9d android:angle=270 / /shape /item item bitmap android:src=@drawable/slide_to_finish_label android:gravity=fill_horizontal/ /item /layer-list /item ... /layer-list slide_to_finish_label is a 9-patch PNG. The default tile mode is listed as none. When I use this nested layer-list as the background of my app it works as I expect. My bitmap shows up stretched side to side but not up and down. When I use this as the style for the seek bar the bitmap shows up not stretched and repeating. Changing the gravity attribute has no affect on the repeating. I thought it might have something to do with the nesting of the layer list, like that the item in the parent-list is being repeated. The guide on Drawable Resources seemingly warns on this issue and suggests using a bitmap to control stretching and repeating but even when I reduce the item to just a bitmap (not a nested layer-list) gravity still has no affect. -- 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: bitmap drawable resource gravity ignored in layer list?
I was going to go that route but SeekBar does 99% of what I need. You guys did most of the work, keeping the moving part horizontally stable, animations, etc. I literally had to add 6 lines of code to get what I needed logically and then add some style. I should have made the question clearer. The meat of the question is about layer-lists with bitmaps. Which would be the same if I just wanted to style a horizontal progress bar with an image. So is it expected that the gravity attribute be ignored or do I need to specify something elsewhere to not have the images repeating? Thanks, Nick On Feb 26, 6:38 pm, Dianne Hackborn hack...@android.com wrote: The seek bar is not a slide to unlock UI. Honestly, write your own custom view for this. On Sat, Feb 26, 2011 at 10:38 AM, nkijak nki...@gmail.com wrote: I'm trying to build a seek bar with text in/under it to make something akin to the slide to unlock bar on the iPhone. I figured I'd change the style of the seek bar and added: layer-list ... item android:id=@android:id/background layer-list item shape corners android:radius=10dip / gradient android:startColor=#88747674 android:centerColor=#885a5d5a android:centerY=0.25 android:endColor=#889d9e9d android:angle=270 / /shape /item item bitmap android:src=@drawable/slide_to_finish_label android:gravity=fill_horizontal/ /item /layer-list /item ... /layer-list slide_to_finish_label is a 9-patch PNG. The default tile mode is listed as none. When I use this nested layer-list as the background of my app it works as I expect. My bitmap shows up stretched side to side but not up and down. When I use this as the style for the seek bar the bitmap shows up not stretched and repeating. Changing the gravity attribute has no affect on the repeating. I thought it might have something to do with the nesting of the layer list, like that the item in the parent-list is being repeated. The guide on Drawable Resources seemingly warns on this issue and suggests using a bitmap to control stretching and repeating but even when I reduce the item to just a bitmap (not a nested layer-list) gravity still has no affect. -- 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 -- 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] AnimationDrawable with custom Drawables
I'm trying to draw a gauge on the screen with information from various sensors. I have a class that extends Drawable and a custom view that during construction creates a new AnimationDrawable and sets the only frame to my custom Drawable. I then start the AnimationDrawable from my Activity onWindowFocusChanged method. My custom Drawable onDraw method is only called once though. Is that by design (as in onDraw is called for each frame once and it's cached and shown over and over) or am I doing something wrong? [code from custom view's constructor] _gaugeAnimation = new AnimationDrawable(); _gaugeAnimation.setOneShot(false); setBackgroundDrawable(_gaugeAnimation); GaugeDrawable gauge = new GaugeDrawable(); gauge.setTargetValue(100); _gaugeAnimation.addFrame(gauge, 500); _gaugeAnimation.setVisible(true, false); --~--~-~--~~~---~--~~ 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: AnimationDrawable with custom Drawables
In testing my cached theory, I discovered that you need to have at least two frames for the animation to continuously loop. When I added the gauge object again onDraw was continuously called. That makes me think that I should be using something else for what I'm doing. I'm basically making a drawn speedometer getting speeds from the GPS. Each time the GPS updates I want to perform a smooth animation to the change in speed. I thought I could create a Drawable that contained it's current value and a target value, then add it to an animation that would take care of calling onDraw continuously until the current and target matched. Is there a better way? On Jul 25, 10:33 am, nkijak nki...@gmail.com wrote: I'm trying to draw a gauge on the screen with information from various sensors. I have a class that extends Drawable and a custom view that during construction creates a new AnimationDrawable and sets the only frame to my custom Drawable. I then start the AnimationDrawable from my Activity onWindowFocusChanged method. My custom Drawable onDraw method is only called once though. Is that by design (as in onDraw is called for each frame once and it's cached and shown over and over) or am I doing something wrong? [code from custom view's constructor] _gaugeAnimation = new AnimationDrawable(); _gaugeAnimation.setOneShot(false); setBackgroundDrawable(_gaugeAnimation); GaugeDrawable gauge = new GaugeDrawable(); gauge.setTargetValue(100); _gaugeAnimation.addFrame(gauge, 500); _gaugeAnimation.setVisible(true, false); --~--~-~--~~~---~--~~ 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: Thought's On Android CupCake?
I second the root access. All us T-Mobile G1 suckers are out cold for now. My trackball stopped scrolling to the right and T-Mobile is sending me a new one but all my data and apps will be lost because they're all written to internal memory. I'm a little sad that the Google folks didn't see this as a huge issue as the iPhone has syncing with iTunes and it's no problem to upgrade/ switch/replace between iPhone/touch hardware. What's the recommended way for Android users? On Dec 20, 1:31 am, Peter Fisher pe...@phyn3t.com wrote: I wish it had multi touch support the browser would be so much better if they did. =( Also there should be an option to allow root access to the device for developers... On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans ilovetoar...@gmail.comwrote: What do you mean there is another SD slot? There is only 1 :) + 64mb internal mem. On Dec 19, 2:56 pm, Xavier Mathews xavieruni...@gmail.com wrote: I thought there was another sd slot? On 12/19/2008, Mark K mark.ka...@gmail.com wrote: Looks good, will have camcorder support which is huge! It needed to support recording video, since all the other 'smart phone' platforms do also. Hopefully it will be an easy upgrade for the G1. Mark On Dec 19, 9:37 am, TmobileG1Fans ilovetoar...@gmail.com wrote: I think it's going to be awesome OS update but then again I wish apps still would be installable from SD card and not OS, i mean this os is going to take more space and most people are already using 80% of their internal card. Hope they will address that issue: Info about CupCake: http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-... -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Client Based Tech Support Specialist Hazel Crest Illinois xavieruni...@gmail.com¥xavieruni...@hotmail.com¥truestar...@yahoo.com Fear of a name, only increases fear of the thing itself. --~--~-~--~~~---~--~~ 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] Recommended way to transfer /data file to another G1?
This isn't strictly developer related so I apologize, but I know the Android staff read these. I have to get my G1 replaced due to a hardware failure with the trackball. It is on R30 and the replacement will be on R30 I would guess so I can't jailbreak. How else can I get the /data directory off one phone and on to the other? I don't want to have to go to the Market and re-download everything and create export files for all my apps then import them again. I have a feeling that's what the suggestions are going to be as that was what the T-Mobile rep told me to do. I find it very annoying that there's no way to get to the internal memory. At least on the iPhone/Touch iTunes can write to that partition/directory to make this sort of thing a non-issue. What is/ are Google's plans for this situation? --~--~-~--~~~---~--~~ 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: Thought's On Android CupCake?
How can you say it has nothing to do with Google. They brought Android to T-Mobile. For them to not know that cell companies where going to lock it down would be ignorance on their part. Plus you act like there was going to be a Dev phone since the beginning. How was anyone supposed to know that the G1 wouldn't be the only phone. Why was the dev phone released so many months later? There could have been mention of it. I'm not saying T-Mobile isn't without blame, but to totally dismiss Google of everything is illogical. Where's the Google web client to sync my apps? Google knew they'd be making many different Android phones, how do you move from one to the other? Quit trolling. On Dec 21, 4:46 pm, Disconnect dc.disconn...@gmail.com wrote: Call 611 and ask. If it becomes a serious enough problem, T-mob will assign resources to finding and implementing a solution. If you're unhappy with your purchase from T-mobile, talk to them about it. It has absolutely nothing at all to do with google. (Zip. Zero. Nada. Sorry you bought a Toyota and wanted a Honda, but moaning and whining about it is unlikely to make any sort of magic fairy appear and fix it.) ..I want a pony. On Sun, Dec 21, 2008 at 4:31 PM, nkijak nki...@gmail.com wrote: I second the root access. All us T-Mobile G1 suckers are out cold for now. My trackball stopped scrolling to the right and T-Mobile is sending me a new one but all my data and apps will be lost because they're all written to internal memory. I'm a little sad that the Google folks didn't see this as a huge issue as the iPhone has syncing with iTunes and it's no problem to upgrade/ switch/replace between iPhone/touch hardware. What's the recommended way for Android users? On Dec 20, 1:31 am, Peter Fisher pe...@phyn3t.com wrote: I wish it had multi touch support the browser would be so much better if they did. =( Also there should be an option to allow root access to the device for developers... On Fri, Dec 19, 2008 at 2:08 PM, TmobileG1Fans ilovetoar...@gmail.com wrote: What do you mean there is another SD slot? There is only 1 :) + 64mb internal mem. On Dec 19, 2:56 pm, Xavier Mathews xavieruni...@gmail.com wrote: I thought there was another sd slot? On 12/19/2008, Mark K mark.ka...@gmail.com wrote: Looks good, will have camcorder support which is huge! It needed to support recording video, since all the other 'smart phone' platforms do also. Hopefully it will be an easy upgrade for the G1. Mark On Dec 19, 9:37 am, TmobileG1Fans ilovetoar...@gmail.com wrote: I think it's going to be awesome OS update but then again I wish apps still would be installable from SD card and not OS, i mean this os is going to take more space and most people are already using 80% of their internal card. Hope they will address that issue: Info about CupCake: http://www.livecrunch.com/2008/12/19/android-cupcake-release-updates-. .. -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Client Based Tech Support Specialist Hazel Crest Illinois xavieruni...@gmail.com¥xavieruni...@hotmail.com¥ truestar...@yahoo.com Fear of a name, only increases fear of the thing itself. --~--~-~--~~~---~--~~ 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: IPhone Android G1 Android
Can you post a link to where you got the information that android is running on the iPhone? I've seen that they've gotten a version of Linux booting but it's not Android. On Nov 30, 4:50 pm, Xavier Live Tech.S [EMAIL PROTECTED] wrote: So I was kinda wishing that the IPhone would go away after ther g1 or bb storm came but it won't. Now Apple's IPhone Can Run Android and have apps created for it as if it did not have enough app programs for it. Does this hurt the G1 Sells and does this have any effect on Android??? --~--~-~--~~~---~--~~ 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] Re: Android Source Code online?
http://git.source.android.com/. It's not intuitive (to me at least), you have to click tree on the .git file of the section you want to explore. Nick On Oct 31, 8:36 am, Jay-andro [EMAIL PROTECTED] wrote: Is there any place where I can just view the Android source online without first having to download it all to a linux/mac box using repo? Or to download it to a windows machine for browsing/viewing/searching only? --~--~-~--~~~---~--~~ 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] Re: Developing GPS Application on Android
Maybe there's a language barrier or something. Did you look at the information from your earlier post? http://groups.google.com/group/android-developers/browse_thread/thread/8aac9166789efe32/b098663fbd23c8d8#b098663fbd23c8d8 Are you looking for a specific piece of information or a demo project? The Location APIs are somewhat easy to follow just by looking at the JavaDocs. Nick On Oct 27, 11:01 am, Mayank Rana [EMAIL PROTECTED] wrote: Hi All, I need couple of things as below to start with Developing GPS Application on Android. 1. What are the currently available GPS Application or basic test application on Android Platform? 2. How to start with Developing GPS Application on Android i.e. available interface./class @ Location Manager Framework. Any information on above topic is really appreciated. Thanks. Regards, _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ 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] Re: G1 GPS receiver turn on and turn off
Just guessing here, but have you checked the system configuration DB? On Oct 26, 9:34 pm, hdk [EMAIL PROTECTED] wrote: Hi, I would like to control the GPS receiver via software. Simple turn on and turn off. Has anyone done it? I imagine that T-Mobile/HTC would have to share G1 specific SDK to accomplish that, am I right? Thanks, hdk --~--~-~--~~~---~--~~ 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] Re: if I include the classes.zip of J2Me ??
Did you try in the emulator? Probably be quicker than waiting for an answer here. On Oct 24, 3:13 am, Sudha [EMAIL PROTECTED] wrote: hi I have a stupid question suppose thru the eclipse if I put the J2Me classes.zip file to my android project. and I just create an Activity and a view which only calling or directing the lifecycle methods of j2me will it work ? I am dare to try this out... can anyone show some light on this --~--~-~--~~~---~--~~ 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] Re: How to put apk to G1 Phone
If I understand correctly, when you Run as... in eclipse this is making a release version and installing it on your phone. Do you have an actual device or are you asking how to get the apk file itself? On Oct 24, 3:10 am, Sudha [EMAIL PROTECTED] wrote: thanks for your reply But this is for working in the debug mode.. Suppose I had my certified apk and want to download into the device then ? --~--~-~--~~~---~--~~ 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] Re: How to put apk to G1 Phone
Please just follow this thread at http://groups.google.com/group/android-developers/browse_thread/thread/6d6f0b4a12c2aca3# On Oct 24, 12:18 am, yasmin afrose [EMAIL PROTECTED] wrote: Hi, I'm also want to know the same thing. If you get any reply \ you got any idea please forward to me. Thanks in advance By, Yasmin On Fri, Oct 24, 2008 at 9:45 AM, Sudha [EMAIL PROTECTED] wrote: Hi can anyone tell me how to install my apk to a G1 phone ? ota , datta cable ? after downloading do I need to install the apk ? Thanks -- Everything is Possible For U only --~--~-~--~~~---~--~~ 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] Re: Can Someone develop a program that...
I think I found what you are looking for: http://www.rentacoder.com/RentACoder/DotNet/default.aspx On Oct 23, 6:45 pm, KKing [EMAIL PROTECTED] wrote: Hey i know you guys are hard at work making new apps but i would like to see an app that lets you text with the touch screen, What i mean by that is being able to use the dialer letters to send text message rather then open the slide out keyboard all the time...thanks and please email me if any progress is made...i will be looking --~--~-~--~~~---~--~~ 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] Re: give-up screen (going to sleep)
Without looking at the source I would say probably with PowerManager.PARTIAL_WAKE_LOCK. Just a guess though. On Oct 23, 5:56 pm, Dex Wood [EMAIL PROTECTED] wrote: I have observed that when using the music application, the music continues to play when the device appears to go to sleep. Does this application use a wake lock? Thank you for your reply On Oct 23, 3:26 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: When the screen goes off, the device goes to sleep. This means that the main CPU shuts off. You can prevent this by holding a wakelock. WARNING: Holding a wake lock for a substantial period of time will have a terrible effect on battery life. Android achieves better battery life by doing as little as possible and sleeping as much as possible. Please consider the best interests of your users when doing things that will adversely effect their experience. Cheers, Justin Android Team @ Google On Oct 23, 1:21 pm, Dex Wood [EMAIL PROTECTED] wrote: I am developing an application that uses the accelerometer and/or gps inside of a service. It will be in use while the service runs in the background until the user terminates the service. I am using usb debugging on the device and I noticed in logcat it is saying give-up screen and my service stops getting input from the accelerometer. Is there a way to have a service run while the phone is idle for a period of time without having to disable the key-lock? --~--~-~--~~~---~--~~ 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] Re: locationmanager,getLatitude function
Hello, I updated your code on that site to be more correct. You should stick with the static variable instead of hardcoding the string gps. You get a null pointer because you have to provide a location first, meaning run the KML, then you can call getLastKnownLocation. When the emulator starts, without being given a coordinate, it has no last location. So try running the KML then running your app. If you are trying to get continuous updates of location you should implement LocationListener instead. Nick On Oct 22, 11:42 pm, CSUIDL PROGRAMMEr [EMAIL PROTECTED] wrote: Hello, I am a newbie android developer. I am trying to simulate gps functionality in android sdk 1.0. I am using location manager to get getlatitude function. http://pastebin.com/m56feb30c I am loading a google kml through my ddms. I get a java null pointer exception. What am i doing wrong here 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Help for Android Application
Take a look at the example code posted for this app: http://groups.google.com/group/android-developers/browse_thread/thread/13a2eb9adbc444ee# On Oct 23, 2:25 am, Rahul [EMAIL PROTECTED] wrote: hello i am rahul And i am completely new for android so i want help. how u Add The image in list that is i want image with label plz give me code --~--~-~--~~~---~--~~ 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] Re: About GPS Support on Android
Did you read the how to test location services section of the documentation? It's pretty easy to find. On Oct 23, 3:56 pm, Mayank Rana [EMAIL PROTECTED] wrote: Hi All, I have couple of things to clarify: 1. What are the GPS Applications currently part of Android ? 2. As on Emulator , I am not able to run maps applications as there is no GPS Driver and hardware connected. How can I use google maps on emulator ? 3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient to connect GPS Drive with Application Framework and upper application in Android ? 4. Is there any basic test application for GPS on Android ? not necessary maps kind of application. Any more information related to GPS on Android is welcome. Thanks. Regards, _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ 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] Re: Issues with GPS application on the actual G1 phone
I wrote a little app to just display GPS information and this is what I did: LocationManager locationManager = (LocationManager)getSystemService(LOCATION_SERVICE); locationManager.requestLocationUpdates(locationManager.GPS_PROVIDER, 500l, 10l,this); this being my Activity that implements LocationListner where this bit of code lives in the onCreate method. The permissions are android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION although I would think I'd just need ACCESS_FINE_LOCATION for GPS coordinates. Nick On Oct 21, 4:18 pm, Greg [EMAIL PROTECTED] wrote: Hi all, New to the groups and to android (about a month into it). I developed an app on the emulator using the gps location provider and everything was working great via the gps emulator. I just got my G1 phone yesterday and was able to get the app installed successfully. However, when I fired it up it was getting coordinates from all over the place that made no sense. I was travelling about 300 mph just sitting in my backyard :) I put an activity out to list the available locationproviders from the location manager and got these two: provider 0 network with a class of android.location.DummyLocationProvider provider 1 gps with a class of android.location.DummyLocationProvider It looks clear to me that even on the actual phone, I'm only seeing fake providers. All of the samples I could find to this point talk about just using the gps provider by name, but that apparently isn't going to work on the real device. I noticed when I used Google Maps, upon startup a satellite dish icon showed up in the status bar with a signal strength for the GPS. When Maps was shut down that icon went away. Apparently maps is using a different real provider that I can't see through the location manager. A bit long winded, but hopefully this is all clear. I'm looking for any guidance on how a real application on a real device should properly locate the right GPS provider for getting location information from. Am I missing permissions that prevent me from seeing the real providers? Thanks for any assistance! Greg --~--~-~--~~~---~--~~ 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] Attaching the Eclipse debugger to actual device
I can't seem to get the eclipse debugger to attach to the G1. I can select Debug from the run menu and it will compile and launch the app on the phone but eclipse never enters the debug perspective (or even asks to). The phone sits with a Waiting for Debugger message dialog. When I enter the Android perspective I can see the device attached, see log entries, take screenshots but I cannot see process listings and restarting adb results in 11 failed attempts to connect. Is there some other configuration I need to adjust in eclipse, perhaps a port number? Thanks, Nick --~--~-~--~~~---~--~~ 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] Re: Attaching the Eclipse debugger to actual device
That possibly did the trick. I had to restart the phone. Maybe for the Debug when USB thing to take effect? Thanks On Oct 21, 11:33 pm, Xavier Ducrohet [EMAIL PROTECTED] wrote: To debug on devices you need to set the 'debuggable' attribute of the application node to true (in AndroidManifest.xml). Make sure to set it back to false before releasing your application. Xav On Tue, Oct 21, 2008 at 8:24 PM, nkijak [EMAIL PROTECTED] wrote: I can't seem to get the eclipse debugger to attach to the G1. I can select Debug from the run menu and it will compile and launch the app on the phone but eclipse never enters the debug perspective (or even asks to). The phone sits with a Waiting for Debugger message dialog. When I enter the Android perspective I can see the device attached, see log entries, take screenshots but I cannot see process listings and restarting adb results in 11 failed attempts to connect. Is there some other configuration I need to adjust in eclipse, perhaps a port number? Thanks, Nick --~--~-~--~~~---~--~~ 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] Re: MAC address?
Wouldn't you need some other unique ID? Wouldn't the MAC address would be different if the user was on wi-fi or the cell network? On Oct 17, 3:48 pm, Mark Murphy [EMAIL PROTECTED] wrote: I'm still on my unique device ID kick. In Java 6, NetworkInterface has getHardwareAddress() to return the MAC address. According to the docs, Android 1.0r1 lacks this method. Anyone know another way to get the MAC address of an Android device? Thanks in advance! -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---