[android-developers] Re: Animations in the list view
in that case I'd think about insert a new row into the list when the listview is first displayed. from the example its always going to be at position(0) in the list so you can override its height in the getview() and set it at 1 dp high (tip: don't set the row view to View.GONE). At the end of the animations you will just be fiddling around with row heights and view contents so you shouldn't need the notifyDatasetChanged(). On Tuesday, January 15, 2013 4:14:52 AM UTC-5, Ansh wrote: Hi Nick , Thanks a lot for your reply. I did the same you suggested but it had revealed few issues: after implementing all three steps and when i did below step also *- After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view.* * * *-*when i inserted Row into the insertion point and called notifyDatasetChanged for the list to update the row it showed some jerk because list's getview method called and repopulate the list again and i needed not to change the child view height back as getView changed its height back to original.Animation was not that smooth as its in the youtube video. If i misunderstood your stpes ,and if possible ,could u please create a demo project and send it to me to yourans...@gmail.com.I ll be grateful to you. On Monday, 14 January 2013 18:55:46 UTC+5:30, Spiral123 wrote: I think this is not very different to a question we had a couple of weeks ago. This is what I would do: - I would not use 2 ListViews. I would leave the original ListView underneath and dynamically create a new View that was a single RowView and put that on top and slide it around. - I would not insert an extra row into the original ListView. Instead find the child view at the top of the list and double the height of it. Make sure the gravity of the content is such that is sticks to the bottom of the view. - Slide the dummy row view up until it lies directly over the top (blank) part of the child view. - After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view. I think that should give you the appearance you want. Judging from the neutral background and lack of row dividers I'm guessing whoever wrote the sample behind your youtube example did something similar. Best, Nick On Monday, January 14, 2013 3:16:59 AM UTC-5, Ansh wrote: I have tried one way of doing this kind of animation.I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top and making it's visibility to gone.and the same time when the view is translating, i am sliding down the list also and once the view's animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? On Sunday, 13 January 2013 00:10:47 UTC+5:30, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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: Animations in the list view
I think this is not very different to a question we had a couple of weeks ago. This is what I would do: - I would not use 2 ListViews. I would leave the original ListView underneath and dynamically create a new View that was a single RowView and put that on top and slide it around. - I would not insert an extra row into the original ListView. Instead find the child view at the top of the list and double the height of it. Make sure the gravity of the content is such that is sticks to the bottom of the view. - Slide the dummy row view up until it lies directly over the top (blank) part of the child view. - After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view. I think that should give you the appearance you want. Judging from the neutral background and lack of row dividers I'm guessing whoever wrote the sample behind your youtube example did something similar. Best, Nick On Monday, January 14, 2013 3:16:59 AM UTC-5, Ansh wrote: I have tried one way of doing this kind of animation.I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top and making it's visibility to gone.and the same time when the view is translating, i am sliding down the list also and once the view's animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? On Sunday, 13 January 2013 00:10:47 UTC+5:30, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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: Maps API v2 and WRITE_EXTERNAL_STORAGE permission
Personally I would not recommend leaving out the permission and hoping that things work now and in the future. If there is functionality that your client requires from the Maps V2 API then I would recommend to them that they suck it up and include the permission - or at least that they take the risk of future failure if it is left out instead of leaving it with you. If the maps is not a key feature of the app then perhaps you could investigate using a non Google Maps library (they are out there). If you are thinking about continuing with Maps v1 during the deprecation period then I would recommend reading and thinking about Marks blog entry on API Keys: http://commonsware.com/blog/ On Tuesday, January 8, 2013 3:58:19 AM UTC-5, Jamie wrote: The official documentation for MAPS API v2 states the following: Besides permissions required by other parts of your application, you must add the following permissions in order to use the Google Maps Android API: - android.permission.INTERNEThttp://developer.android.com/reference/android/Manifest.permission.html#INTERNET Used by the API to download map tiles from Google Maps servers. - com.google.android.providers.gsf.permission.READ_GSERVICES Allows the API to access Google web-based services. - android.permission.WRITE_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE Allows the API to cache map tile data in the device's external storage area. My client has requested that we do not use the WRITE_EXTERNAL_STORAGE permission. So my question is, is it really true that this permission is mandatory when using the Maps V2 API and will bad things happen if I don't include it? Since the mapping functionality is not a key feature of the application I am more than happy to take any hit with regards to lake of map cacheing. Many thanks, Jamie -- 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: android drag and drop gridview ordering using OnDragListener
Hi Frank I'm not sure I fully understand what effect you are trying to achieve withe drag and drop on a gridview (do you have an example to look at by any chance?). I may have done something similar with a custom listview though. To do drag and drop on my custom listview I don't make a space for my dragged object: instead I double the height of the row that is currently underneath the dragged object (which I assume is the shadow object in your email). In this way the touch events should continue to be registered. Once the dragged row is dragged more than 50% over the covered row I flip the location of the text so that it remains visible. As soon as the dragged object touches the next row I reset the previous one to the original height and double the size of the new 'covered' view. In addition you need to change the height of the original dragged view down to 1 pixel rather than changing the visibility of it. In this way my dragged object always has the listview under it and is never 'between' two items. Much as I'd like to claim that I came up with this clever trick myself I'm afraid I cannot: if you study the source for Google Music you can see it in action therealso if I recall correctly I think the estimable Mark Murphy extracted the useful bits from that app to build a custom listview class that you should be able to download from his site. Apologies if I completely misunderstood your problem! Best, Nick On Wednesday, December 19, 2012 4:23:49 AM UTC-5, Frank wrote: I created a drag and drop gridview (using an 'OnDragListener'). Grid items can be dropped upon one another. However, I also want to be able to re-order them. I implemented this, but there is a major issue left standing: When I drag around my shadow object I want the items to make space for my dragged object while I am dragging it around. I already implemented the moving of the other items, but I cannot seem to figure out a way to find out IF/WHEN I am in between two items. I get drag events when I hoover ABOVE an item, but not in between then. The gridview does not get any 'onTouchEvent' calls when I am dragging, not even 'onInterceptTouchEvent' calls. Does anyone know a way in which I can implement this? I already tried: 1. Implementing 'onTouchEvent' and 'onInterceptTouchEvent' in the gridview. Problem: The gridview does not get any 'onTouchEvent' calls when I am dragging an item, not even 'onInterceptTouchEvent' calls. 2. Setting another 'draglistener' on the whole gridview. Problem: 'ACTION_DRAG_LOCATION' gets only called a few times, not on every move (location change), as is documented (!!). -- 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] Oauth2 'Signing In' screen
Thanks Greg. those links look really useful for authenticating to non-Google services but I want to use Google Play Services and the utility methods in GoogleAuthUtil because I'm guessing that users are going to become more familiar with the standard Google authentication dialogs going forwards. I guess this also means they will get used to the black 'Signing in...' screen as well: it just looks odd when it suddenly pops up and then vanishes. Nick On Monday, December 17, 2012 12:36:47 AM UTC-5, Greg Donald wrote: On Sun, Dec 16, 2012 at 10:43 PM, Spiral123 cumi...@gmail.comjavascript: wrote: I'm just in the process of upgrading my apps to use Oauth2 and Google Play services. All seems to be going well except that after authorizing my app Google Play services swaps from the nice white confirmation screen to a full black screen saying 'Signing in... This can take a few minutes'. I know that when you first setup a Google account it is possible to take multiple minutes to do the initial sign on but in my testing this screen appears for typically less than a second. Apart from looking ugly it could be a disconcerting for a user - especially if you are not expecting it. Anyone got any ideas for how I could remove the message or at least substitute it with my own indeterminate progress indicator? I wrote a set of wrapper URLs around OAuth2 so I could more easily customize my interface and the login process on Android. You're not tied to Android just because you want to use OAuth2, it's just a web service that happens to have some hooks in Android. Here are a bunch of the URLs I learned from while writing the wrapper code: http://gregdonald.com/2012/04/25/google-single-sign-on-using-django/ And this was a major help too: https://developers.google.com/oauthplayground/ -- Greg Donald -- 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] Oauth2 'Signing In' screen
Hi all I'm just in the process of upgrading my apps to use Oauth2 and Google Play services. All seems to be going well except that after authorizing my app Google Play services swaps from the nice white confirmation screen to a full black screen saying 'Signing in... This can take a few minutes'. I know that when you first setup a Google account it is possible to take multiple minutes to do the initial sign on but in my testing this screen appears for typically less than a second. Apart from looking ugly it could be a disconcerting for a user - especially if you are not expecting it. Anyone got any ideas for how I could remove the message or at least substitute it with my own indeterminate progress indicator? Best, 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Migrating existing app to Google Maps API v2
I don't think its as trivial as you suspect I'm afraid. The API is new, not just an upgrade of the old one. We now have markers, polylines and polygons and overlays have become TileOverlays. I'm sure there are going to be ways to minimize the migration effort from old to new but I don't think it will be trivial unless your v1 Maps project is trivial. All in all, looks like there are some really cool new toys to play with. I think I'm going to setup a little sample project to mess around with the new features before I decide how to incorporate them. On Tuesday, December 4, 2012 1:24:23 AM UTC-5, Zsolt Vasvari wrote: I assume the replacement for MapActivity is MapFragment/SupportMapFragment. Just add one of those to your Activity/FragmentActivity. It's a trivial change. -- 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: Google Maps Api Sign Up
I'm guessing that you are trying to open the native Android Google Maps app with a web url and hoping that the native app is going to fetch down your custom map and display it locally. There is no intent that I am aware of that does that PREMIUM or not. I think you need to create an intent that will target a web browser on the device with your URL, or load it into a webview within your app. On Friday, November 30, 2012 4:47:57 PM UTC-5, JHandal wrote: Sign Up for the Google Maps API The API keys generated by this page are no longer available I am using this tool to create my own map http://gmaps-samples.googlecode.com/svn/trunk/spreadsheetsmapwizard/makecustommap.htm I need to access this map from my Android App The Maps API requires a free API key that's associated with your Google Account http://www.google.com/accounts/ and the URL of your web site. You can sign up for one herehttp://code.google.com/apis/maps/signup.html, and substitute it as the value of the key= parameter in the script tag below. String MyOwnMap = https://maps.google.com/maps/ms?msid=214217748623619348483.0004c4c2e5e1da43c0f90msa=0 ; intent.setComponent(ComponentName.unflattenFromString(com.google.android.apps.maps/com.google.android.maps.MapsActivity)); Maybe some PREMIUM App from GOOGLE ? -- 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: Is it possible to add two master-details fragments in a Single Activity
you can have as many fragments as you want associated with an activity. They don't have to have a UI either. Just be careful how you add/remove/replace them or your back key navigation could get messed up pretty quick. I assume that you don't want the two master/detail fragment sets to be displayed at the same time: instead of swapping between them using a menu option why not consider a Tabbed interface: http://developer.android.com/design/building-blocks/tabs.html? On Friday, November 16, 2012 11:39:29 PM UTC-5, Ram wrote: I want to create an activity which has dropdown in action bar.The dropdown options are Show List1 and Show List2. The onChange event of this dropdown should change the content area of the Activity. So I plan to use fragments. 1) Is it possible to add two master-details fragments in a Single Activity(list1 master-detail fragments and list2 master-detail fragments)? 2) Is it good practice to create a multiple fragments in a single activity? Note: I want to develop a single .apk for both mobile and tablets from version 2.2 to 4.2. -- BY R.RAMPRASAD -- 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: Most Efficient Way to Insert 5000+ Contacts
Don't do it in Android. Use your WebService to sync the desktop application contacts to a Google contact list using the Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/). You can add a specific label to tag them to your application and even extend the tables if you wish. Once the updates are done on the server side the stock Google synchronization service works really well to sync them automatically down to the phone/tablet - with the added advantage that they will be automatically available and kept up to date on all devices when they connect. As far as I am aware there is no published volume or rate limit on this API - but I would be surprised if it was less than the 10k per day allowed for calendar and tasks. Nick On Tuesday, November 13, 2012 7:34:25 PM UTC-5, prestona wrote: I'm developing an application where a user can initially sync all his contacts with a desktop application OTA. This is done through a web service call that grabs a set of 100 contacts from the server, downloads and parses the information, inserts the contacts into the Android Contact DB, acknowledges receipt of these contacts, and then repeats the previous steps with the next set of 100 contacts until the sync is complete. This process works well when a user has contacts on the order or 1000-2000, but a typical user of this application can easily have 5000-6000 contacts (with power users having upwards of 1+) in which case things take far longer than I'd like. For example, a sample set of approximately 5300 contacts can take about 13.5 minutes to complete. Not bad, but I'd like it to be at least as efficient as iOS which runs about 8 minutes for the same data set if possible. I've logged the time it takes for each step and, unsurprisingly, the bottleneck appears to be with inserting the data into the Android contract DB. After scouring the web I've found little help with regards to inserting thousands of contacts, but what I have found seems to fall into these three groups: 1) ContentProviderOperation -- The Google recommended way which gave me my baseline of 13.5 minutes for 5300 contacts. 2) Bulk Inserts -- I read that buildInsert tends to be more efficient than applyBatch, but when I tried to implement this myself it actually took 25 minutes for the same 5300 contacts. I have a feeling a lot of this is due to the fact that I need to insert the RawContact information and then save the resulting URI for use in creating the ContactsContract.Data for the bulkInsert which comes more naturally via the backValueReference in the ContentProviderOperation. Additionally, I looked at the source code and I don't get the feeling that bulkInsert is terribly efficient. 3) Creating an optimized bulk insert using the DatabaseUtils.InsertHelper and transactions -- Unfortunately, this seems geared towards those people who created their own content provider because you need access to the underlying DB as an instance variable and I've yet to see how that could be done with the native contacts DB. Does anyone have any experience with inserting 5000+ contacts or any possible ideas I could look into to help reduce my time? Or should I consider the ContentProviderOperation to be as optimized as it's going to get? 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] Geocoder and Geocode Web Service availability/performance issues
Hi there... I have a reasonably successful Android app that is heavily geo biased. Within the app I use both the Geocoder class (getFromLocationName()) and also Maps API v3 geocoding search and the Maps API Geocode web service. The reason I use both is because every couple of months the Android Geocoder class just goes AWOL and a group of my users endure horrible performance and variable responses to their queries so I need a backup. Unfortunately its rarely the same group of users each time and doesn't seem to happen in a specific area. I used to suspect it was problems with the carrier backend connecting to the Google servers or the users local data connection that was the issue. It was never a huge problem as it seemed to usually resolve itself pretty quick or I could always ask them to swap to the web service as a backup. Over the last few months though the problem seems to have become endemic - and it also seems to have spread to the web service. It is causing me a lot of headaches and adverse feedback for my app. I'm now suspecting that Google must be doing some sort of major overhaul of their infrastructure (at least in N America). I have noticed that the map tiles seem to have been spruced up a bit and there is a new new 'sort of google' app Field Trip that appears to be a field trial for a new Android Maps API (about time too). Has anyone else been experiencing similar disruption and/or does anyone have the inside track on what could be causing the problems? Nick (I cross-posted this note to the Google Maps API Web Services group) -- 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: Menu icon contrast
ok but be careful. some manufacturers have skinned the same version of Android with opposite menu background colors. from memory i would compare Samsung and HTC on 2.3. On Monday, October 1, 2012 7:55:01 AM UTC-4, andrewg_oz wrote: OK. Thanks for the various suggestions. I'll think about things a little more, but it seems UgglyNoodle's suggestion is going to end up being the best. It looks like I should be able to do nice white icons for Honeycomb+ and my existing light gray for everything else. Thanks to all! Andrew -- 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: Menu icon contrast
there is no good solution pre 3.0you are at the mercy of whatever useless skinning the manufacturer did to any particular handset. I suspect it's the main reason Google introduced holo light and holo dark with the insistence that the basics of these themes are not messed with. whilst that is fine going forwards there is no relief for earlier platforms. from what I can see it's just not talked about on the assumption that eventually everyone will be off the earlier versions and the problem will just go away. I looked into styling the options menu a month or so back and got some really useful help from folks in this group. the best I could get to was to sample the menu background to work out the color: potentially I could then have displayed appropriately contrasted resources. I didn't take this path because it was too hackish. I eventually ended up creating a set of menu icons that were a silhouette against a rounded colored square. The color of the background square was chosen to contrast nicely agains a light or dark menu background and my icon contrasted nicely with the squares. One of the iterations the the Google Market app took the same approach themselves: they had white icons with a sort of blurry outline around each of them. At the time I couldn't work out why they had done this as the icons looked sort of funky - but in hindsight I see that they then worked against light or dark menu backgrounds. unfortunately the client didn't like it so we ended up forcing the overflow menu to appear in ActionBarSherlock. And before you ask, the actionbar overflow menu cannot be styled - by design. On Saturday, September 29, 2012 9:36:40 AM UTC-4, andrewg_oz wrote: Thanks. Platform version sounds good in theory, but my Gingerbread (v2.3.3) emulator is light-on-dark, while my Gingerbread (also v2.3.3) phone is dark-on-light. How reliable is the emulator for this? I've also heard that menus can't be styled, but I'll look further into that. Are there no system calls that can help here? Query the current display settings or something? Cheers, Andrew -- 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 READ the option menu text color
Hi Kostya... the client already rejected my previous approach which involved inspecting a drawable. I've finally given them the option of either using ActionBarSherlock and forcing the use of the overflow menu or developing some custom icons that will work with both a white or black option menu background. I mocked up some samples today using their existing custom icon on top of a white rounded rectangle and they actually look quite good. Thanks very much for the help and advice though - much appreciated. Nick On Friday, August 3, 2012 6:26:10 PM UTC-4, Kostya Vasilyev wrote: 2012/8/3 Spiral123 OK...my second attempt to find the device value of textColorPrimaryDisableOnly: [snip] My attempt at reflection didn't seem to work either: Class myClass = Class.forName(android.R$styleable); int mTextColor = myClass.getField(Theme_textColorPrimaryInverse).getInt(myClass); You keep trying to get the value of textColorPrimaryDisableOnly from the current theme... which mixes up cause and effect (source and target in a reference). But that's irrelevant, because: I did a bit of checking and found that style name=Widget.TextView.PopupMenu is really just for popup menus, which use a white background even on 2.3 (where the option menu uses a black background... in the stock platform). The option menu gets its values from a style that's not exposed in the SDK, and whose resource Id is thus not guaranteed to be the same, even if you used it directly. Looking for the background 9-patch was no more successful - I couldn't find where menu_background_fill_parent_width.9.png is stored. It's referenced from the theme as an attribute, called panelFullBackground, and publicly available since API 1. In XML, you'd write something like: ImageView ... android:src=?android:attr/panelFullBackground ... / In code, use something like this: TypedArray a = obtainStyledAttributes(new int[] { android.R.attr.panelFullBackground }); Drawable d = a.getDrawable(0); a.recycle(); And to verify, use something like this: ImageView iv = (ImageView) findViewById(R.id.test_menu_background); iv.setImageDrawable(d); The images I'm getting (2.2 and 2.3 emulators) are pure white / pure black with slim borders, so it should be really easy to tell them apart. -- K -- 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 READ the option menu text color
OK...my second attempt to find the device value of textColorPrimaryDisableOnly: TypedArray a = getTheme().obtainStyledAttributes(android.R.style.Theme, new int[] {android.R.attr.textColorPrimaryInverse}); int attributeResourceId = a.getResourceId(0, 0); int menuTextColor = getResources().getColor(attributeResourceId); String strMenuTextColor = Integer.toHexString(menuTextColor); This unfortunately returns the same value on all devices. My attempt at reflection didn't seem to work either: Class myClass = Class.forName(android.R$styleable); int mTextColor = myClass.getField(Theme_textColorPrimaryInverse).getInt(myClass); Looking for the background 9-patch was no more successful - I couldn't find where menu_background_fill_parent_width.9.png is stored. I did find android.R.drawable.ic_menu_more (the 'more' button that shows up if you have 6 menu items). I can sample the pixels on this and - hooray! - the color range is different. Unfortunately not different enough to be unambiguous in all situations and the approach is too wacky for comfort anyway. Anyone have any other ideas for reading the value of textColorPrimaryDisableOnly? On Thursday, August 2, 2012 7:29:59 PM UTC-4, Kostya Vasilyev wrote: 03.08.2012 3:00 пользователь Spiral123 написал: Thanks Kostya, it looks like Widget.TextView.PopupMenu leads to textColorPrimaryDisableOnly. It does in the stock platform, but not necessarily on other devices. It could be @color/your_eyes_will_bleed_from_this_magenta on some especially colorful one :) If I try to read the value of this using the code: TypedValue value = new TypedValue(); getTheme().resolveAttribute(android.R.attr.textColorPrimaryDisableOnly, value, true); int menuTextColor = getResources().getColor(value.resourceId); I get the same value if I try a Samsung phone or an HTC phone (which have white and black option menu backgrounds). Of course you do - you're reading the value of textColorPrimaryDisableOnly attribute from the activity's theme. Try getting the textAppeareance attribute from the style (name spelled out below), not from the theme. I think the menu_background_fill_parent_width leads to a 9-patch png and I'm not sure which pixel to pull out of it and how to do that in order to read its color. That would be my plan B. Isn't there some sort of getPixelColor on a nine patch drawable? If not, try rendering it to a canvas and reading a pixel value from there. Again, you will want to get this drawable from the style - a manufacturer could keep the original drawable in place, add a new one, and change the reference (style attribute). On Thursday, August 2, 2012 4:35:16 PM UTC-4, Kostya Vasilyev wrote: Take look in the platform's styles.xml and themes.xml. These sound somewhat promising: style name=Widget.TextView.PopupMenu item name=android:clickabletrue/item item name=android:textAppearance@style/TextAppearance.Widget.TextView.PopupMenu/item /style style name=Widget.PopupMenu parent=Widget.ListPopupWindow /style Looking in PhoneWindow.java (in the framework, under base/policy/src/...) should be useful too - the legacy (pre-action bar) menu implementation is here. And I just looked there myself, and it looks like the code uses this attribute from the current theme: item name=panelFullBackground@android:drawable/menu_background_fill_parent_width/item ... and so it makes sense that this attribute has the same value (as above) in the legacy and both Holo themes (I've got 4.1.1 sources open right now). -- K 2012/8/3 Spiral123 Hi all... Scratching my head here, need some help. I'm trying to read the option menu text color for the running device. I'm not interested in trying to override the system menu behavior or anything funky, my theory is that if I know what color the text is (or the menu item background) then I will be able to display a custom dark or light menu icon set for my options depending on how the manufacturer has themed the option menu on their particular device. I don't mind if I need to look internally to source variables as I'm only interested in getting this for the 2.2 and 2.3 platforms: 2.1 and below is not targeted and I'm not interested in displaying icons in the 3.0 overflow menu. If I know how to get the value I can make sure that my code won't break regardless of platform. Anyone been down this road before? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to READ the option menu text color
Hi all... Scratching my head here, need some help. I'm trying to read the option menu text color for the running device. I'm not interested in trying to override the system menu behavior or anything funky, my theory is that if I know what color the text is (or the menu item background) then I will be able to display a custom dark or light menu icon set for my options depending on how the manufacturer has themed the option menu on their particular device. I don't mind if I need to look internally to source variables as I'm only interested in getting this for the 2.2 and 2.3 platforms: 2.1 and below is not targeted and I'm not interested in displaying icons in the 3.0 overflow menu. If I know how to get the value I can make sure that my code won't break regardless of platform. Anyone been down this road before? 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 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 READ the option menu text color
Thanks Kostya, it looks like Widget.TextView.PopupMenu leads to textColorPrimaryDisableOnly. If I try to read the value of this using the code: TypedValue value = new TypedValue(); getTheme().resolveAttribute(android.R.attr.textColorPrimaryDisableOnly, value, true); int menuTextColor = getResources().getColor(value.resourceId); I get the same value if I try a Samsung phone or an HTC phone (which have white and black option menu backgrounds). I think the menu_background_fill_parent_width leads to a 9-patch png and I'm not sure which pixel to pull out of it and how to do that in order to read its color. On Thursday, August 2, 2012 4:35:16 PM UTC-4, Kostya Vasilyev wrote: Take look in the platform's styles.xml and themes.xml. These sound somewhat promising: style name=Widget.TextView.PopupMenu item name=android:clickabletrue/item item name=android:textAppearance@style/TextAppearance.Widget.TextView.PopupMenu/item /style style name=Widget.PopupMenu parent=Widget.ListPopupWindow /style Looking in PhoneWindow.java (in the framework, under base/policy/src/...) should be useful too - the legacy (pre-action bar) menu implementation is here. And I just looked there myself, and it looks like the code uses this attribute from the current theme: item name=panelFullBackground@android:drawable/menu_background_fill_parent_width/item ... and so it makes sense that this attribute has the same value (as above) in the legacy and both Holo themes (I've got 4.1.1 sources open right now). -- K 2012/8/3 Spiral123 Hi all... Scratching my head here, need some help. I'm trying to read the option menu text color for the running device. I'm not interested in trying to override the system menu behavior or anything funky, my theory is that if I know what color the text is (or the menu item background) then I will be able to display a custom dark or light menu icon set for my options depending on how the manufacturer has themed the option menu on their particular device. I don't mind if I need to look internally to source variables as I'm only interested in getting this for the 2.2 and 2.3 platforms: 2.1 and below is not targeted and I'm not interested in displaying icons in the 3.0 overflow menu. If I know how to get the value I can make sure that my code won't break regardless of platform. Anyone been down this road before? 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 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] Regarding Application is not installed alert
What is 'plz'? Is it some sort of insult? I'm thinking of doing something similar. I haven't researched it yet but my planned approach is to do something in the child app to check the calling intent rather than your approach. -- 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] Are my Apps now in the USA Google Play? I have my doubts.
yes Justin... All three of your apps are visible in the US. I wouldn't be surprised if they had been automatically downloaded so don't expect many support questions. On Monday, July 23, 2012 3:08:55 PM UTC-4, John Mollaghan wrote: Hi Justin, Thanks for your reply. I take your points about the appeal of the Irish apps, I wouldn't expect people in the USA to download these. However, the people in the UK would see the same number of temp converter apps as the people in the USA, yet 20 of them have installed it. I just find it strange that given the relative populations, the USA should have more installs than the UK. Could you install my Oven Temp app please and then I should see it show up in my stats. I am just wondering if people have installed it and google is not reporting it maybe? You don't even need to leave it on your phone for long, it would still show up as an install (just not an active one). Then at least I'll know that it is installable from the USA. Thanks a million, John On Monday, 23 July 2012 18:34:23 UTC+1, MagouyaWare wrote: I see the following apps: 1. Irish Postage Calculator 2. Oven Temperature Converter 3. Bandon Flood Early Warning Two of your three apps are specific to Ireland... I doubt many people in the US are going to install those. As for the temp converter, there are a huge number of temp converters out there... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware -- 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: manage caching MapView. Is it violation of Terms?
as a rule of thumb: if you have to ask if it's legal, it probably isn't. I'd recommend you look into OSM. Here is a link to get you started: http://wiki.openstreetmap.org/wiki/Tile_usage_policy On Monday, July 23, 2012 7:58:12 AM UTC-4, Capitan wrote: Developing Android application with GoogleMaps API, I found that sometimes MapView caches some tiles in app's data folder('/data/data/package_name/files'). These files are 'DATA_Tiles', 'DATA_Tiles_1', 'DATA_Tiles_2', ... Each file 'DATA_Tiles_%n' contains some JPEGs or PNGs and their coords. File 'DATA_Tiles' contains common information about files 'DATA_Tiles_%n'. I am very interested in the possibility of using my app offline. My app needs only small area of map, so I can include this cached area in 'assets', thereby providing offline work of MapView in my app. I want to know, is it legal? Is it violation of Terms? https://developers.google.com/maps/terms 10.1.3(b) No Pre-Fetching, Caching, or Storage of Content. You must not pre-fetch, cache, or store any Content, except that you may store: (i) limited amounts of Content for the purpose of improving the performance of your Maps API Implementation if you do so temporarily, securely, and in a manner that does not permit use of the Content outside of the Service; and (ii) any content identifier or key that the Maps APIs Documentation specifically permits you to store. For example, you must not use the Content to create an independent database of places or other local listings information. I have read this, but I don't understand can I legally use cache in Android app. May be do you know, where can I contact with developers of android.map library? Thank you for answers. -- 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] Upload files to Google Drive
Has anyone seen any evidence of an Android API for Google Drive yet? As I remember from reading the developer info when it first became available you can only use the SDK for apps registered in the Chrome store. Nick On Thursday, May 17, 2012 11:52:52 AM UTC-4, MagouyaWare wrote: https://developers.google.com/drive/ Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, May 17, 2012 at 6:11 AM, Italo Mendonça Rocha ital...@gmail.comwrote: Hello, Does anyoane know how to upload files from Android to Google Drive programmatically? Thanks in advance. -- 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
Re: [android-developers] Re: ICS don't give you a real multitasking.
sblantipodi is either a troll, a terminal whiner or both. consider some of his finest threads from the last 12 months or so: - Google lost vs Oracle. - Android isn't able to manage a PDF, this is bad. - Image CoverFlow not working fine with Android 4.0 - Hardware accleration slow down every Canvas app. Why? - My canvas is too slow when hardware acceleration is enabled. - SDK Manager update fails every time - Android SDK is the must buggy SDK in the entire mobile ecosystem. - Galaxy Nexus can't go in USB Host mode, no mouse no usb stick. don't rise to the bait folks. -- 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: Fragment problems (converting an app)
Hi Bas, I didn't debug your code, but just as an ideawhy not put your dialog in a separate activity themed as a dialog that just extends a regular activity or listactivity? I do that all the time in my app. just because you are working with fragments doesn't mean that everything needs to be a fragment. Nick On Saturday, April 28, 2012 2:05:45 PM UTC-4, Bas Verhoog wrote: No ideas? :( I really need some help here... -- 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 writing to file and Upload it to server
I think the correct spelling is plz. On Friday, April 27, 2012 1:02:18 AM UTC-4, android developer wrote: Hi Good morning all. Android writing to file and Upload it to server , pls help me on this issue. Thanks and regards -- 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: getAuthToken not working is ICS
Works fine for me on 4.0.3. I'm using APi Level 13 (not because of problems with oAuth). On Mar 20, 11:12 pm, he.cao caohe...@gmail.com wrote: hi all My app use account manager to share auth token and it works fine in early 4.0. But when i try the app in my Nexus S (4.0.3) , NPE occurs every time i call the getAuthToken method. Stack trace as follows: E/AndroidRuntime( 5282): java.lang.RuntimeException: Unable to start activity ComponentInfo{android/android.accounts.Gra ntCredentialsPermissionActivity}: java.lang.NullPointerException E/AndroidRuntime( 5282): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime( 5282): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime( 5282): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime( 5282): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime( 5282): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 5282): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 5282): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime( 5282): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5282): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 5282): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 784) E/AndroidRuntime( 5282): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime( 5282): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 5282): Caused by: java.lang.NullPointerException E/AndroidRuntime( 5282): at android.accounts.GrantCredentialsPermissionActivity.onCreate(GrantCredentia lsPermissi onActivity.java:84) E/AndroidRuntime( 5282): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime( 5282): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime( 5282): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime( 5282): ... 11 more W/ActivityManager( 151): Force finishing activity android/.accounts.GrantCredentialsPermissionActivity But, when i get google's AuthToken, it works fine. My question is : Are there something wrong in my code and how can i fix it? Or it is a bug in android and it will be fixed later? thx -- 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: Please can i have source codes for tictactoe game for android?
try doing a Google search for 'ContactsContract' examples and you should find more recent tutorials that will help you. On Mar 18, 3:07 am, akhil raval akhil.andr...@gmail.com wrote: dear friend i want to fetch ma contact inbox with name and number as simple as possible it's urgent i m going threw below code but i can able to find only name not number plz it's urgent to get help u frnds public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] projection = new String[] { People._ID, People.NAME }; Cursor cursor = managedQuery(People.CONTENT_URI, projection, null, null, People.NAME + ASC); ListAdapter adapter = new SimpleCursorAdapter( this, android.R.layout.two_line_list_item, cursor, new String[] { People._ID, People.NAME }, new int[] { android.R.id.text1, android.R.id.text2 } ); setListAdapter(adapter); getListView().setOnItemClickListener(this); } public void onItemClick(AdapterView? adapterView, View view, int position, long id) { Uri contactUri = ContentUris.withAppendedId(People.CONTENT_URI, id); Intent intent = new Intent(this, ContactDetails.class); intent.setData(contactUri); startActivity(intent); } } Ever+ Never- @kh!l R@v@l (+91-96388-66691) (+91-74052-63600) -- 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: Help me on selecting a name to a game..
Whale Wars On Mar 6, 9:01 pm, Fred fredrisch...@gmail.com wrote: Hi Everybody, I'm developing a android game and i'm urgently needing to define a name to this game.. can you help on choosing the name? If you have 1 minute to check it up, please just choose the wanted names here: https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk... Thanks a lot, Fred -- 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 many people are using ActionBarSherlock?
I use it. It's great - thanks Jake. Nick On Mar 6, 11:40 am, Jake Wharton jakewhar...@gmail.com wrote: From my estimation there are *at least* 100-250 small applications published to Market that are using it. Of course, I only know about the ones people tell me about and can estimate from things like the activity on the Google group. There are a couple of (arguably) big names that also use it with multi-million install user bases such a FriendCaster and FolderOrganizer which have been using it for a while. GitHub recently started releasing Android applications and they have chosen to use it. I'm also aware of a few upcoming applications from seriously big companies that will be using the forthcoming version 4.0. On Sunday, March 4, 2012 8:13:05 PM UTC-8, Mark Phillips wrote: I am curious as to how many folks on the list are using ActionBarSherlock versus rolling their own or some other library for pre 3.0 applications? Thanks, Mark -- 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: Request for Ideas: how to handle a major upgrade to my App
...Wait a week or a month, or whatever, then drop the bomb. They can't say you didn't warn them. The old 'tough love' approach. Not a bad idea, and if I'd only had the sense to build a decent customer communications method into my app like you did it could have been feasible. -- 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: Request for Ideas: how to handle a major upgrade to my App
Interesting, hadn't thought of in-app purchases. That may work as well because I currently have a Free version of the app and two separate Paid versions (all build from the same codebase though). Having an In-App purchase would be neat. There is a downside though: the paid version of my app is very highly rated because the folks who buy it (generally) understand what it is for and how to use it...the ratings for the Free version suffer from the normal idiot pollution that affects many free apps. Will need to think about that. On Feb 27, 3:20 pm, John Coryat cor...@gmail.com wrote: Here's a way you can migrate your paid users... Release your new app as free with in-app purchase and create a way to use an unlock code. You'll need a server interface to check the validity of the code and a way of telling your existing customers about it. Using an unlock code will make it possible for paid users to download your new free app and use it without having to pay again. -John Coryat -- 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] Request for Ideas: how to handle a major upgrade to my App
Hi All... I'm working on v2 of my app. Although the basic operation of the app is the same, it is very different in terms of appearance and UI interaction (much better - I think!). I've got a couple of thousand users who rely on the app on a daily basis as a key part of their jobs and I'd like to be able to offer them the opportunity to migrate to the new version at a time that suits them rather than suddenly forcing them to learn the new ways of doing stuff. - although much of what happens 'under the covers' is the same as the current app, the UI is very different. I can't gradually enhance v1 to become v2, it's going to be a step change - I don't want to post v2 as an update to the existing apk in the market: most of the users are so loyal they will just upgrade without thinking and for many of them the change will be a shock! - I'd really like to post v2 as a new package in the market - I don't care too much about transferring the feedback, but I'd like to have some way that I can move over the folks who have purchased the app without requiring them to pay again. any ideas/recommendations/experiences from the community? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Waypoints with Google Maps API
study the MyTracks source. On Jan 29, 3:29 pm, alexslx alex_...@msn.com wrote: Hi folks, I'm searching in the web how to trace route with multiple waypoints, but i just found how to do it using Google Maps API for web (javascript). I also looked for gmaps android api, but didn't found nothing. I want to trace an route that my device is going, via GPS. Someone knows where i can find some tech details how to do it, or some example? -- 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 identify on which marker user had taped
Google 'Android MapView Balloons' On Jan 26, 2:37 am, ripal hiral ripalhi...@gmail.com wrote: I want that on taping particular marker I want to show Balloon Like in Google map we have When User tap on Particular marker Balloon containing Info related to that Geo point is display .. I am new in Android can any one Help 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] ClassCastException Problem with custom ListView in a ListFragment
Hi All... as part of updating my app I've decided to drag it into the 21st century and implement Drag and Drop on my ListView Fragment. Noodling around for an easy way to do it I came across Mark Murphy's super handy TouchListView library as adapted from TouchInterceptor from the stock Music app. I tried it out and the library works great in a regular app, but for some reason it refuses to work within any ListFragment. The line: TouchListView tlv=(TouchListView)getListView(); always causes a ClassCastException: 01-17 11:53:43.705: E/ AndroidRuntime(25113): Caused by: java.lang.ClassCastException: android.widget.ListView cannot be cast to com.commonsware.cwac.tlv.TouchListView Needless to say TouchListView extends ListView. I spent some time working through this and in my testing I've found that: - It's nothing to do with TouchListView - creating my own custom ListView (that doesn't override anything from core) will generate the same error - It's not just my app: attaching the TouchListView library to the Google API Demos app and inserting the (TouchListView)getListView() in the FragmentsListArray code generates the same error. --- Does anyone else see the same problem - or am I being blindingly stupid (again!) 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ClassCastException Problem with custom ListView in a ListFragment
Hi Mark... I can see the problem both with the compatibility library (I use a customized ActionBarSherlock version so that was my initial suspect) and with native fragments. You can easily see the behavior with native fragments if you add the TouchListView library to the APIDemos project and just add a couple of lines to the FragmentListArray.java class: public static class ArrayListFragment extends ListFragment { @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setListAdapter(new ArrayAdapterString(getActivity(), android.R.layout.simple_list_item_1, Shakespeare.TITLES)); ListView lv = getListView(); // works fine TouchListView tlv = (TouchListView)getListView(); // ClassCastException } @Override public void onListItemClick(ListView l, View v, int position, long id) { Log.i(FragmentList, Item clicked: + id); } } Nick On Jan 17, 12:10 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jan 17, 2012 at 12:03 PM, Spiral123 cumis...@gmail.com wrote: as part of updating my app I've decided to drag it into the 21st century and implement Drag and Drop on my ListView Fragment. I'm not convinced that drag-and-drop is necessarily tied to being part of the 21st century. :-) Noodling around for an easy way to do it I came across Mark Murphy's super handy TouchListView library as adapted from TouchInterceptor from the stock Music app. I tried it out and the library works great in a regular app, but for some reason it refuses to work within any ListFragment. The line: TouchListView tlv=(TouchListView)getListView(); always causes a ClassCastException: 01-17 11:53:43.705: E/ AndroidRuntime(25113): Caused by: java.lang.ClassCastException: android.widget.ListView cannot be cast to com.commonsware.cwac.tlv.TouchListView Needless to say TouchListView extends ListView. I spent some time working through this and in my testing I've found that: - It's nothing to do with TouchListView - creating my own custom ListView (that doesn't override anything from core) will generate the same error - It's not just my app: attaching the TouchListView library to the Google API Demos app and inserting the (TouchListView)getListView() in the FragmentsListArray code generates the same error. That's strange. Are you using the Android Support package, or native fragments? And, can you put together a sample app that demonstrates the problem, so I can try it out here? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 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: ClassCastException Problem with custom ListView in a ListFragment
wow. creating the View in the OnCreateView() before using it - how smart is that? works great Mark, thanks! Nick On Jan 17, 12:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jan 17, 2012 at 12:31 PM, Spiral123 cumis...@gmail.com wrote: You can easily see the behavior with native fragments if you add the TouchListView library to the APIDemos project and just add a couple of lines to the FragmentListArray.java class: I realize now that I misread your original question. If you want a ListFragment to use a TouchListView, you need to override onCreateView() and return a TouchListView, or a layout that contains TouchListView with @android:id/list. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 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: Raster Image/Map and GPS location
Search for OSM. On Jan 14, 7:47 am, Rustam K. rkovh...@gmail.com wrote: Hello, I am new to maps and geo apps, and need some guidance please. I need to get a location and put the marker on the PNG image. I don't need zoom or anything like that. Do I need to create a table/list like pixel on image-gps coordinates? or how would you resolve this task? BTW, Is there any documentation/guidelines on designing your own map application with developing of your own maps? Cheers, Rustam -- 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 waiting problem.
1. Appreciate that English is probably not your first language, but plz dnt mk it evn hrdr fr ppl to read you posts by contracting words. 2. Good that you have the whole code already. If you are having a problem with it can you post a section of the LogCat where it falls over or a (small) snippet of the source that shows where you are having a problem? Then you will have a better chance of a positive response. thanks On Jan 13, 6:10 am, Dhaval Varia dhavalkva...@gmail.com wrote: jstmind ur buisness... i m having whole code...trying since last 3days.then asked qustion.. i m sending email having that address...dt time my app got stuck...not responding. i m jst trying to know,whats wrong in my code.. dnt blame any one.without knowing everything sorry for hard words... On Jan 13, 2012 1:49 PM, Ali Chousein ali.chous...@gmail.com wrote: You are basically looking for someone who is going to do all the job for you and you'll have all the credit. Try registering to any product-managers group or change your profession. On Jan 13, 4:25 am, Dhaval Varia dhavalkva...@gmail.com wrote: i am writing one app. in which 1. gps find lat long by calling update location 2. using this find address. this function calles in updatelocation my que is: update location called periodically. it will call fun for getting address,inturn. i dont want to call fun of getting address periodically. it should call only once,after getting lat long. plz help. Plz let me know how to start progressbar,start before calling updatelocation and stop after getting addreas. -- 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] Re: gps waiting problem.
that is not a snippet. Problem is : 1. UpdateRemove doesn't work. I can't see any reference to 'UpdateRemove' in your code. what is the error in the LogCat and what line of code does it happen at? 2. I need to do following thing : - Get Address Once (By calling getaddress()), - After Getting Address,UpdataLocation function should not call. -- so, Address will set Once Timer should stop Application Finish() / Close errr...well that is a statement, not a question. What is your 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: gps waiting problem.
wh d u kp drppng ltrs? I thnk ths pst answrs ur que: http://stackoverflow.com/questions/5895283/locationlistener-and-timers On Jan 13, 12:24 pm, Dhaval Varia dhavalkva...@gmail.com wrote: my que is in this code locationmanager.removeupdate() Has called, but still getaddress() is calling for few times. i think after locatiomanager.removeupdate() , onlocationchange() should mot call.right? bt it is calling. inturn, getaddress() is calling for few time. I want that getaddress() should not call after having address,based on lat-long. What to do? On Jan 13, 2012 10:38 PM, Dhaval Varia dhavalkva...@gmail.com wrote: my que is in this code locationmanager.removeupdate Has called but getaddress is calling few time. i think after remove it, onlocationchange should mot call.right? bt it call. inturn,getaddress is calling for few time. I dnt want to call after having address from lat-long. What to do? On Jan 13, 2012 10:17 PM, Spiral123 cumis...@gmail.com wrote: that is not a snippet. Problem is : 1. UpdateRemove doesn't work. I can't see any reference to 'UpdateRemove' in your code. what is the error in the LogCat and what line of code does it happen at? 2. I need to do following thing : - Get Address Once (By calling getaddress()), - After Getting Address,UpdataLocation function should not call. -- so, Address will set Once Timer should stop Application Finish() / Close errr...well that is a statement, not a question. What is your 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 -- 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 can i add pin google maps one more time?
put some breakpoints in your code and then run it in debug mode to ensure that: - your listener is getting called every time the map is touched (it probably is) - you are building the overlay correctly after each touch (possibly not) - you do an invalidate() or postInvalidate() on the mapView at the right time to force it to redraw (probably not) On Jan 6, 3:10 am, Duygu Kahraman duygu.kahram...@gmail.com wrote: I have problem about google maps.I want to add pin when i touch the maps .I used this post when i do project.(http://codemagician.wordpress.com/2010/05/06/android-google-mapview-t...) My problem is i can add pin just one time.But i want to add a lot of time.I dont understand what is problem.Can anybody help me? my code is here: package com.example; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import com.google.android.maps.*; import java.util.List; public class HelloGoogleMaps2 extends MapActivity { MapView mapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); mapView.setSatellite(true); mapView.isClickable(); mapView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View view, MotionEvent motionEvent) { return onTouch2(view,motionEvent); } }); } public boolean onTouch2(View view, MotionEvent motionEvent) { if (motionEvent.getAction() == 0) { GeoPoint p = mapView.getProjection().fromPixels( (int) motionEvent.getX(), (int) motionEvent.getY()); AddMyPin(p); } return false; } @Override protected boolean isRouteDisplayed() { return false; } public void AddMyPin(GeoPoint point) { ListOverlay mapOverlays = mapView.getOverlays(); Drawable drawable = this.getResources().getDrawable(R.drawable.bubble); HelloItemizedOverlays itemizedoverlay = new HelloItemizedOverlays(drawable,this); OverlayItem overlayitem = new OverlayItem(point,null,null); itemizedoverlay.addOverlay(overlayitem); mapOverlays.add(itemizedoverlay); } } -- 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: ICS and getAuthToken() problem - using Google APIs
thanks for the response. I actually do something similar to what you are suggesting. The getAuthToken blocks nicely, but as soon as I fire off the startActivityForResult(intent,REQUEST_AUTHENTICATE) then I get a Permission request dialog on the screen and meanwhile the calling activity gets destroyed. When I respond to the Permission dialog the app goes back thru onCreate and everything gets worse from there on. Running the exact same code on a Honeycomb or lower device everything works perfectly fine. I'll try it on an emulator next to see if that works better (although I never seem to have any luck in setting them up). Nick On Jan 3, 9:11 am, H m...@howardb.com wrote: If you set the callback parameter on the getAuthToken() to null then the method will block and wait and your activity's lifecycle isn't interrupted. You can then get the bundle returned and if there is an intent to ask show the grant credentials screen then you can manually invoke it with startActivity or the other startActivityForResult. I've just tried it on my app in the 4.0 emulator and if I disallow the credentials screen (=no thanks), nothing unexpected happens (other than a crap load of strictmode exceptions). HTH. On Jan 2, 8:09 pm, Spiral123 cumis...@gmail.com wrote: it gets stranger. In Honeycomb and earlier the app fires off the getAuthToken() request on another thread and then goes into onPause() whilst it waits for the authentication to happen asynchronously. In Ice Cream Sandwich the app goes into onPause(), then onStop() then onDestroy(). Then the app fires up an onCreate() again and launches a second authentication thread before the first has completed. I guess the lifecycle does stipulate that the activity should always be prepared to recreate itself cleanly in case the system destroys it - maybe ICS is more aggressive in doing that than previous versions of Android...any comments or experiences from anyone else? Also, I suppose I now need to look at SingleThreadExecutor to block unwanted additional auth requests being generated from the activity. Does anyone have any better ideas? all the best, Nick On Jan 2, 11:16 am, Spiral123 cumis...@gmail.com wrote: Hi all Just got my new Galaxy Nexus phone with ICS before New Years and have been playing around with the old and new (in development) versions of my app on it. Whilst doing so, I've come across a problem that has me stumped: if I call getAuthToken() in my app to authenticate a new account to my Google API of choice and approve the request then everything works fine. If I disallow or hit the back key from the 'Permission request' dialog then the app goes into a tailspin and eventually fails with a leaked window. I spent a couple of hours looking at this and as far as I can tell ICS does not seem to be throwing the OperationCanceledException from the system-generated Permissions request dialog as it should. To verify the problem I've downloaded and replicated the issue with the Android Picasa Sample and the google-meeting-scheduler. The projects are set to API Level 14 Build Target. Has anyone else seen a similar behavior - or can anyone confirm that they don't have the same problem with their apps? I feel I must have had too much turkey over xmas and my addled brain has missed something obvious. 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ICS and getAuthToken() problem - using Google APIs
Hi all Just got my new Galaxy Nexus phone with ICS before New Years and have been playing around with the old and new (in development) versions of my app on it. Whilst doing so, I've come across a problem that has me stumped: if I call getAuthToken() in my app to authenticate a new account to my Google API of choice and approve the request then everything works fine. If I disallow or hit the back key from the 'Permission request' dialog then the app goes into a tailspin and eventually fails with a leaked window. I spent a couple of hours looking at this and as far as I can tell ICS does not seem to be throwing the OperationCanceledException from the system-generated Permissions request dialog as it should. To verify the problem I've downloaded and replicated the issue with the Android Picasa Sample and the google-meeting-scheduler. The projects are set to API Level 14 Build Target. Has anyone else seen a similar behavior - or can anyone confirm that they don't have the same problem with their apps? I feel I must have had too much turkey over xmas and my addled brain has missed something obvious. 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ICS and getAuthToken() problem - using Google APIs
it gets stranger. In Honeycomb and earlier the app fires off the getAuthToken() request on another thread and then goes into onPause() whilst it waits for the authentication to happen asynchronously. In Ice Cream Sandwich the app goes into onPause(), then onStop() then onDestroy(). Then the app fires up an onCreate() again and launches a second authentication thread before the first has completed. I guess the lifecycle does stipulate that the activity should always be prepared to recreate itself cleanly in case the system destroys it - maybe ICS is more aggressive in doing that than previous versions of Android...any comments or experiences from anyone else? Also, I suppose I now need to look at SingleThreadExecutor to block unwanted additional auth requests being generated from the activity. Does anyone have any better ideas? all the best, Nick On Jan 2, 11:16 am, Spiral123 cumis...@gmail.com wrote: Hi all Just got my new Galaxy Nexus phone with ICS before New Years and have been playing around with the old and new (in development) versions of my app on it. Whilst doing so, I've come across a problem that has me stumped: if I call getAuthToken() in my app to authenticate a new account to my Google API of choice and approve the request then everything works fine. If I disallow or hit the back key from the 'Permission request' dialog then the app goes into a tailspin and eventually fails with a leaked window. I spent a couple of hours looking at this and as far as I can tell ICS does not seem to be throwing the OperationCanceledException from the system-generated Permissions request dialog as it should. To verify the problem I've downloaded and replicated the issue with the Android Picasa Sample and the google-meeting-scheduler. The projects are set to API Level 14 Build Target. Has anyone else seen a similar behavior - or can anyone confirm that they don't have the same problem with their apps? I feel I must have had too much turkey over xmas and my addled brain has missed something obvious. 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 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 can i implement Feature Like “Precache Map Area” as like Google Map
well report to RD that you cannot leach off the back of Google to cache Maps for offline use in your app. You can also tell them that are other ways to achieve the same thing but that you don't understand the answers that at least 2 different people have told you in this forum. On Dec 13, 3:23 am, Saurabh Patel saurbh...@gmail.com wrote: Ya Sprial Thanks For Reply But Please Tell me Once Again i have to Report RD On this Part to ahead. so please Be Need Full here. On 13 December 2011 11:32, Spiral123 cumis...@gmail.com wrote: we have already answered this question in your other thread. On Dec 13, 12:22 am, Saurabh Patel saurbh...@gmail.com wrote: Can I Implement Feature Like `Cache Google Map Tile or Precache Map Area` which is in Google Maps? In Latest Google Maps Update, There is a option like `Precache Map Area` So i want to implement this Feature in My Own Application and on My Own Device. So can i Do this Using Google Android Open Source Code which is available on android Developer Website?? Basically want to see google map in offline mode, means i want to get Map from Cache Map Tile when GPRS or Wifi is not there. So can i save this google map tile to cache and use this map in future.?? Please Suggest me the way so if possible than i will proceed for next. Thanks Sameer Patel -- 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] Re: How can I cache Google Maps tiles using Android SDK?
No it is not a good way. As I said in my original response Google Map Tile information is copyright . It is possible to request the tiles directly from their tile servers but I wouldn't recommend it and I wouldn't tell anyone how to do it. If they catch you trying to do it I would at least expect them to stop your access and they could possibly even pull your app from the market on the grounds of copyright infringement. As the other poster says, there are other open sourced options to get map data. On Dec 12, 5:07 am, Saurabh Patel saurbh...@gmail.com wrote: Hi Here We can read Files of wifi.cache and cell.cache for Loading google map in Offline mode.? Please suggest me idea, i think one way for this May be If my device has root access than i can access files from /data/data/com.google.android.location/files and use this lat long for load the map in Offline mode. Its Good Way? Thanks Saurabh Patel On 11 December 2011 10:54, Spiral123 cumis...@gmail.com wrote: If you are talking about the offline storage of Google Map tiles in your own app then I can think of a possible approach - but I wouldn't even bother. It's not a service that Google provide and their data is copyrighted. Just think about how many tiles you will have to pull down for all the zoom levels - it gets to a pretty big number very quickly for a relatively small area. There are not that many Google tile servers to rotate the requests between...so even if you get away with it for a while I'm sure you will get spotted quickly and your requests refused. If you want to get into offline Maps then OSM (http:// www.openstreetmap.org/) is probably your best bet. There are a number of tile providers you can pick from - although not many will give you tiles without payment for a commercial application. If you are covering a limited Geographical area then you would probably be better off extracting the Geo information from somewhere like http://planet.openstreetmap.org/ and building and hosting your own tile server. It's not a trivial proposition. On Dec 10, 2:19 am, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: I want to implement Download map area http://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab...feature like official Google Map application. Is it possible or not? -- 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] Re: How can I cache Google Maps tiles using Android SDK?
I understand your question. And it has been answered already, but I'll give it one more try. Although it is technically possible you should not save google map tiles to cache and use for the future. It is explicitly forbidden by Google - and they own/license the data. You will need to use open source map data to meet your goal. You can either download the raw geo data and build your own tile server or you can use one of the existing free tile servers. Be careful how many zoom levels you will support as you are going to need an awful lot of tiles. I suggest you follow the links that have already been given in the thread and research OSM and mobile altas creator. On Dec 12, 11:15 pm, Saurabh Patel saurbh...@gmail.com wrote: Hi Thanks For Update We Can Implement Feature Like Cache Google Map Tile which is in Google Maps. I want to see google map in offline mode, means i want to get Map from Cache Map Tile when GPRS or Wifi is not there. So can i save this google map tile to cache and use in future.?? Please Suggest me the way so if possible than i will proceed for next. Thanks Saurabh Patel On 13 December 2011 03:56, Spiral123 cumis...@gmail.com wrote: No it is not a good way. As I said in my original response Google Map Tile information is copyright . It is possible to request the tiles directly from their tile servers but I wouldn't recommend it and I wouldn't tell anyone how to do it. If they catch you trying to do it I would at least expect them to stop your access and they could possibly even pull your app from the market on the grounds of copyright infringement. As the other poster says, there are other open sourced options to get map data. On Dec 12, 5:07 am, Saurabh Patel saurbh...@gmail.com wrote: Hi Here We can read Files of wifi.cache and cell.cache for Loading google map in Offline mode.? Please suggest me idea, i think one way for this May be If my device has root access than i can access files from /data/data/com.google.android.location/files and use this lat long for load the map in Offline mode. Its Good Way? Thanks Saurabh Patel On 11 December 2011 10:54, Spiral123 cumis...@gmail.com wrote: If you are talking about the offline storage of Google Map tiles in your own app then I can think of a possible approach - but I wouldn't even bother. It's not a service that Google provide and their data is copyrighted. Just think about how many tiles you will have to pull down for all the zoom levels - it gets to a pretty big number very quickly for a relatively small area. There are not that many Google tile servers to rotate the requests between...so even if you get away with it for a while I'm sure you will get spotted quickly and your requests refused. If you want to get into offline Maps then OSM (http:// www.openstreetmap.org/) is probably your best bet. There are a number of tile providers you can pick from - although not many will give you tiles without payment for a commercial application. If you are covering a limited Geographical area then you would probably be better off extracting the Geo information from somewhere like http://planet.openstreetmap.org/ and building and hosting your own tile server. It's not a trivial proposition. On Dec 10, 2:19 am, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: I want to implement Download map area http://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab.. .feature like official Google Map application. Is it possible or not? -- 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 -- 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 can I cache Google Maps tiles using Android SDK?
actually no it wasn't the way I was thinking of. On Dec 13, 12:40 am, Kristopher Micinski krismicin...@gmail.com wrote: Although it is technically possible you should not save google map tiles to cache and use for the future. It is explicitly forbidden by Google - and they own/license the data. But if you absolutely want to steal the data, the way you were thinking of doing it is reflecting the maps library? kris -- 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 can i implement Feature Like “Precache Map Area” as like Google Map
we have already answered this question in your other thread. On Dec 13, 12:22 am, Saurabh Patel saurbh...@gmail.com wrote: Can I Implement Feature Like `Cache Google Map Tile or Precache Map Area` which is in Google Maps? In Latest Google Maps Update, There is a option like `Precache Map Area` So i want to implement this Feature in My Own Application and on My Own Device. So can i Do this Using Google Android Open Source Code which is available on android Developer Website?? Basically want to see google map in offline mode, means i want to get Map from Cache Map Tile when GPRS or Wifi is not there. So can i save this google map tile to cache and use this map in future.?? Please Suggest me the way so if possible than i will proceed for next. Thanks Sameer Patel -- 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 can I cache Google Maps tiles using Android SDK?
If you are talking about the offline storage of Google Map tiles in your own app then I can think of a possible approach - but I wouldn't even bother. It's not a service that Google provide and their data is copyrighted. Just think about how many tiles you will have to pull down for all the zoom levels - it gets to a pretty big number very quickly for a relatively small area. There are not that many Google tile servers to rotate the requests between...so even if you get away with it for a while I'm sure you will get spotted quickly and your requests refused. If you want to get into offline Maps then OSM (http:// www.openstreetmap.org/) is probably your best bet. There are a number of tile providers you can pick from - although not many will give you tiles without payment for a commercial application. If you are covering a limited Geographical area then you would probably be better off extracting the Geo information from somewhere like http://planet.openstreetmap.org/ and building and hosting your own tile server. It's not a trivial proposition. On Dec 10, 2:19 am, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: I want to implement Download map areahttp://googleblog.blogspot.com/2011/07/download-map-area-added-to-lab...feature like official Google Map application. Is it possible or not? -- 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: Using google map api key for production
If the company paid for a google maps key then just contact your account manager at google and ask them. On Dec 7, 3:39 am, sandy sandhyasee...@gmail.com wrote: Hi, I have to develop an application which uses google maps. My company wants to deploy that application in its device. Do i need to have separate license from google to use the google map in our device? My company got a license from google for using the google maps key for a applciation to run in desktop for which they have paid. So for this android device also do we need to get a separate api key. Please help and reply ASAP. -- 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: list actvity is scrolling
Scrolling is an integral feature of list activity. is there a specific reason why your list should not scroll? maybe we can suggest an alternative approach. On Dec 3, 5:03 am, jaggu mjagadeeshb...@gmail.com wrote: Hi i used list actvity in my code but the list is scrolling . in my list shouldnt be scroll can any one tell 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=en
[android-developers] Reverse Geocode on the fritz (again)
Hi all It looks like issue 8816 service not available (http:// code.google.com/p/android/issues/detail?id=8816) has raised its ugly head again with the release of Google Maps 6 today. I'm running the same piece of Reverse Geocode code on Asus Transformer (3.2.1) and HTC Incredible (2.3.4) in my app (min SDK 6, target SDK 14) and finding that the Asus Transformer repeatedly throws i/o exception Service not Available. The HTC Incredible is reliably returning addresses. Is anyone else finding the same issue? Anyone got a decent workaround? (I know all about using Maps API Web Services thanks) Perhaps someone from Google could fix it whilst they are finishing off MapFragment? -- 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 find alternate routes for navigation and how to tell when user goes off path
well 2. is just geometry and math. Assuming that your http requests results in some kml that includes a polyline then personally I would build an array containing each line and then just work out the closest distance to each one from my current location every x seconds or y feet travelled. If you are further than a certain distance (which you have to decide) from ALL of the lines then you know that the user has taken a detour and you should simply resubmit a new routing request starting at your current location and ending at the original location. unless your kml has hundreds of polylines I'm not sure I'd even bother optimize the algorithm - just brute force it. I would be a little careful of what your app does though: you might want to read the Maps TOS license restrictions carefully to make sure you stay within them. On Nov 29, 9:49 pm, James Black planiturth...@gmail.com wrote: Hello, I am working on a navigation program and I have two things that could make my program better. 1. How can I find alternate routes. I use this url currently:http://maps.google.com/maps?f=dhl=ensaddr=xxx,zzzdaddr=yyy,wwwie=... 2. How can I tell when the user takes a detour from the path on the MathOverlay, so I can get a new route for them? Thank you. -- I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. - Robert McCloske -- 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: Urgent Help required
use the Facebook android SDK instead plz. Thanks in advance. On Nov 11, 11:27 am, chowdary nani naveenneeli...@gmail.com wrote: Please how to integrate face book in android.I am trying to do it using fbconnection/api.jar but i am facing problem in loading the jar -- 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: Customize Android Source Code to run multiple Application on same Screen.
just to be sure that everyone is on the same page here when you say run multiple Application on the same screen, what do you mean? can you give an example of what you are trying to achieve please. On Nov 7, 1:48 am, Pawan Singh Rathore pawan.s.rath...@gmail.com wrote: Hi All, I need to customize Android Source code in a such a way that, It can run multiple Application on the same screen. Is that possible? Please share your thoughts and Ideas... Thanks BR, Pawan -- 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: plz help...!!!
Easy. sevice.stop(plz); On Sep 22, 1:24 pm, Divyata Panchal panchal.divyat...@gmail.com wrote: Hie.. to al Android Developers... please tell me how to stop service in one class which is already started in other class. i need to start and stop service again n again according to my conditions.. pl give proper syntax to stop service.. i am using::: Intent service= new Intent(this, myService.class); stopService(service); but this is not working... please guys reply as soon as possible.. -- 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: Block the upgrade
I suspect the OP is concerned that someone may obtain a pirated copy of his app and then subsequently upgrade it from the Android market without ever paying for it. On Sep 21, 3:42 pm, Michael Banzon mich...@banzon.dk wrote: On Wed, Sep 21, 2011 at 9:34 PM, Chris crehb...@gmail.com wrote: On Wednesday, September 21, 2011 1:07:33 PM UTC-4, TreKing wrote: On Wed, Sep 21, 2011 at 7:47 AM, Perry168 perr...@netvigator.com wrote: How can I block the user to upgrade the Apps if who isn't downloaded from google market? Your question makes no sense. I'll do my best to translate: How can I block users from upgrading my app if they didn't download it from Android Market? The question still doesn't make sense... If the user has your program installed from another source than Market they will have no problem upgrading through this source. Is this even a problem? -- Michael Banzonhttp://michaelbanzon.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: listview: multipe actions per row dilemma
I think you want a context menu that responds to a long click on a list item. Have a look at the Android Notepad example: http://developer.android.com/resources/tutorials/notepad/notepad-ex2.html On Sep 17, 4:28 pm, John Goche johngoch...@googlemail.com wrote: Hello, Hello, I have a ListView with several rows. I want the user to be able to add, modify, delete, and edit detail (ie. subordinate) information relating to each row. I don't know what the best way to proceed is. I could place four buttons on the bottom screen, but then three buttons would only have to be enabled when one row is selected by the user. I have no idea of what the user can do on the rows of the list: tap, double tap? Or should I pop up a context-sensitive menu for each row item when the user taps on a row? What are the options here? Thanks, John Goche -- 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: Payout much smaller than expected
Thanks for pointing this out, I see the same thing, going back to at least May 25th (the earliest I have checked). I've filed a query with the checkout team. On Aug 10, 3:20 pm, Gregg Reno gregg.r...@gmail.com wrote: Are there still problems with Google Checkout for app purchases? It seems that even now, things do not look right to me with the daily payout amounts being under reported. Here is what I'm seeing... - Go to Google Checkout and click Payouts tab - You see a daily list of purchases, with the title Closed Orders - Click one of the amounts in the Purchases column Here I typically see two rows for each purchase. For example, my app goes for $1.49, so I will see something like: Purchase $1.49 Fee -$0.45 However, some transactions just show one line like this: Fee $0.00 This is supposed to be a closed order, and if I drill into it I can see it looks identical in status to other closed purchases with the status showing shipped and charged. So instead of this purchase being counted in the daily total as it should, it only counts as $0. And it isn't just the most recent day's transactions. I can see these going back over a week. So are sales not being counted as they should? Sorry if I'm posting to the wrong board. If I should post this somewhere else, let me know. -Gregg Reno -- 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: Convert map cordinates to the location name
more specifically, Google for 'reverse geocoding' On Aug 9, 3:05 am, Ratheesh Valamchuzhy android...@gmail.com wrote: Hi All i am developing an app related to location based services in android in my app I get a cordiante value (Longitude, lattitude) as some double numbers such as -132.535676464655 and 38.5552003102 i want to get the name of the location that the coordinates represents Any one help me? Thanks -- -- ωιтн яєgαя∂ѕ Ratheesh * *... -- 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: Need help on adding overlays on Map View
no, you cannot get the overlay information from Google Maps, you will need to use the Google Places API: http://code.google.com/apis/maps/documentation/places/ Before you get too involved in development, I suggest you check your expected usage against the limits per the website. All requests require an API key and Google actively measure the rate and volume of requests. After you have your data you will need to build it into an overlay yourself. There are any number of tutorials that will show you how to do this on the web. On Jul 26, 5:31 am, Rikki rikki.a...@gmail.com wrote: Hi I am a newbie to Android Development. So spare me if I ask wrong questions I am developing a POI search app for nearby gas stations according to my current location. I am using googlemapview for displaying the maps and using locationmanager to get current location. Now I want to add overlays to the map so that I can search the gas stations. Can i get this overlay information from google maps or i need to create the overlays by myself. what I want is to read the gar station information and plot them on the map. Any help in this regard will be appreciated. I might have said some things wrong here. Correct me whereever I am wrong. Thanks in Advance. -- 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: Role of the Compatibility Library?
per Dianne H on Google+: ...These are not part of the platform, they are helper classes in the support library, so they are not documented as part of the platform API documentation. The full source code is available as part of the package, and there are also full samples of using them in the new v4 and v13 API demos apps: http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/index.html and http://developer.android.com/resources/samples/Support13Demos/src/com/example/android/supportv13/app/index.html (look for Fragment Pager, Fragment State Pager, Fragment Tabs Pager, Action Bar Tabs Pager). So if I read that right, even if they are not part of the Android 3.2 SDK 'proper' someone must have thought them so cool they just had to include them in the ACL. Given my reliance on MapView for my app I decided to stay away from the ACL for the time being (feel free to pop that into the ACL btw Google - it's not in the SDK either). And by coincidence I just finished shoehorning all the 3.1 SDK ActionBar goodness into my single source codebase yesterday, so it will be a while before I'll be ready for 3.2. I'm very happy that you are blazing the trail though, Mr M. Keep up the good work. Nick On Jul 15, 7:04 pm, Mark Murphy mmur...@commonsware.com wrote: Up until 3 minutes ago, I was fairly clear on the role of the Android Compatibility Library (ACL) -- it was to provide backwards-compatible clones of stuff that exist for realz only in newer versions of Android. However, Roman Nurik just tweeted: ViewPager and PagerAdapter are in the Compatibility Package r3 as part of the Android 3.2 SDK release pointing to: http://developer.android.com/sdk/compatibility-library.html ViewPager, PagerAdapter, and kin are classes *presently unique to the ACL*. I couch that with presently as, for all we know, those classes could show up in a yet future version of Android, and they were added to the ACL now because, ummm, they stowed away on the release or something. Does anyone out there with greater insight into the ACL have a clearer explanation of its role, in light of these ACL-only classes? Thanks in advance! -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office: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: google-api-java-client-samples
yes I did use maven to pull down the project, but it was a long time ago. I remember that I did get the original Picasa example working after a struggle, but I had to do a lot of fiddling around. I subsequently had to do some major tinkering with the libraries when I converted it to Google Docs and Spreadsheetand finally ended up rewriting the whole lot in the end. Sorry - not much use I know, but I would recommend searching against my sig in the google-api-java-client Google Group - I participated in a number of threads at that time that turned out to hold the key to getting things working. On Jul 1, 3:56 pm, Sergio Michels sergiomiche...@gmail.com wrote: Hi, are you using maven eclipse plugin? In the picasa example, Maven downloaded google-api-client-googleapis-1.2.1-alpha.jar that have GoogleTransport class. Is there one way to check if the dependencies are exported to the virtual device? Regards, Sérgio On Fri, Jul 1, 2011 at 2:30 AM, Spiral123 cumis...@gmail.com wrote: yes I got the picasa one working. looking at your error I would check that you have the correct libraries included in your project and I'd also check your namespaces. On Jun 30, 5:05 pm, Sergio Michels sergiomiche...@gmail.com wrote: Hi, does anyone have the google-api-java-client-samples (for android) working? http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs I tried picasa-atom that gave me an exception 06-30 18:02:44.419: ERROR/AndroidRuntime(876): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.GoogleTransport And calendar-v2 06-30 18:07:08.950: ERROR/AndroidRuntime(929): java.lang.NoClassDefFoundError: com.google.common.collect.Lists guava-r09 is in the Maven dependencies. I just download sources in maven though m2e. I need to do something more with Maven? Regards, Sérgio -- 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] Re: How long does it take after publishing an app before it appears in the Market?
minutes, if not seconds. On Jul 2, 1:10 am, Spooky spooky1...@gmail.com wrote: I just published (about 10 minutes ago, maybe a bit longer) my first app, Point Lobos Gallery. How long does it typically take before I can actually see it in the Market (using search)? Thanks, --jim -- 73 DE N5IAL (/4) | DMR: So fsck was originally called spooky1...@gmail.com | something else.http://jdgapps.com/ | Q: What was it called? Running FreeBSD 7.0 | DMR: Well, the second letter was different. ICBM/Hurricane | -- Dennis M. Ritchie, Usenix, June 1998. 30.44406N 86.59909W -- 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: google-api-java-client-samples
yes I got the picasa one working. looking at your error I would check that you have the correct libraries included in your project and I'd also check your namespaces. On Jun 30, 5:05 pm, Sergio Michels sergiomiche...@gmail.com wrote: Hi, does anyone have the google-api-java-client-samples (for android) working? http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs I tried picasa-atom that gave me an exception 06-30 18:02:44.419: ERROR/AndroidRuntime(876): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.GoogleTransport And calendar-v2 06-30 18:07:08.950: ERROR/AndroidRuntime(929): java.lang.NoClassDefFoundError: com.google.common.collect.Lists guava-r09 is in the Maven dependencies. I just download sources in maven though m2e. I need to do something more with Maven? Regards, Sérgio -- 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: Keyboard Show/Hide Notification
Hi Prasanna... That still doesn't answer the question. Why do you want to notify the app that the keyboard has been shown/hidden? What do you want the app to do with that information? If you can tell us the answer to these questions then I believe someone will be able to help you accomplish what you want. On Jun 23, 1:32 am, Prasannaa prasanna...@gmail.com wrote: The scenario is , I want to notify the app that a KeyBoard has been shown/hidden from my api. 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: How to search find the way between 2 point in google maps api?
use the directions API: http://code.google.com/apis/maps/documentation/directions/ On May 30, 4:07 am, danhpc phamcongdanh06hc...@gmail.com wrote: Hi all, I'm newbie in android programming. I'm doing a application call google maps api. It worked. I can zoom in/out. Mark a position on map. But I don't know how to navigate search on google maps in my app? And how to find the way between 2 point in google maps api? Does it support this feature? I use Google API 3.1. Thanks Regards, D -- 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: echo cancellation
wear headphones On May 27, 12:52 am, neha jain neha.05...@gmail.com wrote: thanx 4 rply... but if i turn down volume control thn will not be able to hear playbackd voice. and how to seperate mic and speaker .. On Thu, May 26, 2011 at 3:19 PM, Ashwani Kumar ash1...@gmail.com wrote: When the mic can hear the speaker then there is acoustical feedback howling because the sound goes around and around. To stop the howling: a) Turn down the gain control or volume control. b) Separate the mic and speaker and point them away from each other. c) Use a good speaker with a flat frequency response instead of a cheap speaker that has a peak in its frequency response On Thu, May 26, 2011 at 5:53 PM, neha neha.05...@gmail.com wrote: Denial, I tried what u said,but it dint solve my problem but producing more echo.. I think its happening bcoz voice coming from speaker is also going in mic. If u have ny idea about it,Plz help. On May 26, 1:20 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, May 26, 2011 at 11:59 AM, neha neha.05...@gmail.com wrote: Thanx alot 4 rply but if i use large buffer size ,it produce delay between record and play. Neha, All I suggested was to use the larger of values returned by both getMinBufferSize() calls for all 3 aspects: recording, playing and transfer of the data instead of arbitrary 400. On May 26, 11:46 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Neha, Your echo comes from the fact that you are using 400 bytes buffer to transfer the recording to the playback. It will physically take time to fill that buffer and then process. Making the buffer much smaller might not necessarily work either, as it will mean more overhead of the recording + playing management in a unit of time. However adjusting the buffer size would be a first step. You are using getMinBufferSize() method, but you ignore the returned values, when it comes to the buffer used to transfer the recording to the playback track. You should use Math.max(recordingMinBufferSize, playbackMinBufferSize) as a buffer size in all 3 cases. You should also write only bytesRead bytes, rather than writing full buffer every time. Daniel On Thu, May 26, 2011 at 10:28 AM, neha neha.05...@gmail.com wrote: Is there any way to synchronize the capturing and playback of audio data in Android? I am using audioRecord/track to achieve this.But its producing echo. Is there any way to cancel echo. My code is- { isRecording=true; bufferSize = AudioRecord.getMinBufferSize(8000,AudioFormat.CHANNEL_CONFIGURATION_MONO,Au dioFormat.ENCODING_PCM_16BIT); audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO,AudioFormat.ENCODING_PCM_16BIT, bufferSize); audioRecord.startRecording(); int BUFFER_SIZE_IN_BYTES =AudioTrack.getMinBufferSize(RECORDER_SAMPLERATE,AudioFormat.CHANNEL_CONFIG URATION_MONO,RECORDER_AUDIO_ENCODING); AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_SYSTEM, 8000,AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, BUFFER_SIZE_IN_BYTES, AudioTrack.MODE_STREAM); byte[] buffer=new byte[400]; audioTrack.play(); while (isRecording) { int bytesRead = audioRecord.read(buffer, 0, 400); int bytesWritten = audioTrack.write(buffer, 0, 400); } -- 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 -- Daniel Drozdzewski -- 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] Re: if i want to add overlay item to appear in map also the gps point
what error are you getting and where? On Apr 22, 6:35 pm, ingy abbas ingy.abba...@gmail.com wrote: package ntryn.n; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import com.google.android.maps.MapController; import com.google.android.maps.GeoPoint; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.location.Geocoder; import android.location.Address; import com.google.android.maps.Overlay; import android.graphics.Canvas; import android.graphics.Point; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.Drawable; import java.util.List; import java.util.Locale; import java.io.IOException; import android.os.Bundle; import android.widget.Toast; public class ntryn extends MapActivity { private MapView mapView; private MapController mapController; private LocationManager locationManager; private LocationListener locationListener; ListOverlay mapOverlays; Drawable drawable, drawable2 ; HelloItemizedOverlay itemizedoverlay; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new GPSLocationListener(); locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, locationListener); mapView = (MapView) findViewById(R.id.mapView); // enable Street view by default mapView.setStreetView(true); // enable to show Satellite view // mapView.setSatellite(true); // enable to show Traffic on map // mapView.setTraffic(true); mapView.setBuiltInZoomControls(true); mapController = mapView.getController(); mapController.setZoom(16); mapController = mapView.getController(); mapView.invalidate(); GeoPoint p; String coordinates[] = {30.084691643714909, 31.335958242416382}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); p = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6)); mapController.animateTo(p); mapController.setZoom(17); // HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable); MapOverlay mapOverlay = new MapOverlay(); ListOverlay listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); listOfOverlays.add(mapOverlay); mapView.invalidate(); } @Override protected boolean isRouteDisplayed() { return false; } private class GPSLocationListener implements LocationListener { public void onLocationChanged(Location location) { if (location != null) { GeoPoint point = new GeoPoint( (int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6)); /* Toast.makeText(getBaseContext(), Latitude: + location.getLatitude() + Longitude: + location.getLongitude(), Toast.LENGTH_SHORT).show();*/ mapController.animateTo(point); mapController.setZoom(16); // GeoPoint point1 = new GeoPoint{30.084691643714909,31.335958242416382}; // add marker MapOverlay mapOverlay = new MapOverlay(); mapOverlay.setPointToDraw(point); ListOverlay listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); listOfOverlays.add(mapOverlay); String address = ConvertPointToLocation(point); Toast.makeText(getBaseContext(), address, Toast.LENGTH_SHORT).show(); mapView.invalidate(); } } public String ConvertPointToLocation(GeoPoint point) { String address = ; Geocoder geoCoder = new Geocoder( getBaseContext(), Locale.getDefault()); try { ListAddress addresses = geoCoder.getFromLocation( point.getLatitudeE6() / 1E6, point.getLongitudeE6() / 1E6, 1); if (addresses.size() 0) { for (int index = 0; index addresses.get(0).getMaxAddressLineIndex(); index++) address += addresses.get(0).getAddressLine(index) + ; } } catch (IOException e) { e.printStackTrace();
[android-developers] Re: Search dialog and searching within the same activity
hi danny. If you have a dialog where the user can search for an address, then show the results of that search within the dialog - then the back button will quit the dialog with the search results and return to the original map activity - which is what I think you want to achieve. It does make the search dialog more complex though. On Apr 21, 6:13 pm, Danny S. danny.schi...@googlemail.com wrote: Hi, i have a map activity and added a search dialog where the user can search for an address. The map activity is searchable. The search works very well, but when the search is started the activity startet a new instance of map activity. Is there a way to show search results in the same activity where the search was executed? Because when the user uses the back button the same (map) view is shown again, but he should go to the activity where the map activity was called from. Hope you can help! Thanks a lot! -Danny Schimke -- 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: Hello Everyone
TBM? Is that Male or Fem? One tip, I think Is to follow this link: https://market.android.com/details?id=com.poetry.androidfeature=search_result On Apr 16, 3:43 pm, ^TBM^ po3ticsu...@gmail.com wrote: Hey I'm new to this group you can just call me TBM. I am looking forward to learning as much as possible because I looking to develop an app to display my works of poetry. I find someone was doing the same on the android market and I thought it would be a great idea to do so. If anyone has any helpful tips to help me I would greatly appreciate it. Thanks and everyone have a good one! -- 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: Why my maps api didn't work?
you don't have to put in things to make it good, you have to take out the things that are making it bad. as TreKing suggests, run the app and pay attention to the Log Cat output. When the app crashes, search back to the last Error messages (in red) and you should find out which line is causing the problem. On Apr 19, 9:09 am, Théo Bassan theobas...@gmail.com wrote: I'm programming a Map api, but every-time I test it on my tablet, it FORCE CLOSE. I did the same code as in gloogle help page. I test 10 different codes, that i found in some sites, but all they force close. Just the maps that came with my tablet that works fine. Is there a specific thing that I have to put on my code to work good? May tablet its a Miumiu design by Ramos. the maps works fine 20 seconds, 40 seconds sometimes. but i dont know why the api force close. Thanks. Here is my code: android:apiKey=API-CODE - I put here my api code!! **manifest* ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.maps.test android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name android:theme=@android:style/Theme.NoTitleBar activity android:name=.SysmarineMaps android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity uses-library android:name=com.google.android.maps / /application uses-sdk android:minSdkVersion=7 / /manifest *main ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_height=fill_parent android:layout_width=fill_parent com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=API-CODE/ LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:padding=2px ZoomControls android:id=@+id/zoom android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout /FrameLayout Activity** package com.map.test; import android.os.Bundle; import android.view.View; import android.widget.ZoomControls; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.GeoPoint; public class SysmarineMaps extends MapActivity { private static MapView mapView; private static MapController mapController; private static GeoPoint geoPoint; private static ZoomControls zoomControls; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); initMap(); zoomButton(); } @Override protected boolean isRouteDisplayed() { return false; } private void initMap() { mapView = (MapView) findViewById(R.id.mapview) ; mapView.setClickable(true); mapView.setSatellite(true); mapController = mapView.getController(); String coordinates[] = {-27.571215833, -48.509360167}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); geoPoint = new GeoPoint( (int) (lat * 1E6), (int) (lng * 1E6)); mapController.animateTo(geoPoint); mapController.setZoom(11); } private void zoomButton() { zoomControls = (ZoomControls) findViewById(R.id.zoom); zoomControls.setIsZoomInEnabled(true); zoomControls.setIsZoomOutEnabled(true); zoomControls.setOnZoomInClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mapController.zoomIn(); } }); zoomControls.setOnZoomOutClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mapController.zoomOut(); } }); } } -- 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: Use Google Spreadsheets API in Android
In fairness to the OP he did try posting in the correct group first. On Apr 18, 1:12 pm, TreKing treking...@gmail.com wrote: On Mon, Apr 18, 2011 at 11:59 AM, Reptil christophepeix...@gmail.comwrote: Nobody can help This group is for the Android SDK. Try a group or forum dedicated to the SpreadSheet API and library. --- -- 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: Use Google Spreadsheets API in Android
I'm afraid you are a very long way from achieving your objective. My recommendation would be to study the Picasa Android API example. Get it working on your device, understand it, and then adapt it for Spreadsheets. the link to the sample is here: http://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg%2Fpicasa-atom-android-sample Pay particular attention to the following: - Oauth - its done a lot differently in Android compared to your web application - Services - If I recall correctly for Spreadsheets you will need Authorization to 2 services: Google Docs to get a list of documents and then Spreadsheet service to read/write the spreadsheets themselves - Namespaces - I can't even start to describe what a PITA this can be If you haven't already worked it out - what you are trying to do is not trivial. On Apr 14, 6:16 am, Reptil christophepeix...@gmail.com wrote: Hi, I have already made a Web Application using the Google Spreadsheets API with the following code giving my the liste of spreasheets i have in my google account: SpreadsheetService service = new SpreadsheetService(exampleCo- exampleApp-1); service.setUserCredentials(j...@gmail.com, mypassword); URL metafeedUrl = new URL(https://spreadsheets.google.com/feeds/ spreadsheets/private/full); SpreadsheetFeed feed = service.getFeed(metafeedUrl, SpreadsheetFeed.class); ListSpreadsheetEntry spreadsheets = feed.getEntries(); for (int i = 0; i spreadsheets.size(); i++) { SpreadsheetEntry entry = spreadsheets.get(i); System.out.println(\t + entry.getTitle().getPlainText()); } But that doesnt work in an Android Application because the gdata library doesnt work with it. So i have already know that i must work with the google-api-java- client library..but i doesnt know how to make the conection with my google docs account,like i have made above,but for Android ( working with the google-api-java-client library) In the example here:http://code.google.com/p/gdata-java-client/wiki/ MigratingToGoogleApiJavaClient We have: HttpRequest request = transport.buildGetRequest(); request.url = url; VideoFeed videoFeed = request.execute().parseAs(VideoFeed.class); But in my own code i have: HttpRequest request = transport.buildGetRequest(); request.url = metafeedUrl; SpreadsheetFeed feed = request.execute().parseAs(SpreadsheetFeed.class); But SpreadsheetFeed is not a type of feed in this library.Wich kind of feed i should have their? Thank You -- 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 to andriod
Just think about what sort of game you would like to develop and then post another question to the group asking for a code snippet or sample. I'm sure you will get lots of responses. p.s. make sure you include 'plz' somewhere in the post. On Apr 13, 6:52 am, shwet shweta.ta...@gmail.com wrote: I m new to andriod and I want to develop a game withing 10 days , and also I am a php developer and know core java. I wanted to know how can I proceed -- 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: info incorrect on http://developer.android.com WHICH COULD PREVENT ECLIPSE FROM RECOGNIZING YOUR DEVICE
then we would be able to read his expression. On Apr 9, 3:07 pm, scott scottlu...@gmail.com wrote: let me tell you do not have to be a troll just have to Leira anddecide if I wrote it will help.Maybe I can usemy keyboard to hit in the face On Apr 9, 6:48 am, lbendlin l...@ bendlin.us wrote: Ah, the juvenile excitement. Fond memories. Tell you what. Take your keyboard, turn it keys down, and smash it on the table a few times. Maybe the Caps Lock key becomes unstuck. -- 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 do i devlope an android keybord
hi Ariel. can you rephrase your statement as a question please? When you say it dont run like keybord what do you mean? How did you try to run it? In what way did it not run like keybord? On Apr 8, 7:09 am, ariel arielgordon...@gmail.com wrote: i try to dwonload SoftKeyboardLanguagePackTemplate but it dont run like keybord -- 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: Authorization via Google Account.
what do you mean I am trying to provide User authorization for my Android application via google accounts do you mean that you want to allow user access to your app if (s)he has a valid Google account? On Apr 5, 4:28 am, Harihara Krishnan N. hariharakrishna...@gmail.com wrote: I am trying to provide User authorization for my Android application via google accounts. I use HTTP POST message, basically with the Action URL = https://www.google.com/accounts/ClientLogin; and I pass the Username and Password parameters. However when I execute the HTTP call, I find that I receive a NULL response. Is there anything I am missing, and is there a better way to do this. Note that I have turned on the Internet permission in the Android application. -- 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: help
I can. Assuming its a paid app I'll give you 20% of any sales. If its free, you will need to pay me $1,000 USD upfront. On Apr 3, 10:14 am, nainfanta nainfa...@gmail.com wrote: Can not account registration, who can help me upload an application? From Robin 2011-04-03 22:13:01 -- 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: Help needed
I agree with TreKing: you have defined your problem so large that you will have to understand a huge amount of stuff just to get started. Decompose your problem into smaller steps, each with a meaningful goal. That way you can deliver something small, then improve on it and allow your understanding to grow at a steady pace. For Example: 1. Decide on a piece of interesting outdoor artwork that is near to you. Find its co-ordinates. 2. Write an app that will display the location of that artwork on a map. 3. Enhance your app so that it will display and update the phone location as well as the artwork location. 4. Enhance the app so that pressing a button brings up a text screen containing information about the artwork. 5. Enhance the app so that pressing a button brings up a text screen and an audio commentary 6. Enhance the app so that the button appears only when the phone is within 20 meters of the artwork 7. Enhance the app you get the idea You should have a clear idea of where you want to get to in the end - but reduce the task down to much smaller pieces that are much more achievable. It would be better to have a project that does some simple stuff well rather than a lot of stuff badly or not at all. Good luck. On Apr 3, 8:48 am, svr stefanrijnste...@gmail.com wrote: Hello, I'm building an application for a school project that will allow users to create a route along various locations within a chose category. The problem is that I have never worked with GPS locations or navigation scripts before and I don't really know how to approach this build. So I’m hoping someone could provide me whit some useful information to get me started. The idea is that the user first makes a selection between a couple of given categories, like say; Art galleries, Architecture and music. after the user has chosen a category, the application will show various locations that are relevant to the chosen category. Example: like for instance say the user chooses the category architecture he will get the locations of all the great architectural buildings within the given city or village he or she is in. the next step is that the user can connect the given locations whit one another to create a route between the locations Example: The user selects the firs location he wants to visit this will mark the start point of the route. when the next location is selected, it automatically will be connected to the first location and thereby creating a route between the locations. the final step is that the user will be navigated along the route he created. when the user arrives at a location he or she selected the application provides the user with information about the object that is based on that location. The information is provided in the form of audio speech and text information. Example: the user created a route along several outdoor art pieces he wanted to go and see. he starts up the navigation and follows the route. When he arrives at one of the selected locations the application provides him with relevant information about the out door art piece throughout an audio file. That only starts playing when arrives at a selected location. I’m hoping someone could help me out here because I’m really stuck. greetings, Stefan -- 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: Mac phone
No driver is needed for a Mac. Check your cables. It's the #1 reason for Mac connection problems. Use the apple USB prober to make sure that the phone is recognized when plugged in. On Apr 2, 4:11 pm, bob b...@coolgroups.com wrote: I got a Huawei Ascend, and I don't know how to get it working on Mac. I don't think it works on Mac. Do you usually have to install some drivers? Do the phones usually come with Mac drivers? On Apr 2, 2:51 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Every one I've tried works with the Mac. Evo Droid Nexus One Magic I think you'll find it's not an issue. -John Coryat -- 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] Amazon Market Reporting
Is it just me, or is anyone else getting the message: Access to reports is temporarily unavailable at this time. Please try again later.? -- 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: Getting a Google Account token to use for Google Reader calls?
Sounds obvious, but in my experience the most common reason for a 401 from the server with Google APIs is getting the service name wrong. This is especially common when folks copy existing auth code fragments to get something working - at least it did with me! For reader I believe the service name should be 'reader' On Mar 26, 5:16 pm, Chris Stewart cstewart...@gmail.com wrote: I've found various sources online trying to do this but every example I found hasn't worked for me. Most simply return 401 errors from the server. I've gotten the auth token needed to make the calls from the local accounts on the phone and I've also tried making the ClientLogin call specifically with my username and password, and either way they're returning 401s. So, has anyone been successful in getting unread Google Reader posts? Extra credit if you're doing it without having to handle a user's Google Account credentials first hand, but are doing it through allowed permissions. -- Chris Stewarthttp://chriswstewart.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: Cloud Computing
This app is going to be the App of the Century. So far, it's got Video, Music, Religion: you can Edit and Saves documents, enjoy the neat icons, it is Honeycomb-compatible and fully integrated with the Cloud. Rishabh, please put us all out of our misery and tell us the name of the wondrous App. Give us a link the the Android Market. I for one will pay good money to see the fruits of you labors. rishabh agrawal android.rish...@gmail.com android-developers how to develope apps fro watch online video ,plz suggest me any tutorial or link,if possible. rishabh agrawal android.rish...@gmail.com android-developers Action Bar develop in android2.3 or not???plz help.or it developed only Android 3.0 ??? rishabh agrawal android.rish...@gmail.com android-developers HI FRIENDS, PLZ GIVE ME A SUGGESTION WHERE I FIND MORE RELIGIOUS ICON.ANY WEBSITE OR SOFT rishabh agrawal android.rish...@gmail.com android-developers when i run my app in emulator some time it run good,but some time my Tab get a unexpected error so , how i remove it. rishabh agrawal android.rish...@gmail.com wrote: how to check my sign is correct or not,becouse i have no android phone where i can test. rishabh agrawal android.rish...@gmail.com wrote: android:showAsAction=ifRoom| withText is not visible when i develope apps.i use android2.2 version how it is visible. rishabh agrawal android.rish...@gmail.com wrote: i have develope apps in which i play background music.but when i go to the home through back tab then the song is also playing.how it is stop rishabh agrawal android.rish...@gmail.com android-developers plz suggest any software for better icon designe,i am a fresher rishabh agrawal android.rish...@gmail.com android-developers i want to developed a android apps in which any thing write on EditText should be save textfile in my machine. On Mar 21, 2:03 pm, rishabh agrawal android.rish...@gmail.com wrote: I am a Begginer in android.But i want develope apps for Cloud ComputingSo for Cloud Computing...Which Language is nessesary. Please Help me.I am Fresher -- 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: org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean
im sure someone knows the answer to this off the top of their head, but I don't. My first suggestion would be to install your app on an Emulator instance then copy the created SharedPreferences XML file for the app to your local computer and inspect it manually to see if it looks like you expect. On Mar 20, 8:17 am, siliconeagle rrmu...@gmail.com wrote: I am trying to figure out the cause of this error it occurs on startup when i try to get the shared preferences for the app. the code is just: settings = this.getSharedPreferences(Globals.PREFS_NAME, 0) Seems like a corruption, but the bug is in the app as i have installed it on multiple devices and the same error occurs. I have uninstalled the app and re-installed it to no avail. also did a fully clean build. I googled the error and dont seem to be able to find anything on it. I was previously working fine. so I am a rather stumped. Any leads would be *very* highly appreciated ... regards, rob W/ApplicationContext( 1541): getSharedPreferences W/ApplicationContext( 1541): org.xmlpull.v1.XmlPullParserException: Map value without name attribute: boolean W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisMapXml(XmlUtils.java:521) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readThisValueXml(XmlUtils.java:733) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readValueXml(XmlUtils.java:667) W/ApplicationContext( 1541): at com.android.internal.util.XmlUtils.readMapXml(XmlUtils.java:470) W/ApplicationContext( 1541): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:376) W/ApplicationContext( 1541): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java: 146) W/ApplicationContext( 1541): at net.robmunro.mypod.WelcomeActivity.onEWCreate(WelcomeActivity.java: 160) W/ApplicationContext( 1541): at net.robmunro.mypod.AbstractEWActivity.onCreate(AbstractEWActivity.java: 25) W/ApplicationContext( 1541): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/ApplicationContext( 1541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) W/ApplicationContext( 1541): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) W/ApplicationContext( 1541): at android.app.ActivityThread.access $1500(ActivityThread.java:117) W/ApplicationContext( 1541): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:931) W/ApplicationContext( 1541): at android.os.Handler.dispatchMessage(Handler.java:99) W/ApplicationContext( 1541): at android.os.Looper.loop(Looper.java: 123) W/ApplicationContext( 1541): at android.app.ActivityThread.main(ActivityThread.java:3683) W/ApplicationContext( 1541): at java.lang.reflect.Method.invokeNative(Native Method) W/ApplicationContext( 1541): at java.lang.reflect.Method.invoke(Method.java:507) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/ApplicationContext( 1541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/ApplicationContext( 1541): at dalvik.system.NativeStart.main(Native Method) -- 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: What more does my game need(space bike)
should rename it Crikey Bikey! On Mar 14, 12:55 am, brian purgert brianpurge...@gmail.com wrote: I feel like im not getting the comments/ratings i want, my game(space bike) is currently rated 3 and a half stars... what does my game need to make it better/more fun -- 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: GeoCoder Returning Different Results?
I haven't looked at that part of their code, but you could always check out the Google MyTracks project to see how they do it and how it is different from your version: http://code.google.com/p/mytracks/ On Mar 9, 6:20 pm, Jake Colman col...@ppllc.com wrote: I have two apps on my phone, the HTC close and WeatherBug, which both use current location to display the current location. I also have my own app that does the same thing. I imagine that we all have to use similar techniques to display the location name, i.e., get the Location from the Location Manager and use Geocoder to convert the latitude/longitude to a place name. My app always displays the same value as HTC Clock but the value in WeatherBug is different and usually more precise. For example, when my app cannot figure out the name (Geocoder returned null) neither can HTC Clock. But WeatherBug still can. So is there a better way to use Geocoder to always get more precise results? -- 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: tabs and maps
have you actually read anything up about tabviews or looked through the many tabview tutorials on the web? I suggest you start here: http://developer.android.com/resources/tutorials/views/hello-tabwidget.html On Mar 8, 9:15 am, alok upadhyay maddy.luck...@gmail.com wrote: hi, i am working from i week on map view based tutorial and finally got this done.What approach i have followed is that: 1. i have used the single activity in which user enters a location name in text box. 2.as soon as the search button is clicked location name is converted into lat and lan using geocoder class. 3.then passing this lan and lat to a method returning location on the map. Now i want to do some RD with this code through tabviews. MEANS: 1.i want initially a single tab consisting of only textbox and search button. 2.When user click on search button new tab should be open showing location that was entered into textbox. Please guide me ! Thanks, Alok upadhyay, -- 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: Gettting data from web page
Wow. I actually planned to be nice when I browsed the group this evening. Here is the kindest response that comes to mind: your post makes no sense. 1. Just because you decide to use JSON to send your flight data request to a number of websites does not mean that they will accept it. 2. How Google finds the data from the sites and displays it is something you need to ask them. Without actually knowing I would guess that they tap into one or more aggregated data feeds that must already exist to serve travel agents. 3. If you know where you want to go from and where you want to go to and when then I suggest you research each of the 'several sites' you have in mind and find out what api (if any) they publish for 3rd parties like yourself. I would recommend that before you spend a lot more time working on this that you step back and work out if the end result that you have in mind is actually going to give any added value above all the existing solutions that are already out there. On Mar 8, 11:07 am, Kunju Vava android...@gmail.com wrote: Hi I am developng an app which displays fight ticket rate from several sites, i decided to use json to send the data, the problem is there are 20 more sites showing the details of flight rate , so how we can write this URL, if the data containe URL have big length and cannot find it how the google find all the data from sites and display i give the input as from and to place and date of journey, based on this input how we can finnd rate from a sites? plse give any idea? reply? -- 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: Xml Parser for Android Layout.
errrwell if you are fetching Xml information from the Internet thats a little bit different from reading it from the sdcard. if you really are fetching it from the internet then presumably it is from some datasource that you are managing. In that case the data does not actually need to be in the xml format that is used as part of an Android project: it can be in whatever format you like. All you are going to do is read in the information and substitute it into whatever variables are going to get inflated in your app. Don't worry about how to parse an Android XML layout. Just worry about how you are going to store the data on your server in the easiest format for you to subsequently request and consume it within your client app. On Mar 9, 9:45 pm, Arindam Ghosh arindam2gh...@gmail.com wrote: Dear Treking, Actually I want to make the layout dynamically from internet sending data. So I will fetch Xml from Internet and then Parse. I saw inflater api of android but it will not work for raw data. So, only choice is parsing and one by one dynamic view creation. So, I wanna to know, is there any nice way to fetch all the attributes of view from layout xml file. Thanks regards Arindam Ghosh On Wed, Mar 9, 2011 at 11:09 PM, TreKing treking...@gmail.com wrote: On Wed, Mar 9, 2011 at 5:29 AM, arindam arindam2gh...@gmail.com wrote: I am currently trying to parse android layout xml file using simple xml parser. Why? Actually this layout xml file is in sdcard. Why? I am unable to parse. Why? Is their any better way to do. Better than what? You've haven't really explained anything. Your kind information will help me a lot. Your kind information, regarding what you're actually trying to do, will help us a lot. --- -- 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 -- Thanks regards Arindam Ghosh -- 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: Authenticate Non-AppEngine Webservice using Google Account
I suggest you use OAuth. http://code.google.com/p/oauth-signpost/ On Mar 3, 1:14 pm, Jesse gotosl...@gmail.com wrote: I feel it is Android specific because the main unknown is what type of authtoken does the Android AccountManager API give us for google accounts (ClientLogin, OAuth, something else?). But, I'll try asking elsewhere. -- 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: Beta Game Space Bike
I'll give it a go. I did think of a name for the game as well: Crikey Bikey! On Feb 27, 2:56 pm, brian purgert brianpurge...@gmail.com wrote: here are some download links check it out. tell people about it, if you know any reviewers give them a link, also post problems, bugs, questions, suggestions http://www.megaupload.com/?d=R02OEBUEhttp://rapidshare.com/files/450131198/Space_Bike_Game.ziphttp://www.mediafire.com/?qnffd2qb8hrcjah -- 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: adding search option
Just because you keep posting the same question, don't expect a different answer. There are many excellent articles on the web covering the topics you are interested in. Google for them. As a hint to get started though, check out the Geocoder, especially GetFromLocationName: http://developer.android.com/reference/android/location/Geocoder.html#getFromLocationName(java.lang.String, int) On Feb 24, 10:02 pm, nischal nischal.gm...@gmail.com wrote: i have successfully displayed google map in my android application. now i wish to add search box to that application so that user can enter any place in that box and map has to display that location how can i achieve this ? can anyone plz help me. if you have the code plz post it . -- 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: Google Map Error
are you using the standard libraries and manually adding the Google Map jar? if so, change the properties of your app to point to the Google APIs instead. On Feb 21, 3:31 am, Nesim TUNÇ nesimt...@gmail.com wrote: Hi Awesome Developers! I'm trying to use Google Map in my Android App. My SDK version is 2.1 update 1 (Level 7), I added the Google Map Lib (maps.jar) - Level 7 but still getting this error .. Here is my codes: Manifest file: activity android:name=x.maps.GoogleMapActivity/ uses-library android:name=com.google.android.maps android:required=true/ is child node of application tag and these permissons are requested: uses-permission android:name=android.permission.INTERNET/uses-permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses-permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.CALL_PHONE/ uses-permission android:name=android.permission.VIBRATE / uses-permission android:name=android.permission.READ_PHONE_STATE / layout/mapview.xml com.google.android.maps.MapView android:id=@+id/mapView android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=my key goes here / and this my activity class public class GoogleMapActivity extends MapActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } and here is how I call it from a imagview click Intent mapIntent = new Intent(v.getContext(), x.maps.GoogleMapActivity.class); startActivity(mapIntent); And I get this error: 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): FATAL EXCEPTION: main 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): java.lang.IllegalStateException: Could not execute method of the activity 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.view.View$1.onClick(View.java:2082) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.view.View.performClick(View.java:2461) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.view.View$PerformClick.run(View.java:8890) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.os.Handler.handleCallback(Handler.java:587) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.os.Handler.dispatchMessage(Handler.java:92) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.os.Looper.loop(Looper.java:123) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.app.ActivityThread.main(ActivityThread.java:4627) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.reflect.Method.invokeNative(Native Method) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.reflect.Method.invoke(Method.java:521) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 871) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at dalvik.system.NativeStart.main(Native Method) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: java.lang.reflect.InvocationTargetException 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at mekanist.placedetail.PlaceDetailActivity.showMap(PlaceDetailActivity.java:2 96) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.reflect.Method.invokeNative(Native Method) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.reflect.Method.invoke(Method.java:521) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at android.view.View$1.onClick(View.java:2077) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 11 more 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: java.lang.NoClassDefFoundError: x.maps.GoogleMapActivity 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15 more 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at dalvik.system.DexFile.defineClass(Native Method) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 02-21 10:30:04.645: ERROR/AndroidRuntime(6257): ... 15
[android-developers] Re: Using google-api-java client
well use the signpost example that works with Google Services as a reference then. On Feb 21, 6:08 am, cuil yahoo cuilya...@gmail.com wrote: Thanks, for the reply. I did have a look at this before, and i say a beginner just to keep my feet on the ground. ^^ (This doesn't imply i am a expert either) . I tried using the the other library,https://code.google.com/p/oauth-signpost/. It works smoothly with this. -- Cuil On Mon, Feb 21, 2011 at 3:46 AM, Spiral123 cumis...@gmail.com wrote: well. I don't know how you are getting those vm errors, but I would guess you are doing something very wrong. Getting Android and OAuth playing nicely is not what I would think of as a good beginner exercise. If you really want to go that route I would start off with an example a little closer to what you want to achieve. Study this Android example that uses OAuth to access Picasa for example: http://code.google.com/p/google-api-java-client/source/browse/picasa-... On Feb 20, 3:28 pm, cuil yahoo cuilya...@gmail.com wrote: Hi, I am a beginner, and i have got really very irritated, in completing this issue. Hope you could help. :) I am trying to make an android application using google-api-java client library. My application needs to display all the google spreadsheets one has in his google documents account. I tried using docs-v3-atom-oauth-sample as reference, here https://code.google.com/p/google-api-java-client/source/browse/docs-v But when i do that, and run my android application, i get dalvik vm errors, which i am attaching in a text file. It would be great if someone could please help me out. Thanks -- Cuil Error.txt 35KViewDownload -- 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] Re: Using google-api-java client
well. I don't know how you are getting those vm errors, but I would guess you are doing something very wrong. Getting Android and OAuth playing nicely is not what I would think of as a good beginner exercise. If you really want to go that route I would start off with an example a little closer to what you want to achieve. Study this Android example that uses OAuth to access Picasa for example: http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/?repo=samplesr=f04abe25d7061a8b1beceade276b1a9fac553d5a#picasa-atom-android-sample On Feb 20, 3:28 pm, cuil yahoo cuilya...@gmail.com wrote: Hi, I am a beginner, and i have got really very irritated, in completing this issue. Hope you could help. :) I am trying to make an android application using google-api-java client library. My application needs to display all the google spreadsheets one has in his google documents account. I tried using docs-v3-atom-oauth-sample as reference, herehttps://code.google.com/p/google-api-java-client/source/browse/docs-v But when i do that, and run my android application, i get dalvik vm errors, which i am attaching in a text file. It would be great if someone could please help me out. Thanks -- Cuil Error.txt 35KViewDownload -- 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 can i control room lights with my android phone :)
X10 On Feb 20, 5:07 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: I know there are some i-phone apps for this. So here goes my question how can i control my room lights or may be for a start my lamp light with my android phone. I dont wanna buy an application for that i wanna code it and may be do some wiring stuff or anything else which is required for the purpopse. I am not expecting the exact answer, but still any help will be appreciated . -- 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 do you cuase the onTap of a map marker (pushpin) to invoke getting directions via Google Maps?
Search this group for 'Launch navigation app with an Intent'. Be aware that this is not a formally supported intent and may well disappear or change at some point. On Feb 13, 2:44 pm, charlest stevegut...@gmail.com wrote: I used the code in Commonware book The Busy Coders Guide Chapter 33 Mapping With MapView and MapActivity (the NooYawk.java code) as a sample, and it worked great: highly recommend the series! The example as shown has the onTap mathod doing a Toast that shows the OverlayItem.snippet value for the marker you tapped. I'd like for it to invoke Google Maps to get the driving directions when you click on the marker. Does anyone know how to code that in the onTap()? -- 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