[android-developers] Re: Pan/Zoom (Seat Map View) Major Airline
Hi Dennis- The best way to approach this depends on what platforms you're targetting. For Honeycomb and later (api level: 11), it's actually pretty straightforward: View has two methods, setScaleX and setScaleY http://developer.android.com/reference/android/view/View.html#setScaleX(float) http://developer.android.com/reference/android/view/View.html#setScaleY(float) When you use these methods, touch events will be transformed appropriately during dispatch. For Gingerbread and earlier, it's a little more involved. The parent needs to override onInterceptTouchEvent, return true for everything in that method, and perform its own dispatch in onTouchEvent. The parent also needs to perform the necessary transformation of the MotionEvent. Unless you're on at least Gingerbread, there's no way to get the individual touch points out of the MotionEvent, so children of the view will really only be able to respond to mono touch events (single finger). From your description it doesn't sound like this part will present problems (I don't imagine you'll be selecting a seat by two-finger tapping it, for instance), but it's something to be aware of. Also, this only effects the children you're manually dispatching events to- The parent view will still be able to pinch zoom. -- 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: Pretty sure Google Analytics for Android not working
H- Per your comments on usability (drill-down order in same report, etc) I'll definitely pass those along to the team- I'd recommend you also add a feature request! Votes on community-made feature requests have real influence in how they prioritize their time :) Regarding the ability to select custom variables in the left-nav with other metadata, you can! In left-nav, click on visitors. It will be the very last item in the expanded list. From there you can drill-down from Custom Variable names to specific values by clicking on them (much the way you can drill-down with events by clicking on category/action/label) Brill, alas! But best of luck with Flurry :) -Alex On Tue, Jan 25, 2011 at 5:01 PM, H m...@howardb.com wrote: Hi Alex, thanks for the comments. I don't want to deviate from the core of this post, but just wanted to touch on your point a smidge I could do what you suggested, and I can create a custom report to get the page views for custom var 1 and I can further drill to get the custom var 1 values. And then I can further drill and get the details for custom var 2 for a specific custom var 1 value. But what if I wanted the total page views grouped by custom var 2 first instead? I would have to create another report with that first instead. And what if I wanted to drill from custom var 3 to custom var 2 to custom var 1. Another report. Don't get me wrong, I can see that the reports are indeed powerful, but for ad-hoc what if reporting, they are just too much faff to have to create just to see a custom value for a chunk of users. And similarly, although the api is again powerful, it's a bit heavy handed for a simple why is that happening query when you see a lonely spike on a diagram and are curious as to why. If the custom variables are indeed metadata for page views and events, then why aren't they available to be selected in the list with all the other metadata i.e. language, continent, hostname, campaign, connection speed..? Surely all these other attributes are also metadata about a specific request..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Pretty sure Google Analytics for Android not working
Actually, it appears I spoke too soon- There's a feature request form for the API, but not yet for the web app. I'll forward the feedback to someone on the team:) -Alex On Wed, Jan 26, 2011 at 9:57 AM, TreKing treking...@gmail.com wrote: On Wed, Jan 26, 2011 at 11:51 AM, Alexander Lucas alexlu...@google.comwrote: I'd recommend you also add a feature request! Votes on community-made feature requests have real influence in how they prioritize their time :) Could you link to where one would do such things? I can't find anything. - 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.comandroid-developers%2bunsubscr...@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: Pretty sure Google Analytics for Android not working
Hi Guys- Sorry I didn't spot this thread until now. Some answers: Brill- H is correct- Custom Variables don't get sent by themselves- They're basically metadata for your pageviews and events. Their main purpose is to allow you to look at segments of your traffic. H- Can you elaborate on what you found problematic about setting up the custom report in Google Analytics? It sounds like you were entering every possible combination of CV's pageviews events as a seperate report- Why not just put pageviews, total events, custom variable key (1), custom variable value (1), custom variable key(2) etc... into the same report? Also, Analytics has an export API, you might fare better specifying your query precisely with that- You can try it using the javascript interface using the Query Explorer here: http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.html Hope this helps! -Alex On Sun, Jan 23, 2011 at 8:10 PM, Brill Pappin br...@pappin.ca wrote: That would explain why I wasn't getting any data back. I've already moved to Flurry though, so not going to switch back now :) Yes, you can attach a lot of data to a Flurry event but i don't like how its tabulated. the params are buried a bit. What I ended up doing was constructing my event string with the recurring values that would give me useful information. That sounds a lot like what you would need to do with the GAnalytics library as well. I did think Flurry was dead simply to use and I'm getting that data I was looking for. So far it doesn't seem to be slowing down my users at all, so in general I'm happy enough. What I recommend is that you pick some free app that you use for experimenting on (I tell my users that if i'm going to do any experimenting, i'm going to do it on the free version) and plug it in to see how you like it before switching everything over. - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] SIPDemo is not working...
Hi Avi- The emulator doesn't currently support Sip- To test, you'll need a device running gingerbread. -Alex On Thu, Jan 20, 2011 at 12:34 AM, Avi iamavinash...@gmail.com wrote: I tried to use SIPDemo application on Android 2.3 - revision 9 emulator But it returns null for the SIPManager.newInstance(this). if (manager == null) { manager = SipManager.newInstance(this); } On checking SIPManager.isAPISupported. It retruns false. Has any body run SIPDemo application, any help is appreciated. I have already specifed follwoing feature permissions in the Manifest file: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.USE_SIP / uses-feature android:name=android.software.sip / uses-feature android:name=android.software.sip.voip / Kindly please guide me how to fix this problem and run the SipDemo application successfully. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: google analytics jar does not seem to work now
Some gotchas: 1- Data isn't guaranteed to show up in Analytics until 24 hours after the data is submitted to analytics. It usually shows up earlier, but you should give it 24 hours (Notice I didn't say a day- Testing at 11:59 PM and checking for data at 12:01 AM won't get you anywhere :P ). 2- There are both automatic and manual dispatch modes- Just because trackPageView is called on your device doesn't mean anything is sent to the Analytics servers, until a dispatch occurrs. Combined with gotcha #1, this can make the delay between an event occuring and viewing the data pretty volatile unless you're firing dispatches at a reasonable rate. The timed dispatch mode takes SECONDS as a parameter, not milliseconds (I'm just firing off mistakes I made when learning the library, feel free to roll your eyes here)- 3- Make sure you have the necessary permissions in your AndroidManifest- android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE 4- What changed between the app version that was sending data and not sending data? Just a different emulator being tested on? Was there a different version of the software? Is Logcat producing any crashes? -Alex On Fri, Jan 21, 2011 at 11:53 AM, David Liebman david.c.lieb...@gmail.comwrote: HI, so I started up the emulator and the debugger. I viewed the page that's supposed to produce a hit on Google Analytics. Here's the info from the debugger. 01-21 14:34:51.257: DEBUG/NetworkRequestUtil/ ConstructPageviewRequestPath(354): /__utm.gif? utmwv=4.5mautmn=1958648861utmcs=UTF-8utmsr=320x480utmul=en-USutmp= %2FSplashScreenutmac=UA-19479622-2utmcc=__utma %3D999.490166702.1294513166.1295538176.1295638491.177 '/SplashScreen' is the page name (if you can call it a page). Can anybody see what's going on here? The code that produces this is pretty much as follows: GoogleAnalyticsTracker tracker; tracker = GoogleAnalyticsTracker.getInstance(); tracker.start(UA_NUMBER, this); tracker.trackPageView(/SplashScreen); tracker.dispatch(); There's actually a little more code than that, of course, but I wanted to just get across the idea that the instance of the Google Analytics Tracker uses the 'trackPageView' method. For a little more background I'll include the declaration for UA_NUMBER: public static final String UA_NUMBER = new String(UA-19479622-2); I do believe UA_NUMBER to be the correct string, and like I said, I got hits from this arrangement when I first updated the code to my app on the market. I cannot figure why it doesn't work any more. On Jan 21, 2:03 pm, Brill Pappin br...@pappin.ca wrote: laugh ;) Whats the licence? If its apache like most things, how about setting up a google project for it? I would really like to be able to step through their code! and no doubt if others can see it, we can improve it faster than they can :) - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: gingerbread sip demo
A Google search for Free SIP provider yields some good leads. A good tool to use for testing is sip:e...@iptel.org, which basically just echoes back any audio it receives. As soon as you hear your own voice coming back, you know it was a successful call, data's flowing the way it should, etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Contacts and phone numbers in same query under the new contacts API?
I'm trying to figure out how to get a list of contacts, with phone numbers, filtered by group using the new (Eclair and up) Contacts API. Under the old API, it was a simple matter of: Uri useUri = Uri.parse(content://contacts/groups/name/ + groupName + /members); Cursor swankyCursor = managedQuery(useUri, null, null, null, People.NAME + ASC); But that was back when contacts had a name and phone number in the same table. Currently, even without the filter by group requirement, it seems like in order to get a list of contacts and their phone numbers, I have to run a query for contacts, and then a seperate what's this contact's phone number for *every single contact* - Is this true? Or is there a way to get it all in one query? Thanks! -Alex -- 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: abortAnimation on ListView
I was having the same issue, and after reading through this thread (and some excessive experimentation) I found the following: -In my case it ended up working best that I not explicitly set focusable, focusable in touch mode, or clickable on anything- either on the list as a whole or on individual items. Doing so had me bouncing back and forth between two scenarios: One where items could be clicked but scrolling wouldn't stop on touch correctly - The other where scrolling worked right but click events on touch never fired. -I stripped out the listener I was registering in my custom adapter's getView (convertView.setOnClickListener(blahblah). Instead, from within my activity, for ListView lv I called lv.setOnItemClickListener and passed it an anonymous inner class. Initially I had tried having the custom listview implement AdapterView.OnItemClickListener interface, and within the constructor calling this.setItemClickListener(this). At no point did this work: Item clicks never fired on touch. I'm honestly still a little confused about why the behavior should be different, I feel like I'm missing something obvious... -This sort of falls under the category of stripping out listeners set and defined in the adapter's getView, but it bears special mention. From within getView I was calling registerForContextMenu on individual list items. This worked fine, and didn't explicitly set focus or clicks or anything from what I could tell. However, once I commented this line out, scrolling started to work correctly. In case I'm not the only person who's made this mistake, the solution is to pass registerForContextMenu the *ListView* as a parameter from wherever you're creating the listview object, not to call it on individual items from within the adapter's getview method. Hope this helps. -Alex -- 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 make a listview with selectable children stop scrolling on touch event?
Update: Things I've tried so far: -Moved everything into a single relativelayout, removed the child's clickability and instead added an OnItemClickListener to the parent listview. This method didn't fire on touch events for some reason, even when I had removed all setClickable and setFocusable calls. It does fire for trackball / keyboard selections, though. -In my list adapter, I set the convertView to clickable and attached an event that basically triggered the parent listview's onClick method (the one that should have been fired by that listview's OnItemClickListener). It triggers okay, but the root problem of not stopping an in-progress scroll with a touch event is still present. Unless I'm missing something, this kills my theory that the root issue is related to having clickable children. -In all cases, Tapping the screen while listview is scrolling (finger down, finger up) seems to stop the scroll. finger down on its own does not. -In the ListView's constructor, tried setting setFocusable(true) and setItemsCanFocus() to true and false (tried both ways). No luck. In some cases I effectively made nothing clickable, but the problem persisted. Does it perhaps matter that I'm only using a ListView and not a ListActivity? I'm using a TabActivity with nested listviews instead. Much appreciated. -Alex --~--~-~--~~~---~--~~ 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 make a listview with selectable children stop scrolling on touch event?
As a work around to the issue where a list item isn't focusable if it has a focusable child item (a comment by Romain Guy was that this was intended behavior, for accessibility reasons) I simply filled the listItem with two children, each of which is focusable - There's nowhere to directly touch on the listItem anymore, just it's children. For the most part this is a useable workaround, effectively invisible to the user, except for one thing- Although you can scroll by swiping without issue, touching to *stop* the scroll no longer works- I imagine because the child item is capturing the touch event and not passing it to the parent listitem, at least while the scroll is in effect. Is there a known workaround for this? Perhaps someway to pass the baton of the touch event back up to the parent listItem, or a way to change my design? BTW- I know there's some built-in functonality for single/multiple choice listviews (checkbox listviews) - That doesn't actually help in my case. The app is a contact list, and the row children are a relativelayout (populated with contact info) and a clickable phone icon (a one-touch dial for the contact), which needs to be visible or invisible depending on whether the stored contact has a phone number. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---