Re: [android-developers] Barometer reading changes throughout the day while on same altitude.
The method I use for calibrating the barrometric altitude functionality in my biking app is to use the gps to get a location I then use Googles Elervation API https://developers.google.com/maps/documentation/elevation/ to get an altitude for this location and adjust my reference pressure to get the barometric based altitude to match. Haveing done this the relative altitude reading during a bike ride tend to be good but if the weather is changing a lot you can easaly be +-50m by the end of of a few hours riding. Aviation services should have the reference pressure for vaious airfields airfields avalable. I would investigate the various weather service api to see what is avalable but I think your going to strugle with what you are trying to achieve the weather is just too big a variable over significant time periods. Ifor On Monday, 31 December 2012 07:26:44 UTC, sebouh00 wrote: Sorry, but you're just repeating what Mark said. It's not helpful. I am not looking for a solution with GPS. My research shows GPS is bad at altitude calculations. And I'm sure it uses more power to get an altitude because it requires time and outdoors to get a lock, but I have no tests to show that. I asked where I can get real-time sea-level pressure data. I didn't get an answer. On Monday, December 31, 2012 1:45:46 AM UTC+3, Lew wrote: sebouh00 wrote: Wouldn't I need a lock on the GPS location in order to get the altitude? I would assume that would take more time, hence more power then just using the barometer. Less power + wrong answer/no answer = ? What about the altitude apps. How do they usually determine the approximate altitude. Do they suffer from +/- 500 meter inaccuracy? My brief Google search indicates GPS. I think not. What does your online search tell you? Mark Murphy (a Commons Guy) wrote: sebouh00 wrote: I would like to save the altitude in my app and use it to check if the device is at the same altitude in the future. Using GPS will not be applicable because of minimal power usage restrictions in my app. What tests have you run to determine that the barometer is sufficiently lower power than the GPS radio? I suspect it is, but I have never tried testing the scenario. Would it be possible to do such a thing? IMHO, not reliably. If you are trying to get altitude accuracy +/- 500 meters or so, perhaps. http://en.wikipedia.org/wiki/Atmospheric_pressure http://en.wikipedia.org/wiki/Altimeter Moreover, none of this has anything to do with Android, and it smacks of premature optimization, unless you have already implemented the GPS-based solution and proven that the power consumption is over your budget. Here Mark sends you to basic information about what you're trying to do. Your next response repeats the plaint that you don't know what you're doing. This despite your having just received relevant information. I suggest that you digest the information and utility of advice already offered. In case you missed it: - Barometric pressure will not do what you're asking /per se/. - You have not provided evidence that the GPS power requirements are egregious. - You have not commented on whether comparison with a topographic map plus recalibration, as suggested, will solve your problem. I'm guessing you haven't even tried it. -- Lew -- 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
Re: [android-developers] Barometer reading changes throughout the day while on same altitude.
As a pilot I can tell you that we get a MSL (Mean Sea Level) pressure reading and key that into the altimeter which compares it with current pressure and gives altitude to +50ft/-75ft accuracy. The MSL is provided by the local airport, is adjusted to ensure any regional error puts us higher than any obstacles, and it varies so the airport will alert us if and when it changes. Above what's known as the Transitional Layer we are high enough to avoid all ground obstacles to we use standard pressure of 1013.25 mb so that aircraft's altitude is computed relative to each other. We do heed GPS altitude warnings that we're about to bust airspace but not for accurate altitude measurement. Hope that helps. Cheers Steve -- 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
Re: [android-developers] Barometer reading changes throughout the day while on same altitude.
Thanks guys. I now understand more. I will have to do some more testing with this information in mind, but from what I've understood, achieving the day long accuracy I'm looking for will require GPS and frequent base reference updates. -- 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: CTS error - Invalid CTS build provided.
sorted Stupid path error! On Friday, 28 December 2012 16:57:14 UTC+5:30, NimeshChanchani wrote: I get the CTS window when run the batch file , but when try to enter the cts command “run cts” it shows. Any clues? cts-tf run cts 12-28 12:13:02 E/InvocationThread: Invalid CTS build provided. java.lang.IllegalArgumentException: Invalid CTS build provided. at com.android.cts.tradefed.build.CtsBuildHelper.createBuildHelper(CtsBuildH elper.java:79) at com.android.cts.tradefed.testtype.CtsTest.setBuild(CtsTest.java:303) at com.android.tradefed.invoker.TestInvocation.injectBuild(TestInvocation.ja va:155) at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:11 2) at com.android.tradefed.command.CommandScheduler$InvocationThread.run(Comman dScheduler.java:352) Caused by: java.io.FileNotFoundException: CTS install folder D:\cts\android-cts does not exist at com.android.cts.tradefed.build.CtsBuildHelper.validateStructure(CtsBuildH elper.java:158) at com.android.cts.tradefed.build.CtsBuildHelper.createBuildHelper(CtsBuildH elper.java:76) ... 4 more -- 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
Re: [android-developers] Barometer reading changes throughout the day while on same altitude.
sebouh00 wrote: Sorry, but you're just repeating what Mark said. It's not helpful. I repeated it because you clearly did not assimilate it. I also asked questions, which you chose not to answer. It's not helpful means I have decided to reject what you say. There's nothing wrong with the advice /per se/. But please, no more disingenuous apologies. -- Lew -- 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
Re: [android-developers] Install failing with Android SDK Manager
Carlos thanks, that's what I did and got things working! On Sun, Dec 30, 2012 at 6:24 AM, Carlos A. M. dos Santos unixma...@gmail.com wrote: On Sun, Dec 30, 2012 at 3:53 AM, Dev Guy devguy...@gmail.com wrote: Hello I am getting the following error after I run the Android SDK Manager: Installing Google APIs, Android API 17, revision 1 Installed Google APIs, Android API 17, revision 1 Updated ADB to support the USB devices declared in the SDK add-ons. Stopping ADB server failed (code -1). Unable to run 'adb': Cannot run program /opt/android-sdk-linux/platform-tools/adb: java.io.IOException: error=2, $ uname -a Linux karma 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux From http://developer.android.com/sdk/installing/index.html If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get:: apt-get install ia32-libs -- The flames are all long gone, but the pain lingers on -- 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 -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org -- 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] Order latitude/longitude list by distance to my current location
Hello all, I have a JSON list that I retrive from one website I have that gives me the following fields: - Name - Latitude - Longitude This list has around 200 items. I want to order the list by distance to my current location, closer locations on top. How may I do this calculation and ordering? Many Thanks Nelson -- 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
Re: [android-developers] Re: How to compile Android Launcher source code?
On Sun, Dec 30, 2012 at 11:43 PM, galapogos gois...@gmail.com wrote: I'm specifically trying to first get the ICS AOSP launcher to install on any ICS phone, and then modify it with some features. You are welcome to copy the source code out of AOSP, import it into an Android SDK project, and hack away to get rid of things that do not compile anymore. This may take some time. I don't necessarily have to use Eclipse, I'm fine with make Launcher2. That is not how you build an SDK project from the command line. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- 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: Order latitude/longitude list by distance to my current location
If you mean straight line distance and if the locations are reasonably close and/or reasonably well distributed then just do a straightforward trig calculation. If you want more accuracy use a great circle distance calculation (just Google it). Assuming you just need a ranking rather than accurate distance I suspect this would be overkill in most real-world situations. If you had thousands of locations to sort rather than just 200 I would do the simple trig calc, then sort into distance order and then walk the list to see if the distance/separation of adjacent location pairs was within a threshold and do the the gc calc to determine the closest. On Monday, December 31, 2012 7:32:18 AM UTC-5, Nelson André wrote: Hello all, I have a JSON list that I retrive from one website I have that gives me the following fields: - Name - Latitude - Longitude This list has around 200 items. I want to order the list by distance to my current location, closer locations on top. How may I do this calculation and ordering? Many Thanks Nelson -- 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: Order latitude/longitude list by distance to my current location
If the locations are roughly in the same geographical area then you can use a corrective factor for the longitude difference. The latitude is always the same distance per degree but the longitude distance per degree depends on the latitude (biggest at the equator,zero at the poles). For a latitude of 52 degrees the factor would be around 0.63 etc. On Monday, December 31, 2012 7:32:18 AM UTC-5, Nelson André wrote: Hello all, I have a JSON list that I retrive from one website I have that gives me the following fields: - Name - Latitude - Longitude This list has around 200 items. I want to order the list by distance to my current location, closer locations on top. How may I do this calculation and ordering? Many Thanks Nelson -- 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
Re: [android-developers] Re: Bad View Behavior with Changing ListViews
Guys, Thanks so much for your suggestions. I had tried all of the notify* and invalidate* methods on the adapter and list to no avail. The easiest solution for me was removing the swapCursor( null ) call. After doing this, the orphaned views no longer persist and everything is working as expected. Thanks guys! E On Sun, Dec 30, 2012 at 10:48 AM, Nobu Games dev.nobu.ga...@gmail.comwrote: I just checked the implementation of (Simple)CursorAdapter. Calling swapCursor with argument null (instead of another cursor object) internally calls notifyDataSetInvalidated. That is basically a death sentence for an Adapter and signals to the ListView it belongs to that the data source should not be used anymore. Why it seems to still be working erratically after setting a different cursor object might have to do with an internal bug in ListView and its view caching strategies. You just triggered a sequence of events that is undefined or not allowed to happen in the framework. So you have three options: 1. Don't call swapCursor(null) 2. If you want the ListView to be blank then call listView.setAdapter(null) 3. Or temporarily let Adapter.getCount() return 0 and call notifyDataSetChanged until the new cursor is loaded. On Wednesday, December 19, 2012 9:23:25 PM UTC-6, Evan Ruff wrote: Hey guys, I'm having some funny issues with my ListViews. Generally, I have a ListView activity where the list view takes up the entire activity. The list views are using a custom SimpleCursorAdapter and are using the supportLoaderManager to load in the data. The Loaders are connected to Observers and the data can be changed by background services. I'm getting some weird behavior when the data changes. When the data changes, I am doing an adapter.swapCursor( null ) while the new data is loading. When the list gets shorter, I'm getting black areas where the previous views where, and sometime I'm getting ~ghosting of older views if the removed views are at the bottom of the list. Is there some way to enforce invalidation or removal of these views? Is there some step I'm missing? Thanks! E -- 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 -- 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] Setting Widget B/G Color of the B/G Resource
I have written code to select at runtime whether my widget should use a background PNG image or just select a background color in place of the image. This code works fine but is not esthetically pleasing. The problem is that when I set just the background color in lieu of the image the entire grid space occupied by the widget is colored and it just looks bad. My next idea was to specify a different background that specifies a shape resource instead of the PNG image. This code works fine too. At runtime I select one of two values for setBackgroundResource and I can see either the PNG image or the shaped colored background. This shaped colored background has margins and rounded corners so it looks better than just coloring the background. Here is my question: Is there a way to specify the color of the shaped background at runtime? I can call RemoteView.setInt with setBackgroundResource to set the shaped background but how can I set the resource's background color? -- Jake Colman -- Android Tinkerer -- 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
Re: [android-developers] Unable to delete a PendingIntent with AlarmManager
On Mon, Dec 31, 2012 at 12:42 AM, Giuseppe porcelli.giuse...@gmail.comwrote: I have uninstalled the app, restarted the device, the function is still working and every minute sending an email. Is there anything in the logs when the alarms go off? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] help me urgent
On Mon, Dec 31, 2012 at 12:49 AM, sree android android.sreeni...@gmail.comwrote: how please convert it and give solution, This is not urgent, nor does it have anything to do with Android development. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] How to set multiple theme in an application at run time.
On Mon, Dec 31, 2012 at 12:35 AM, monty mca.himanshusha...@gmail.comwrote: Is there any way to choose one particular theme from list of theme's at run time and apply it to entire activities in an application. Have you done any research on this topic yourself yet? A quick Google search shows many Stack Overflow questions and answers on this topic. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Setting Widget B/G Color of the B/G Resource
I don't think it helps to get access to the drawable resource and use setColorFilter to set its background color since I don't see a way to set the modified drawable resource as the background resource for the view. Am I missing something obvious? I did google before posting but that doesn't mean I didn't miss it. Jake == Jake Colman col...@ppllc.com writes: Jake I have written code to select at runtime whether my widget Jake should use a background PNG image or just select a background Jake color in place of the image. This code works fine but is not Jake esthetically pleasing. The problem is that when I set just the Jake background color in lieu of the image the entire grid space Jake occupied by the widget is colored and it just looks bad. Jake My next idea was to specify a different background that Jake specifies a shape resource instead of the PNG image. This Jake code works fine too. At runtime I select one of two values for Jake setBackgroundResource and I can see either the PNG image or the Jake shaped colored background. This shaped colored background has Jake margins and rounded corners so it looks better than just Jake coloring the background. Jake Here is my question: Is there a way to specify the color of the Jake shaped background at runtime? I can call RemoteView.setInt Jake with setBackgroundResource to set the shaped background but how Jake can I set the resource's background color? Jake -- Jake Jake Colman -- Android Tinkerer Jake -- Jake You received this message because you are subscribed to the Google Jake Groups Android Developers group. Jake To post to this group, send email to android-developers@googlegroups.com Jake To unsubscribe from this group, send email to Jake android-developers+unsubscr...@googlegroups.com Jake For more options, visit this group at Jake http://groups.google.com/group/android-developers?hl=en -- Jake Colman -- Android Tinkerer -- 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: New OpenGL ES 2.0 Game Engine Option
Thanks. By the way, I tried your Deadly Chambers game. It is impressive. I like how the guy's name is Chambers. Very funny. On Saturday, December 29, 2012 12:46:49 PM UTC-6, Robert Green wrote: Yes, texture mapping is fairly standard and is very well supported. BAI means Binary Asset Import and is a compact memory-safe format of the internal structure of the open asset importer library. We did create it ourselves but it's simple, easy to maintain and extend and fully compatible with version 2 of that library, which is why you can easily add more formats to the engine. On Friday, December 28, 2012 2:24:49 PM UTC-6, bob wrote: Thanks. Also, Does it support texture-mapped models? And, is the BAI format your own invention? On Friday, December 28, 2012 11:28:48 AM UTC-6, Robert Green wrote: Out of the box it supports OBJ for static geometry and Collada (DAE) for static and animated models. We have a utility that will convert either of those to a binary format called BAI to go to production because it's smaller and loads faster. The engine uses a library called Open Asset Import which supports 30+ formats, so if you want more formats supported, all you have to do is add in the format support files to either the engine or the BAI conversion utility. I think the only format that isn't supported by Open Asset Importer is FBX, but autodesk has good FBX to DAE conversion utilities that work, so there is that option. On Thursday, December 27, 2012 10:54:07 PM UTC-6, bob wrote: Looks interesting. What 3d model formats does it support? On Thursday, December 27, 2012 5:24:59 PM UTC-6, Robert Green wrote: Hi All, I'm a long time contributor of this group (over 400 posts I think), developer of Deadly Chambers, Antigen and several other Android games and just wanted to, in good will, let you know about the game engine that we've been developing for the past 2 years. It's called BatteryTech Engine and is available at http://www.batterytechsdk.com . It's full OpenGL ES 2.0 and was designed around Android so that it would work really well across over 1000 devices, maybe more. It's free to develop but does require a license to deploy. The license gets you full engine source code which is something you don't see often from comparable engines. We completely integrated Box2D and everything is bound to Lua to make it really easy to script out game logic. You can also deploy on other platforms, but it works great specifically for Android too. Please let me know what you think, either here, privately or otherwise. Would love feedback and am always happy to support. Thanks everyone!! -- 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] Network File browser
hi all, Happy new year to all of you. I am trying to make application like file browser. the constraint is I want to browse the files that are shared on the network in my company. My android device is in LAN and in my app I want to give ip of pc and app should search that PC and if i click in it I should be able to see contents that PC is sharing. Problem - - How should I search computer , is there any api or example which I can start on.? - once I found the computer I want to get information about the contents or folders that are shared by that computer. Any help will be very usefull. thanks, satish -- 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] hi friends
Happy New Year to One And All. Please suggest me, The above attached image,How can i display that items.How can i add items particularly in Today or Tomarrow Textviews and also the line below of Today textview. Please send me replay with which concept is used and how. -- 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=enattachment: s.jpg