[android-developers] Re: Can't get LVL working.
I don't believe the Android Market is included on the emulator and the licensing service is included with the Market app. I have it working successfully, but I did all my development and testing with a real phone (N1 Froyo). Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 30, 10:08 am, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all, I'm trying to get LVL working. I followed the offical guidelines, I copyed the LVL source into my project and added the correct manifest attribute. I also copyed from LVL sample folder the mainactivity.java into my project, changed the public key with the one from my developer console. When I launch my software the MainActivity tell me always the application is not licensed also if I specified that is Licensed from my developer console... This is the output of the logcat, W/ResourceType( 57): No package identifier when getting value for resource number 0x7f060001 I/ActivityManager( 57): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH ER] flg=0x1020 cmp=packageName/.AndroidMarket } I/ActivityManager( 57): Start proc packageNamefor activity packageName/.AndroidMarket: pid=658 uid=10023 gids={3003} I/jdwp ( 658): received file descriptor 20 from ADB D/ddm-heap( 658): Got feature list request I/LicenseChecker( 658): Binding to licensing service. W/ActivityManager( 57): Unable to start service Intent { act=com.android.vending.licensing.ILicensingService }: not fo und E/LicenseChecker( 658): Could not bind to service. D/ ( 658): unable to unlink '/data/data/packageName/ shared_prefs/com.android.vendi ng.licensing.ServerManagedPolicy.xml.bak': No such file or directory (errno=2) any idea would be appreciated. In addition when I click on the buy now button after it told me that application is not licensed, it will redirect me on the android market and I got a 404 error. Probably because emulator isn't authorized to access the market, I don't know... 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: Checking to See if I directory Exsits
public static boolean TrackmasterDirectoryCheck(boolean makeDir){ File trackmasterDirectory = new File(Constants.SYSTEM_TRACKMASTER_DIR); if(makeDir!trackmasterDirectory.exists()){ trackmasterDirectory.mkdir(); return true; } else if (trackmasterDirectory.exists()) return true; else return false; } Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 29, 8:22 am, { Devdroid } webnet.andr...@gmail.com wrote: On 29 July 2010 17:16, Justin justinbrett1...@gmail.com wrote: So how do I check to see if the directory exsits, and if it doesn't creates the directory? http://tinyurl.com/2cnd5o3 -- 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: How to pass geopoint location to Google turn-by-turn navigation
http://groups.google.com/group/android-developers/browse_thread/thread/83d2803f799c6f5f Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 28, 7:12 am, Ethan V. Mateja ethan.mat...@gmail.com wrote: I am trying to pass location data from my application to the Google Navigation API (No, not the browser). I can pass data to the dialer, and call a phone number successfully, but now wish to use the turn-by-turn navigation as an additional function. I have searched tirelessly through Android documentation, Google Maps API Documentation, and the web without luck. Can anyone point me in the right direction or hint how I can pass the service my data? Thanks in advance for reading my question! -- 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: How to zoom in/zoom out to ImageView
You could create your own view and override the draw method to perform the scaling for you: @Override public void draw(Canvas canvas) { super.draw(canvas); canvas.translate(dx, dy); //for dragging canvas.scale(scale, scale,screenDim/2,screenDim/2); //zoom in and zoom out } Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 28, 10:33 pm, Sohan badaya sohan.bad...@gmail.com wrote: Hi, Thanks for reply. But i think it is possible, because it is already done in Gallery application. When we click on any image in gallery, it zooms. But i don't have that code. If anyone have any idea, please help me. Thanks Sohan Badaya On Thu, Jul 29, 2010 at 12:56 AM, Loki117 thomas.sheppar...@gmail.comwrote: hBase -- 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: Choosing an Image
Try this instead: Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType(image/*); startActivityForResult(photoPickerIntent, 1); Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 23, 4:44 pm, KG kevinconca...@gmail.com wrote: Hi Everyone, I'm trying to allow the user to choose an image to load into my app using the default image browser on the phone. Here is what I have so far: Intent findImageIntent = new Intent(Intent.ACTION_GET_CONTENT); findImageIntent.setType(image/*); startActivityForResult(Intent.createChooser(findImageIntent, Select Picture), IMAGE_SELECT); This correctly launches the image chooser and I'm able to click one which returns me to my main activity. However, it does not load the image I selected, returning a -1 for resultCode in onActivityResult. Anyone know what I'm doing wrong? -- 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: Eclipse Helios
Yes, stay on 3.5. You will get a bunch of editor errors when attempting to edit XML files. Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 21, 12:55 am, hippy firsthi...@gmail.com wrote: On Jul 3, 6:25 am, kihbord kihb...@gmail.com wrote: Any news? I've upgraded my Eclipse to Helios and Android ADT plugin is now missing on my Eclipse setup. Caution: There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice. from:http://developer.android.com/sdk/eclipse-adt.html -- 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: Updates from a Web Server
I'd just send a simple HTTP Get Request periodically and process the response. URL url = new URL(http://;); url.openStream() //process the stream Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 21, 2:22 pm, KG kevinconca...@gmail.com wrote: Hi Everyone, I want to make a background process/service which will listen for updates from a web server and then notify the user of those updates. I've done some research into several approaches but can't decide which one is simplest/best. Anyone have any suggestions? Thanks, KG -- 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: aidl's, service, and multiple packages
You're absolutely on the right track. You will define your remote service and callback using aidl: IRemoteService.aidl IRemoteServiceCallback.aidl You will then define a service in another package (APK) that will return the remote service via onBind to any caller. Your calling package will bind to your service: final ServiceConnection serviceConnection = this; Intent remoteGpsServiceIntent = new Intent(com.trackaroo.apps.mobile.android.OTHER_SERVICE); context.bindService(remoteGpsServiceIntent,serviceConnection, Context.BIND_AUTO_CREATE); context.startService(remoteGpsServiceIntent); your onServiceConnected will that get a reference to your remote service: public void onServiceConnected(ComponentName name, IBinder binder) { remoteService = IRemoteService.Stub.asInterface(binder); and you can pass a callback to the remote service if needed: remoteService.registerCallback(this); Jeff Visit Trackaroo.com! Trackmaster - Motorsports Lap Timer Dynomaster - Performance Dyno On Jul 20, 4:49 pm, Jonathan jonberl...@gmail.com wrote: Hello everyone, I've created a service that is meant to communicated to an activity using aidl's and callback functions. I got it working just fine with my test activity in the same package. But I was wanting to expose this service to different activities running in a completely different .apk file. Is it possible to accomplish this? What does the separate package need to bind to my service and register the callbacks? Or am I going about this completely wrong and should I try a different method for conveying information back and forth between two packages. Thank-you for reading my post. -- 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: App disappears from the Market after upgrade
I'm also seeing this after recently updating my app. It is also using uses-permission android:name=android.permission.BLUETOOTH Discussion on Android Market: http://www.google.com/support/forum/p/Android+Market/thread?tid=45694f3cad2f7172 I've filed issue 9137: http://code.google.com/p/android/issues/detail?id=9137 Jeff On Jun 10, 10:32 am, Yuvi yuvidr...@gmail.com wrote: Just FYI, I checked for Torque visibility on: - HTC Hero (Android 2.1) -- both versions visible - HTC Magic (Android 2.1) -- both versions visible - HTC Hero (Android 1.5) -- both versions NOT visible - HTC Magic (Android 1.6) -- both versions NOT visible YuviDroid On Thu, Jun 10, 2010 at 6:58 PM, piemm...@googlemail.com piemm...@googlemail.com wrote: Hi, thankyou, they are still displaying in 2.1+ But unfortunately though they're no longer visible in android 1.6 which is a fair chunk of market I'm missing! Ian On Jun 10, 8:20 am, Scott STEPHEN - Better Contacts scott.stephen...@gmail.com wrote: Ian, Just to confirm, I do see your apps. Milestone Desire 2.1-update1. Scott On Jun 10, 9:00 am, piemm...@googlemail.com piemm...@googlemail.com wrote: Hi, the apps are both versions of Torque. I have found the visibility problem however - someone has changed the market system to exclude apps with the Bluetooth permission for Android 1.6 devices. This behaviour is in my opinion wrong, because I might have added support for bluetooth in my app (for 2.0+ devices) but it must also work in 1.5/1.6 as the 'bluetooth' option in my app may be simply grayed out (This is not in the case of Torque however). Adding the uses bluetooth permission should not *now* hide the app from the market when the previous incarnation of the market allowed it to be visible, even if it was 'incorrect'. For 1.5/1.6 devices that permission simply should not matter at all. This is almost a case for a kind of 'requires-capabilities' (I currently do not know if this exists or is coming, correct me if I am wrong) as I may have an app designed for ALL versions of android, where bluetooth is a nice feature, but is not a *required* feature and I may have coded for that scenario. Anyway, it seems that: uses-permission android:name=android.permission.BLUETOOTH now hides apps for 1.5/1.6 devices whereby before the market upgrade, it didn't. (This is now a problem for me) Thanks Ian. On Jun 10, 7:19 am, Scott STEPHEN - Better Contacts scott.stephen...@gmail.com wrote: Ian, What apps ? I will test here from France. Scott On Jun 10, 8:09 am, piemm...@googlemail.com piemm...@googlemail.com wrote: Similar problems here, Before google did the market 'fix' for 2.1/2.2, 2 of my apps (Torque) appeared correctly in the Android Market for Android1.6 and upward (The MyTouch 3G as an example), after the upgrade, they are no longer visible apart from on Android 2.x+ devices Regards, Ian -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroidhttp://android.yuvalsharon.net -- 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: any lawyer types out there that can get this site down?
They use paypal. Submit this form to close their paypal account. https://cms.paypal.com/cgi-bin/marketingweb?cmd=_render-contentcontent_ID=ua/InfringementRpt_fulllocale.x=en_US On Apr 9, 3:18 pm, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: Personally, I think the last part of this conversation is much ado about nothing. Nick was the original registrar, and original architect of the illegal business, and the public information shows that connection and that is all. Covering your tracks after a crime is something best left to the criminal, and there's really no need to have public debate about whether it's okay for people to re-disclose public information, whether it makes others nervous or not; of course its okay. And Nick, nobody has dragged you back into this. It appears you have simply not completely taken yourself out in the first place. *About the site*: they are pirates. They plan to release an app to the market soon that will let their customers download your apps for free (after paying them, of course). They have done several waves of advertising via Market comments on all the apps they have purchased (in fact, it was a comment by Nick on our app that first brought my attention to their site, late last year). Consequently, you can't really tell if they carry your app, because the catalog visible to non-users does not show all of their downloads. For example, they carry our product right now, but it is not in the public catalog. Nonetheless, many users have notified us that they found our product there. However, if you cannot find your app in the public list, I encourage you to forget it for now and NOT pay them for a membership. I believe they have already made many thousands in ill-gotten gains. Finally, I think there are only two solutions to this and the many other pirate sites: (1) Protect your app with some license scheme. (2) Launch a campaign to take down the site. This will have to be done via a lawsuit. Google is unlikely to do anything about this because it's not their fight, and it doesn't harm them in any way. Cheers! SoftwareForMe.com On Thu, Apr 8, 2010 at 10:25 PM, Al Sutton a...@funkyandroid.com wrote: There is no law which covers reproducing information in the public domain (such as whois records). You should contact the registrar (GoDaddy), inform them the information is wrong and they're publishing your personal information, and ask for the domain to be taken down as it's incorrectly registered. Better still, as whomever is involved in it has listed you as the admin and tech contacts you could ask GoDaddy to transfer the domain to your control, then point it at a domain parking page. That way you could get money from the parking page and the site would become a non- issue for everyone here and so they'd stop hassling you. Have a nice day, Al. On Apr 9, 1:23 am, Guess Who, You Probably have my Number nnarb...@gmail.com wrote: I will say this one more time. DO NOT own this site or am I affiliated with it. I f I see anybody else freely placing my personal information on a forum,etc. I will have my lawyer personally contact you. As this is a violation of more than one law, regardless of my past, this is wrong. It was sold to a guy out of Sweden. What he did or does with it is out of my control. Please remove my contact info. On Apr 8, 8:07 pm, Bob Kerns r...@acm.org wrote: Well, if my paid app shows up there, I'll be contacting their ISP, domain registrar, and local authorities. I encourage anyone similarly being ripped off to do the same. I'm only doing it if my app shows up there, because then I'll have the evidence and the legal standing for a complaint. They appear to be located in Florida, so this should fall under the DCMA, which is a lousy law, but at least should work OK; this sort of thing has always been illegal. If someone's feeling adventurous, they can email and/or call and see what they have to say for themselves. It's still possible we're jumping to conclusions. Registrant: Private 9306 new heritage rd apt 302 orlando, Florida 32825 United States Domain Name: ANDROIDPLAYGROUND.NET Created on: 10-Sep-09 Expires on: 10-Sep-11 Last Updated on: 26-Jan-10 Administrative Contact: narbone, nicholas 9306 new heritage rd apt 302 orlando, Florida 32825 United States +1.4073348336 Fax -- Technical Contact: narbone, nicholas 9306 new heritage rd apt 302 orlando, Florida 32825 United States +1.4073348336 Fax -- Domain servers in listed order: NS1.ANDROIDPLAYGROUND.NET NS2.ANDROIDPLAYGROUND.NET On Apr 8, 8:59 am, nexbug gsuku...@gmail.com wrote: Basically you can get a
[android-developers] java.lang.NoClassDefFoundError: android.view.ScaleGestureDetector
I have a user complaining about a FC on my app and they were kind enough to post the stacktrace. It's a class that I cannot find anywhere and it sounds like it is related to multi-touch. I don't specifically call this class, MapView does so I don't have any control over it. It kind of looks like his Google API maps package is trying to use an unknown gesture library. Any ideas? I figure other devs using the MapView class might run into the same issue with their users. The user is using a Droid. 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): Caused by: java.lang.reflect.InvocationTargetException 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:238) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at java.lang.reflect.Constructor.constructNative(Native Method) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): ... 22 more 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): Caused by: java.lang.NoClassDefFoundError: android.view.ScaleGestureDetector 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.setup(MapView.java:368) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapActivity.setupMapView(MapActivity.java:187) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:280) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:255) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): ... 26 more Jeff Trackaroo Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com) Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com) -- 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: java.lang.NoClassDefFoundError: android.view.ScaleGestureDetector
Ahhh..thanks. The joy of custom ROMs. On Feb 6, 1:13 pm, Romain Guy romain...@android.com wrote: ScaleGestureDetector is a class that was added in the latest update of the Nexus One. If your user is using a Droid, it looks like he's been trying to update his Droid manually, using binaries that were not meant for his phone. On Sat, Feb 6, 2010 at 9:14 AM, jeffro j...@trackaroo.com wrote: I have a user complaining about a FC on my app and they were kind enough to post the stacktrace. It's a class that I cannot find anywhere and it sounds like it is related to multi-touch. I don't specifically call this class, MapView does so I don't have any control over it. It kind of looks like his Google API maps package is trying to use an unknown gesture library. Any ideas? I figure other devs using the MapView class might run into the same issue with their users. The user is using a Droid. 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): Caused by: java.lang.reflect.InvocationTargetException 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:238) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at java.lang.reflect.Constructor.constructNative(Native Method) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): ... 22 more 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): Caused by: java.lang.NoClassDefFoundError: android.view.ScaleGestureDetector 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.setup(MapView.java:368) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapActivity.setupMapView(MapActivity.java:187) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:280) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): at com.google.android.maps.MapView.init(MapView.java:255) 02-06 01:08:37.326: ERROR/AndroidRuntime(4231): ... 26 more Jeff --- - Trackaroo Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com) Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com) -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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: publish a web app to android Market
It would need to be a downloadable app. You could create a pretty simple app that uses the WebView widget to display your web app. Here's a WebView tutorial to get you started. http://developerlife.com/tutorials/?p=369 Jeff Trackaroo Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com) Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com) On Jan 19, 1:47 pm, mark d mark.axm...@gmail.com wrote: This may sound like a weird question, but I have developed a mobile web application which works well with Android (browser). Would it be possible for me to somehow list this website/application on the marketplace? Or does it strictly have to be a downloadable app? 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: simple web search based on location
Check out the GeoCoder class and the getFromLocationName methods. You can input a search string like whole foods, los gatos, CA and it will return a list of Address results. You can also specify a bounding box if you want to limit your results to your current map. http://developer.android.com/reference/android/location/Geocoder.html Jeff Trackaroo Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com) Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com) On Jan 19, 10:41 am, John jcarp...@gmail.com wrote: Google provides a fairly simple interface for local searches. http://code.google.com/apis/ajaxsearch/documentation/#fonje In the search request you can specify a latitude and longitude with the text to get a reference to those nearby businesses. Here is the reference to the parameters for the search. http://code.google.com/apis/ajaxsearch/documentation/reference.html#_... You can simply make a http call and parse the json response when it comes back. It should be straight forward from there. Thanks, John On Jan 17, 8:00 pm, sunny menon1...@gmail.com wrote: Hi Folks, wondering if any of you can help. This is what I am trying to do: simple app to get list of addresses I am interested in based on my current location. I get the current location using location services. Now, based on this current location I want to do a search on business places without really using the SearchManager's triggerSearch. The problem with the triggerSearch is that it launches the googlemap and show the business address I am looking for and it is blocked. I want to get the control back. I do not want to launch the map with the listing. all I want to do is the get the Geopoint of the business address I am interested in using a simple web search. I tried reverseGeocoding , but it is does not work with business address. It needs full address. any suggestion?. Simply put, all I want to do is a simple websearch , say query=whole foods, los gatos, CA to get its full address. and then use it to get the GeoPoint. I am stuck and wondering if anyone can give me some pointers. thanks a ton in advance. Sunny. -- 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: market doesn't refresh downloads?
I see the same issue. Jeff ___ Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Jan 7, 7:30 am, Éva Lovrencsics lovi...@gmail.com wrote: Hello, My downloads and installs stopped two days ago, and I don't see any changes on the market (developer console). They never stay the same, so I think, market doesn't refresh them. Anybody recognized this? Evi -- 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: Creating databases
Here's an example: @Override public void onCreate(SQLiteDatabase db) { Log.d(getClass().getName(), Creating Database.); db.execSQL(VEHICLE_CREATE); db.execSQL(RUN_CREATE); db.execSQL(DATA_CREATE); db.execSQL(SETUP_CREATE); db.execSQL(ET_CREATE); } and the I have final strings like the following that contain the SQL to create the table: private static final String VEHICLE_CREATE = create table vehicle (_id integer primary key autoincrement, vehicle text not null,notes text, selected boolean not null default false,vehicle_uri text,weight real default 0.0,drivetrain_loss integer default 17);; Jeff ___ Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Dec 14, 3:46 pm, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: I've made a few apps now, which use an SQLite database, no problems. In my latest app, I want two tables, and I just realised that every example I can find only creates one table. So, is this a limitation? Must I use only one table? Assuming I can use two, how do I go about changing my create script? Here's a normal one, as per the examples: private static final String DATABASE_CREATE = create table myTable (_id integer primary key autoincrement, + description text not null); ; If there's an example elsewhere, I'd be grateful for a link... thanks. In onCreate() of your SQLiteOpenHelper, you can call execSQL() as many times as you like, to execute as many SQL statements as you like. You can have as many tables, indices, triggers, and whatnot as SQLite allows, certainly greater than one of each. So, call execSQL() once to create one table and once to create another table. Or, courtesy of that semicolon, you may be able to put both CREATE TABLE statements in a single string -- I haven't tried that. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- 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: GPS beacon vs. locked
You might be better off checking the accuracy of your GPS location instead. Even though GPS is locked, your GPS accuracy may be too poor for what you need for your application. /* (non-Javadoc) * @see android.location.LocationListener#onLocationChanged (android.location.Location) */ public void onLocationChanged(Location location) { //check gps accuracy if(location.getAccuracy()100) //process if accuracy is good 100 meters Jeff Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Dec 11, 9:10 am, stanlick stanl...@gmail.com wrote: I am trying to determine whether satellites are being acquired or if a lock has been acquired. I can see this with a pulsing vs. fixed dish icon on the notification bar, but so far I have not quite achieved a solution in code. Apparently this does nor necessarily mean LOCK_ACQUIRED? @Override public void onGpsStatusChanged(int event) { if (GpsStatus.GPS_EVENT_STARTED == event) { //1 setGpsAvailable(true); } } Peace, Scott -- 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: Display multiple locations on Map
Some nice step by step tutorials: http://www.helloandroid.com/tutorials/tourguide-virtual-sightseeing http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html http://www.anddev.org/the_friend_finder_-_mapactivity_using_gps_-_part_i_-_ii-t93.html Jeff Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Dec 11, 1:14 pm, TreKing treking...@gmail.com wrote: http://code.google.com/android/add-ons/google-apis/reference/index.html --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking On Fri, Dec 11, 2009 at 2:28 PM, Sandeep Ranganath sandeep.rangan...@gmail.com wrote: Hi, In the App i m developing i need to pass multiple co-ordinates [Lat and Long] and display all of them on the same MAP. Please let me know if any sample code and how can i go about this. -Sandeep -- 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.comandroid-developers%2Bunsubs cr...@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] Re: landScape mode problem
You may need to define a landscape specific layout XML for your app. Please this layout in '/res/layout-land' More info: http://www.devx.com/wireless/Article/40792/1763/page/3 Jeff Trackaroo.com Trackmaster - Motorsports Lap Timer http://trackmaster.trackaroo.com Dynomaster - Performance Dyno http://dynomaster.trackaroo.com On Dec 11, 2:07 am, ranjit ranjitv...@gmail.com wrote: hello, my app is working on portrait mode in good view support.but when i m going for landscape mode my app works but the background image stretched and the layout display all but having right side blank. i have given a image in result page which is in below part of result.so when i go for landscape mode the image is in below part.i want to take the image to right side blank part.what i have to do, please help. -- 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: Educating Users
Here are a few ideas to reduce these comments and educate your users: -provide a userguide in the app and on your product web site. -add Toasts throughout your app that provide tips for using your app. -add a Tips dialog on launch that provides helpful hints. -add a forum to your product web site for questions (looks like you did this). -this is a tough one...make your app simple to use and idiot proof. Jeff http://www.trackaroo.com On Dec 9, 8:47 am, Wayne Wenthin wa...@fuligin.com wrote: Has anyone got a good method to teach users that the Market is a one way street and that I can't reply there. I've tried putting that in the description, wasting valuable text space, I put in in my news button on the game but they still ask for help in the market and leave a low score because they can't figure out how to run the game. Thanks, Wayne -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Managerhttp://www.fuligin.com/forums -- 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: Fullscreen dialog
I had to specify the ListView height. If you specify in dip then it should scale accordingly for large or small screens. ListView android:id=@+id/dialog_list android:layout_width=fill_parent android:layout_height=200dip android:layout_marginLeft=0dip android:layout_marginRight=0dip / Jeff http://www.trackaroo.com On Nov 30, 8:33 am, tikky tiku...@gmail.com wrote: I have a dialog with a list view in it and am wondering if there is a way in to create a dialog that appears like an activity? i.e. fullscreen and fix size? Is there is any style that can be applied to have this activity-like appearance? -- 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: KML and Google Map Application
Is that URI format supported? This is what is listed in the developer guide: geo:latitude,longitude geo:latitude,longitude?z=zoom geo:0,0?q=my+street+address geo:0,0?q=business+near+city I don't see a url to KML file supported. http://developer.android.com/guide/appendix/g-app-intents.html Jeff http://www.trackaroo.com On Nov 30, 10:43 am, furby wookie...@gmail.com wrote: I have a KML file that is being generated on the server side and loaded into the google maps application on Android. The resulting KML file looks like this (Right now it has only one point in it): ?xml version=1.0 encoding=UTF-8? kml xmlns=http://earth.google.com/kml/2.x; PlacemarknameBridgewater Twp Martinsv/name descriptionTEST/description Pointcoordinates-74.03279876709,40.9547996521,0/coordinates/ Point /Placemark /kml I am using these lines to start the app up and load the KML file : final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(geo:0,0?q=[GENERATE THE KML FILE])); startActivity(myIntent); (Where the [GENERATE THE KML FILE] is the url to my application that generates the file) For some reason it will not work... Can anyone see what I am doing wrong in the KML file? I *think* it looks correct to me... -- 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: Upgrading database for an app
Here's a snippet of code that may help you. I rename the old table, create the new table, and then insert the data into the new table while modifying the data. @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.d(getClass().getName(), Upgrading Database.); if(oldVersion==1) { db.execSQL(VEHICLE_RENAME_VERSION_1); db.execSQL(VEHICLE_CREATE); upgradeVehicle2(db); } } private void upgradeVehicle2(SQLiteDatabase db){ //get cursor to old vehicle table Cursor cursor = db.query(vehicle_1, new String[] {_id,vehicle,notes,selected,vehicle_uri,weight}, null, null, null, null, null); while(cursor.moveToNext()){ ContentValues values = new ContentValues(); values.put(_id, cursor.getLong(0)); values.put(vehicle, cursor.getString(1)); values.put(notes, cursor.getString(2)); values.put(selected, cursor.getShort(3)); values.put(vehicle_uri, cursor.getString(4)); values.put(weight, cursor.getFloat(5)); values.put(drivetrain_loss, Constants.VEHICLE_DEFAULT_DRIVETRAIN_LOSS); db.insert(vehicle, null, values); } } Jeff http://www.trackaroo.com On Nov 29, 9:02 am, Dexter#39;s Brain coomar@gmail.com wrote: Is it sufficient if I change the database version? Or, first I will have to back up the db programatically and then restore all the tables with contents? -- 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: Different screen sizes + API level
You'll need to specify which screen sized you support in your manifest file if you use SDK1.6. supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=true / Read more here: http://d.android.com/guide/practices/screens_support.html Jeff http://www.trackaroo.com On Nov 29, 2:48 am, Donald_W wojcik.to...@gmail.com wrote: Hello, I would like to ask what settings are necessary for my application to be available on all screen sizes: Is it enough to compile it using SDK 1.6 (but target is set to 1.5 and API level to 3) or maybe I have to set target to 1.6 and API level to 4? -- 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: Android listview with pre selected checkboxes
You can create your own ListAdapter and then override the getViews method to setup the checkboxes similar to this: /* (non-Javadoc) * @see android.widget.Adapter#getView(int, android.view.View, android.view.ViewGroup) */ public View getView(int position, View convertView, ViewGroup parent) { Setup setup = (Setup)this.getItem(position); if (convertView == null) convertView = inflater.inflate(R.layout.setup_mgt_row, null); TextView textView = (TextView) convertView.findViewById (R.id.setup_mgt_name); textView.setText(setup.getName()); ImageView selectedView = (ImageView) convertView.findViewById (R.id.setup_mgt_selected); selectedView.setTag(position); if(setup.isSelected()) selectedView.setImageState(new int[] { android.R.attr.state_checked }, true); else selectedView.setImageState(new int[] { android.R.attr.state_empty }, true); selectedView.setOnClickListener(this); ImageView deleteView = (ImageView)convertView.findViewById (R.id.setup_mgt_delete); deleteView.setTag(position); deleteView.setOnClickListener(this); return convertView; } Jeff http://www.trackaroo.com On Nov 28, 6:11 pm, Harry harish.singire...@gmail.com wrote: I have a listview with some checkboxes. I want some of them to be prechecked when the activity starts. I have the positions of those checkboxes which needs to be pre selected. -- 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 the ID in a SimpleAdapter
You need to implement the Adapter method to pass the id value you want: public long getItemId(int index) {} On Nov 18, 7:17 am, jax jackma...@gmail.com wrote: How do you set the Id attribute for a SimpleAdapter so that when you run onItemClick(AdapterView? parent, View view,int position, long id) I will be able to get the id? The data is coming from an XML file. -- 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] Be Careful of Upgrading App with New SDK Version
I thought I would just post this to let other devs know about this issue. You should think carefully before posting a new version of your app that uses new features from Android 1.6 or Android 2.0. I have released a new app version that takes advantage of new Android 1.6 features. Because of this I have set android:minSdkVersion=4. This means now that devices that are still running Android 1.5 (HTC Hero and the upcoming Samsung Behold II) do not see my app at all. Ideally, the Android Market should allow the previous version of my app to remain in the market so that Android 1.5 devices can still purchase the older version until these devices are upgraded. I guess this is some of the device fragmentation issues folks are talking about. If someone knows a workaround, please post. -- 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: Be Careful of Upgrading App with New SDK Version
Thanks for posting that. Man, that's ugly. The best solution would be for Android Market to support multiple app version rather than having the dev add all this extra inefficient code. On Nov 16, 10:19 pm, siuying siu.y...@gmail.com wrote: You may use minSdkVersion=3, and within the code, use reflection or other means to determine the capabilities of the device, and use only supported API on the device. Check the android blog related post (http://android-developers.blogspot.com/2009/04/backward-compatibility- for-android.html) for details. This mean extra works, and it seems the only way to go. -- 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: Be Careful of Upgrading App with New SDK Version
I just submitted an issue for this so that the market can support multiple versions of an app in order to support multiple SDK versions. If you agree that this is a better solution, please vote for it: http://code.google.com/p/android/issues/detail?id=4851 On Nov 16, 11:13 pm, jeffro j...@trackaroo.com wrote: Thanks for posting that. Man, that's ugly. The best solution would be for Android Market to support multiple app version rather than having the dev add all this extra inefficient code. On Nov 16, 10:19 pm, siuying siu.y...@gmail.com wrote: You may use minSdkVersion=3, and within the code, use reflection or other means to determine the capabilities of the device, and use only supported API on the device. Check the android blog related post (http://android-developers.blogspot.com/2009/04/backward-compatibility- for-android.html) for details. This mean extra works, and it seems the only way to go. -- 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-based App Authentication
I'm trying to figure out how to develop a network-based authentication for my apps. I need some way to authentication an ID from the phone with an ID from the purchase order. Google Checkout has an ID in the order listing at the end: Trackmaster - Trackmaster is a powerful racing lap timer that runs on your Google Android Phone. It's for the motorsports enthusiast. Record your speed and times, analyze and replay your data, and share with your friends. Works great for autocross, hillclimbs, road rally, and track days! Satisfaction guarantee... - ID: -9037815002946116244 I checked and this isn't the IMEI. Anyone know what this ID is? Jeff --~--~-~--~~~---~--~~ 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] Next focus left to right then down?
I have textfields laid out horizontally with another row below. Is there any way to control the next focus key (actionNext) so that it goes to the next textfield to the right before going down to the next row? --~--~-~--~~~---~--~~ 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] getRotationMatrix and accelerometer values
I'm trying to use the rotation matrix to translate the accelerometer values from the device coordinates to the world coordinates. It's not clear how to do this. Theoretically, I should be able to do something like this: double[][] accelArray = { {xaccel}, {yaccel}, {zaccel} }; Matrix accelDevice = new Matrix(accelArray); Matrix accelWorld = rotationMatrix.times(accelDevice); That code works for a third-party matrix library, but I can't figure out how to do it with any of the SensorManager methods or the Android Matrix classes. Any help would be appreciated. Jeff --~--~-~--~~~---~--~~ 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: how to remove the image displayed in ImageView
Not sure what you're trying to accomplish, but you can use View.setVisibility(View.GONE or View.INVISIBLE) to not display the image. On Jan 23, 12:55 pm, Sundog sunns...@gmail.com wrote: Haven't tried SetImageBitmap to null, but I know SetImageResource to null does not work. I've been meaning to ask this question, too. On Jan 23, 1:28 pm, mathiastck mathias...@gmail.com wrote: You could try setImageBitmap passing a null. On Jan 22, 9:31 pm, cindy ypu01...@yahoo.com wrote: I could not find any API to remove the image displayed in ImageVIew. Help! On Jan 22, 11:16 am, cindy ypu01...@yahoo.com wrote: Hi How can we removed image displayed in Imageview? Thanks! Cindy- 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Email attachment not being sent
This worked for me. I wrote my file to the sdcard. Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse (file://+Environment.getExternalStorageDirectory()+/data.csv)); sendIntent.setType(text/csv); On Jan 12, 12:19 pm, Marklar ddil...@gmail.com wrote: Hello, I've been trying to send a file as anemailattachment. My program creates the file (a .csv file), and attempts to send it using a mail client, like the gmail client. I have gotten as far as Gmail opening up with the correct Subject and what appears to be the file attached to it but when I send theemail, it arrives with noattachment. This is the code snippet I am using: Intent i = new Intent(Intent.ACTION_SEND); i.putExtra(Intent.EXTRA_SUBJECT, filename); i.putExtra(Intent.EXTRA_STREAM, Uri.parse(content:// com.marklar.business/mimetype/sdcard/Accounts.csv)); i.setType(text/csv); startActivity(Intent.createChooser(i, Emailfile)); I have seen two other programs that can add attachments to the gmail client, Open Intents File Manager and Voice Recorder. Open Intents was even nice enough to open up the source, but after looking through it I cannot see any differences between what I am doing and how they send attachments. Even the Gmail screen looks identical between all three programs, with theattachment, subject etc, but theirs actually send theattachmentwhereas mine just sends the subject and body of theemail. I've spent the last couple of days searching this group, on Google and asking on IRC, if anyone has any ideas I would greatly appreciate it. Thanks! Marklar --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---