[android-developers] Re: problem centering the camera in Maps V2
Hi, Don't know. What happens if you comment out the marker, is the map still centered at the same location ? Also does this vary with device rotation / or different zoom - eg 21, on phone or tablet ? I think there's also an option to move / animate zoom the camera at the same, something like - map.moveCamera(CameraUpdateFactory.newLatLngZoom( center, zoom)) - maybe try that as well. I notice that the map moves a bit when you press on a marker, to show the text. Regards On Friday, September 27, 2013 9:50:45 AM UTC+10, Gary Blakely wrote: In my android app I have the following code... CameraUpdate center= CameraUpdateFactory.newLatLng(new LatLng(Lat,Lon)); DebugLog.debugLog(centered camera on + Lat + and + Lon, false); CameraUpdate zoom=CameraUpdateFactory.zoomTo(15); map.moveCamera(center); map.animateCamera(zoom); map.addMarker(new MarkerOptions() .position(new LatLng(Lat, Lon)) .title(Phone Location) ); Lat is 31.7898 Lon is -111.0354 The marker is exactly at that location. However the camera is centered about 5 miles north of that location on the v2 map. Why? Thanks Gary -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: ASUS tablet
Hi, Is there an ASUS usb driver you need to install ? You can also debugging over Wifi instead of usb, maybe try that as well. Regards On Friday, September 27, 2013 12:13:32 AM UTC+10, eli wrote: I am using Eclipse and am able to communicate with a XOOM tablet for USB debugging. However if I use an ASUS tablet Windows XP does not see it if I have the USB debugging option selected. Has anybody solved this problem. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Light Sensor and device in standby
Hi to everyone, someone can tell me if is possible to interact with the light sensor when the device is in standby? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] debugging break pint not hittting
Hi guys, m trying to debug my codebut it is not hitting any line ,but in other project its working then why it is not working in one project please let me know if any one ave any idea -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Navite Navigation Drawer
So what if it is in the support library?. it is as native as it could be! On Thu, Sep 26, 2013 at 10:50 AM, Simon Giddings mr.s.giddi...@gmail.comwrote: I have seen the Navigation Drawer and am interested in it for my v4.1 tablet application. However, I see that the documentation describes it as being within the support library. My understanding was that this library was mainly for apps in and before v2.3 of android. Is there not a native version of this feature available, or are we condemned to using the support library ? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Navite Navigation Drawer
Well my, previous, understanding was that the support library was to provide functionality found in the most recent APIs, for earlier APIs. So, stuff in the v4.0 could be used in v2.3 via the support library. Perhaps you could clear something up for me. When I use just *one *item in the support library, will I get *only* that item included in my apps files, or will *all of the support library* be packaged all the same ? On Friday, September 27, 2013 2:05:31 PM UTC+2, alice wrote: So what if it is in the support library?. it is as native as it could be! On Thu, Sep 26, 2013 at 10:50 AM, Simon Giddings mr.s.g...@gmail.comjavascript: wrote: I have seen the Navigation Drawer and am interested in it for my v4.1 tablet application. However, I see that the documentation describes it as being within the support library. My understanding was that this library was mainly for apps in and before v2.3 of android. Is there not a native version of this feature available, or are we condemned to using the support library ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: android proguard is not working for the that is activated by the reflection?
Look for proguard-project.txt in your android project directory (with the AndroidManifest.xml and various other .properites files.) Pick one of the keywords to avoid having classes/members mangled by proguard to protect whatever you are calling/want called back: http://proguard.sourceforge.net/index.html#manual/examples.html proguard will re-name everything it can, and will do (what it thinks is) dead code removal (which it can only guess at what outside code might want to run in your code, and often gets it wrong.) The -keep options in the configuration file will tell proguard not to obfuscate the name or remove the code (if it thinks it's unused.) Dan S. On Thursday, September 26, 2013 3:24:23 PM UTC-4, 12169 wrote: Hi , can you please explain...or provide demo wt to do? On Wednesday, September 25, 2013 11:53:14 PM UTC-7, Andrew Mackenzie wrote: Look at the classes youbarebusing tibdi that, then add instructions to your proguard config file (in project root) to have it NOT obfuscate or remove those classes or methods or the classes or methods they access by name. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: problem centering the camera in Maps V2
What happens if you set the camera tilt to zero? On Thursday, September 26, 2013 7:50:45 PM UTC-4, Gary Blakely wrote: In my android app I have the following code... CameraUpdate center= CameraUpdateFactory.newLatLng(new LatLng(Lat,Lon)); DebugLog.debugLog(centered camera on + Lat + and + Lon, false); CameraUpdate zoom=CameraUpdateFactory.zoomTo(15); map.moveCamera(center); map.animateCamera(zoom); map.addMarker(new MarkerOptions() .position(new LatLng(Lat, Lon)) .title(Phone Location) ); Lat is 31.7898 Lon is -111.0354 The marker is exactly at that location. However the camera is centered about 5 miles north of that location on the v2 map. Why? Thanks Gary -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to Verifying Correctness of App in Eclipse
The question might appear a bit vague, so allow me to explain a bit. I'm part of a startup that is trying to build a way to set up an Android tutorial, whereby, users also get to build a proper, functioning app alongside. Unlike teaching web-based technologies, we can't emulate the experience of building an android app on the web. For this, we were hoping to create a stub project, which our users would download and then, we can devise ways to verify that users have correctly performed certain actions, by modifying the Run Configuration. However, we haven't been able to find any useful hooks through which we can test for correctness. By *correctness*, I mean some basic tests, like whether the user properly created a list adapter, whether an edit box was created, whether the textview showed up, etc. At this point, I wanted to ask if there are any good approaches I can try? I thought of extending the ADT, or build a plugin for it. But that would be a significant effort, and I'd like to exhaust any other alternatives before diving into this. Thanks for reading! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to Verifying Correctness of App in Eclipse
So the obvious question that comes to mind is: why do you need to do this within Eclipse, rather than using an Android testing framework. Are you talking about whether or not the user *physically* created the code, rather than testing it actually worked? I would give a word of warning against trying to do things that require parsing with Eclipse: it would be a huge amount of work to do this, it's much larger than an extension to the ADT. (And, working with Eclipse's representation of java code is rather horrible.) Kris On Fri, Sep 27, 2013 at 9:42 AM, Anirvan anirvan.majum...@gmail.com wrote: The question might appear a bit vague, so allow me to explain a bit. I'm part of a startup that is trying to build a way to set up an Android tutorial, whereby, users also get to build a proper, functioning app alongside. Unlike teaching web-based technologies, we can't emulate the experience of building an android app on the web. For this, we were hoping to create a stub project, which our users would download and then, we can devise ways to verify that users have correctly performed certain actions, by modifying the Run Configuration. However, we haven't been able to find any useful hooks through which we can test for correctness. By correctness, I mean some basic tests, like whether the user properly created a list adapter, whether an edit box was created, whether the textview showed up, etc. At this point, I wanted to ask if there are any good approaches I can try? I thought of extending the ADT, or build a plugin for it. But that would be a significant effort, and I'd like to exhaust any other alternatives before diving into this. Thanks for reading! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Tiny stutter when displaying a large bitmap for the first time
I'm creating an application with large bitmaps in a scrolling list. I'm on a 1080p screen and the bitmaps are about 1080x1080 pixels each. All drawing is done directly to canvas in a custom View, and all of the bitmaps are loaded from resources into memory before doing any scrolling (well, at least in my test case). I noticed that each time a new bitmap enters the screen, a frame of drawing is dropped, leading to a small stutter. But when I scroll back to the bitmaps already shown before there is no frame drop, but smooth 60 fps. This leads me to believe that the HW acceleration in Android uploads a texture to GPU the first time a Bitmap is shown on screen. And if the Bitmap is large enough, it eats a frame of time (when small bitmaps are scrolled in, there's no stuttering). I'm trying to avoid this behavior by ensuring that all textures are loaded into GPU memory before scrolling starts. I'm thinking I could draw all bitmaps to canvas on the first onDraw() call, either with alpha 0 or scaled down to 0 x 0 or similar. Am I right in mu assumption that its the texture uploading that takes time? Should I be drawing the bitmap to Canvas to ensure that texture is uploaded or is there any other, better way? Will the texture be uploaded if I draw the bitmap with alpha 0 or scaled down to 0 x 0? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] debugging break pint not hittting
Did you check the break point, was it placed in the correct line and also, check restart your adp and eclipse that helps. On Fri, Sep 27, 2013 at 5:30 PM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi guys, m trying to debug my codebut it is not hitting any line ,but in other project its working then why it is not working in one project please let me know if any one ave any idea -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: InApp Billing v3 and multiple accounts
There must be no broken in one of such important part of the API. That's why I'd really like to hear some official recommendations for handling this. I refuse to believe there are no apps with IAB and server side data with accounts. Someone? Anyone? On Thursday, September 26, 2013 6:20:33 PM UTC+4, b0b wrote: IAP with multiple accounts is in my opinion *broken*, even if I suspect current behaviour is how Google intended it. In my experience, in the presence of multiple accounts, the IAP code will always pickup the first listed account, in the device's Google account list in Settings, which may not be the account used for the IAP. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to Verifying Correctness of App in Eclipse
Hello Kris, Appreciate your response. Even I have an inkling that trying to write some plugin might just end up being something *big*. However, what we need to establish is whether a particular user was able to follow our tutorial and do some basic application changes as part of our chapter exercises. So yes, we are trying to determine whether a user was able to correctly make *physical* code changes as part of a chapter's exercises. Consider it like, suppose you were preparing a tutorial on Javascript, and you wanted your tutorial to be interactive, you can have many ways to test whether the user is able to follow the instructions on her own. But that's not possible to do with Android through a web-based platform. At least not that I know of. So is their any way I could tell the user — go do this and this, and after that run your code. Now if it runs properly, we should be able to receive some signal through the build process, which indicates that the user did the right thing. And then, we let the user know whether she was successful with the last set of assignments. Any suggestions? On Friday, 27 September 2013 19:50:30 UTC+5:30, Kristopher Micinski wrote: So the obvious question that comes to mind is: why do you need to do this within Eclipse, rather than using an Android testing framework. Are you talking about whether or not the user *physically* created the code, rather than testing it actually worked? I would give a word of warning against trying to do things that require parsing with Eclipse: it would be a huge amount of work to do this, it's much larger than an extension to the ADT. (And, working with Eclipse's representation of java code is rather horrible.) Kris On Fri, Sep 27, 2013 at 9:42 AM, Anirvan anirvan@gmail.comjavascript: wrote: The question might appear a bit vague, so allow me to explain a bit. I'm part of a startup that is trying to build a way to set up an Android tutorial, whereby, users also get to build a proper, functioning app alongside. Unlike teaching web-based technologies, we can't emulate the experience of building an android app on the web. For this, we were hoping to create a stub project, which our users would download and then, we can devise ways to verify that users have correctly performed certain actions, by modifying the Run Configuration. However, we haven't been able to find any useful hooks through which we can test for correctness. By correctness, I mean some basic tests, like whether the user properly created a list adapter, whether an edit box was created, whether the textview showed up, etc. At this point, I wanted to ask if there are any good approaches I can try? I thought of extending the ADT, or build a plugin for it. But that would be a significant effort, and I'd like to exhaust any other alternatives before diving into this. Thanks for reading! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to Verifying Correctness of App in Eclipse
On Fri, Sep 27, 2013 at 1:03 PM, Anirvan anirvan.majum...@gmail.com wrote: Hello Kris, Appreciate your response. Even I have an inkling that trying to write some plugin might just end up being something *big*. However, what we need to establish is whether a particular user was able to follow our tutorial and do some basic application changes as part of our chapter exercises. So yes, we are trying to determine whether a user was able to correctly make *physical* code changes as part of a chapter's exercises. Consider it like, suppose you were preparing a tutorial on Javascript, and you wanted your tutorial to be interactive, you can have many ways to test whether the user is able to follow the instructions on her own. But that's not possible to do with Android through a web-based platform. At least not that I know of. So is their any way I could tell the user — go do this and this, and after that run your code. Now if it runs properly, we should be able to receive some signal through the build process, which indicates that the user did the right thing. And then, we let the user know whether she was successful with the last set of assignments. What even is the right thing? Do they have to have the class named the correct thing, do they have to have some sort of functional behavior? Do they have to place the button on the screen in the right way? Ultimately, there are going to be an infinite number of ways to do the right thing, each valued slightly differently. Static analysis at the source level is extremely hard in Eclipse because it's a huge API that you have to tie yourself to pretty intimately. Whenever I parse Java source I actually use a compiler toolkit, because Eclipse's mechanisms are so hard to work with. In any case, I think you have bigger problems, since doing this for JavaScript seems equally complicated. The way to start is to look at changes to the AST of the code. This is pretty possible to do within Eclipse, supposing you're willing to put in a lot of work. However, nobody on this list can really help: this is more about designing Android programs. Instead, I'd point you at a list targeted towards Eclipse hackers. 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: InApp Billing v3 and multiple accounts
On Sep 28, 2013 1:58 AM, Alexander Osmanov alex.osmanov...@gmail.com wrote: There must be no broken in one of such important part of the API. That's why I'd really like to hear some official recommendations for handling this. I refuse to believe there are no apps with IAB and server side data with accounts. You are obviously an optimist :) Adding features to IAB takes years and the people designing it obviously don't sell apps on Google Play. And when a new guy takes over they re-write the whole thing from scratch... Move on. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: InApp Billing v3 and multiple accounts
It's hard to just move on when you kinda spent a year writing your app and when the only thing left to do is to integrate it with billing :) On Friday, September 27, 2013 10:19:05 PM UTC+4, Nikolay Elenkov wrote: On Sep 28, 2013 1:58 AM, Alexander Osmanov alex.os...@gmail.comjavascript: wrote: There must be no broken in one of such important part of the API. That's why I'd really like to hear some official recommendations for handling this. I refuse to believe there are no apps with IAB and server side data with accounts. You are obviously an optimist :) Adding features to IAB takes years and the people designing it obviously don't sell apps on Google Play. And when a new guy takes over they re-write the whole thing from scratch... Move on. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Long Click in the presences of a ContextualActionBar.
Here's a situation I have run across. We have a Contextual Action Bar on screen. So far so good. When the user dismisses this, they are also done with the Activity/Fragment so we go ahead and close it for them. While our contextual action bar is active, the user long presses an EditText field on the same screen. It then brings up another contextual action bar, the copy and paste action bar. onDestroyActionMode is then called. Thinking the user dismissed the form, we close the Activity/Fragment for them. From the user's perspective, using copy/paste kills the form. It seems like the proper behavior would be to com back to ContextActionBars in the order they were opened. Any advice on how we can detect and handle this situation. Nathan -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Html.fromHtml limitations.
Html.from Html. can parse html into a Spanned. It mentions it has limitations. Is it documented anywhere what limitations those are? It could be useful for context help and a lot more lightweight than using a Webview I've been considering something like this. http://blahti.wordpress.com/2012/02/14/how-to-build-simple-help-in-android/ I wouldn't have to handle arbitrary text from the internet, just strings from our own resource files. Nathan -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Html.fromHtml limitations.
There was an old blog post by Mark Murphy, perhaps it's still on his site. Or just look at the source: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/text/Html.java You will want handleStartTag -- K 2013/9/28 Nathan nathan.d.mel...@gmail.com Html.from Html. can parse html into a Spanned. It mentions it has limitations. Is it documented anywhere what limitations those are? It could be useful for context help and a lot more lightweight than using a Webview I've been considering something like this. http://blahti.wordpress.com/2012/02/14/how-to-build-simple-help-in-android/ I wouldn't have to handle arbitrary text from the internet, just strings from our own resource files. Nathan -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Xml file corrupted over sprint cellular network ?
I understand Sprint is investigating and may contact you for more info. On Thu, Sep 26, 2013 at 2:01 AM, Gaurav Sharma gauravsharma...@gmail.comwrote: I am having a very strange issue in my android app. I receive xml file from server and perform operation based on xml content. It is working on almost every network for eg. ATT, Verizon in USA, airtel, vodaphone and others in india.But it not working on sprint network USA. When i tried to find xml content i am getting some byte code or unicode not the plain xml file. I looked for more information i found other also has faced this issue on sprint evdeo. people says turn off byte mobile optimization here http://t8387.codeinpro.us/q/50810aaa4f1eba38a4efcbd1 I am not able to turn off mobile byte optimization. If i switch to wifi network it receive file properly. Issue occur on sprint cellular network only. Any help or any pointer will be very much appreciated. 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: problem centering the camera in Maps V2
After reading the docs at I found that the following code works well. However my original code should have worked so I guess there are still some bugs. CameraPosition cameraPosition = new CameraPosition.Builder() .target(new LatLng(Lat, Lon)) .zoom(15) .bearing(0) .tilt(45) .build(); map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); map.addMarker(new MarkerOptions() .position(new LatLng(Lat, Lon)) .title(Phone Location) ); On Thursday, September 26, 2013 4:50:45 PM UTC-7, Gary Blakely wrote: In my android app I have the following code... CameraUpdate center= CameraUpdateFactory.newLatLng(new LatLng(Lat,Lon)); DebugLog.debugLog(centered camera on + Lat + and + Lon, false); CameraUpdate zoom=CameraUpdateFactory.zoomTo(15); map.moveCamera(center); map.animateCamera(zoom); map.addMarker(new MarkerOptions() .position(new LatLng(Lat, Lon)) .title(Phone Location) ); Lat is 31.7898 Lon is -111.0354 The marker is exactly at that location. However the camera is centered about 5 miles north of that location on the v2 map. Why? Thanks Gary -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How many TCP connection are alive in android device
Hi Dirk! MQTT is really good. I've never heard about it. Regarding 24/7 We have two states: 1. In charge (connected devices, push all required data (apks, general info, media content) to all tablets from the server; 2. In use (updates not allowed, only critical information could be submitted by using XMPP pubsub); Yes, that's a really minus of MQTT cause it doesn't allow to send ping. But I was able to find the following solution: http://stackoverflow.com/questions/10065624/how-to-send-ping-using-ecipse-paho-mqtt-client https://github.com/chinesejie/paho-for-android Thank You! Dan. понедельник, 23 сентября 2013 г., 15:55:36 UTC+3 пользователь Dirk Jäckel написал: Hi! Do you have enough power for the device so it can run 24/7 without sleeping? i.e. an external battery or power source? If not, have a look at this example using MQTT. It worked for me but I am not sure about the licensing of the wmqtt.jar. http://dalelane.co.uk/blog/?p=1599cpage=1 It should be possible to adapt this strategy to XMPP. It boils down to this: - create a service (make it sticky) - Create a tcp connection (to a server) - Register Broadcast Receiver for network connectivity changes and alarm after 20 minutes (or more/less depending on NAT timeouts of your network provider) - Schedule an alarm (to send keepalive packet) - Go to sleep - When alarm is triggered: send ping (sleep again) - When network is lost: cleanup (sleep again) - When message comes in: handle message (sleep again) - When connectivity is restored: reconnect (sleep again) The problem with the paho and the fusecore mqtt-client implementation is, that they do not allow sending a ping request manually. So you have to either patch them or send a bigger publish packet. Regards, Dirk danaimset mailto:dana...@gmail.com javascript: 20. September 2013 08:32 Hi all! I'm working with one very wide project and we need to support 24/7 connection with device. This project is for custom ROM and we will not have Google apps installed. We are thinking about performance. Maybe someone could help us with the following questions: How many TCP connections Google Services keep in android ? And what is the best practices. We need to have realtime support for all our components that will be controlled through the web admin. So we'll have to implement our own Cloud Messaging. We concentrated on XMPP solution that we may know. Maybe someone could suggest the best approach. Thank you, Dan. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript:. For more options, visit https://groups.google.com/groups/opt_out. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Html.fromHtml limitations.
On Friday, September 27, 2013 3:15:18 PM UTC-7, Kostya Vasilyev wrote: There was an old blog post by Mark Murphy, perhaps it's still on his site. Or just look at the source: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/text/Html.java I think it is this one and that Mark Murphy also looked at the source. http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html You will want handleStartTag Yes, and I think I will want to do an image getter too. If I can pull drawables from resources, I can show on help what buttons mean in real time. Nathan -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to Verifying Correctness of App in Eclipse
Thanks for the input Kris. What you're saying does make sense. And while I'm not going to get into static analysis, by the right thing what I was looking at is a bit more simpler like checking things inline with what a programmer would do using asserts. Anyways, I understand that the problem definition is getting a bit vague, so I'll possibly go dig around more and come back with something specific, if required. On Friday, 27 September 2013 19:12:04 UTC+5:30, Anirvan wrote: The question might appear a bit vague, so allow me to explain a bit. I'm part of a startup that is trying to build a way to set up an Android tutorial, whereby, users also get to build a proper, functioning app alongside. Unlike teaching web-based technologies, we can't emulate the experience of building an android app on the web. For this, we were hoping to create a stub project, which our users would download and then, we can devise ways to verify that users have correctly performed certain actions, by modifying the Run Configuration. However, we haven't been able to find any useful hooks through which we can test for correctness. By *correctness*, I mean some basic tests, like whether the user properly created a list adapter, whether an edit box was created, whether the textview showed up, etc. At this point, I wanted to ask if there are any good approaches I can try? I thought of extending the ADT, or build a plugin for it. But that would be a significant effort, and I'd like to exhaust any other alternatives before diving into this. Thanks for reading! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.