Re: [android-developers] Re: Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
Kristopher, I don't see how I was rude (is ping a bad word?). You're the one who insists on changing the subject, talking about grammar, etiquette, and feelings... Do you have any information regarding issue 61950? If not, please refrain from replying to this. Thanks a lot, -- BoD -- 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: Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
All I'm long for is a response from someone at Google... -- BoD -- 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: Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
It was a rhetorical question, Kristopher. -- BoD On Thursday, December 19, 2013 7:17:58 PM UTC+1, Kristopher Micinski wrote: Google engineers routinely read and comment on the contents of messages from this group, so I would suspect the answer is yes.. Krs On Thu, Dec 19, 2013 at 9:12 AM, BoD bodl...@gmail.com javascript: wrote: PING. On Monday, December 2, 2013 11:18:35 PM UTC+1, BoD wrote: Ping. -- 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: Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
No but really, I was not *actually* asking about Google engineer's presence on this list. Thanks for your input though. (- rhetorical again! ;)) I'm curious about issue 61950, which in my opinion is troubling because it concerns the Activity stack - hence my pings. -- BoD On Sunday, December 22, 2013 7:02:27 PM UTC+1, Kristopher Micinski wrote: I don't think you understand what that word means, or at the very least, you're using it incorrectly :-). Google engineers respond to a very small amount of questions on this list that concern core functionality, but in my experience don't participate in discussions all that often: I suspect because they are simply swamped with real work and want to be careful in the phrasing of their responses so as not to misspeak. Kris On Sun, Dec 22, 2013 at 12:55 PM, BoD bodl...@gmail.com javascript:wrote: It was a rhetorical question, Kristopher. -- BoD On Thursday, December 19, 2013 7:17:58 PM UTC+1, Kristopher Micinski wrote: Google engineers routinely read and comment on the contents of messages from this group, so I would suspect the answer is yes.. Krs On Thu, Dec 19, 2013 at 9:12 AM, BoD bodl...@gmail.com wrote: PING. On Monday, December 2, 2013 11:18:35 PM UTC+1, BoD wrote: Ping. -- 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: Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
PING. On Monday, December 2, 2013 11:18:35 PM UTC+1, BoD wrote: Ping. -- 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] Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)
Ping. -- 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: Wrong stack behaviour in Android 4.4
Hello? Anyone from Google reading this mailing list? -- BoD On Monday, November 18, 2013 10:44:19 AM UTC+1, BoD wrote: Hi! I am observing a different Main/History stack behavior in Android 4.4 as described in this bug : http://code.google.com/p/android/issues/detail?id=61950 Are you observing issue with Stacks in you apps too ? Any documentation about this change ? Thanks for your help, -- BoD PS: this message is originally from my friend who cannot post to this list because his message was moderated and never approved (see my previous mail)... -- 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: Wrong stack behaviour in Android 4.4
Anyone? It seems to me this could be a big deal, as it concerns the activity stack! If anyone from the Android team could chime in it would be much appreciated. Thanks a lot. -- BoD On Monday, November 18, 2013 10:44:19 AM UTC+1, BoD wrote: Hi! I am observing a different Main/History stack behavior in Android 4.4 as described in this bug : http://code.google.com/p/android/issues/detail?id=61950 Are you observing issue with Stacks in you apps too ? Any documentation about this change ? Thanks for your help, -- BoD PS: this message is originally from my friend who cannot post to this list because his message was moderated and never approved (see my previous mail)... -- 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] AndroidManifest.xml documentation is incorrect
Hi! While reading the documentation for the new DocumentsProvider facility introduced in 4.4, I noticed that you can apparently declare an intent-filter inside a provider. Unfortunately the documentation for AndroidManifest.xml says otherwise (http://developer.android.com/guide/topics/manifest/provider-element.html and http://developer.android.com/guide/topics/manifest/intent-filter-element.html). Thanks. -- BoD -- 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] Wrong stack behaviour in Android 4.4
Hi! I am observing a different Main/History stack behavior in Android 4.4 as described in this bug : http://code.google.com/p/android/issues/detail?id=61950 Are you observing issue with Stacks in you apps too ? Any documentation about this change ? Thanks for your help, -- BoD PS: this message is originally from my friend who cannot post to this list because his message was moderated and never approved (see my previous mail)... -- 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] [meta] Moderation?
Hi! A friend of mine tried to post something (first time) on the 8th of November, and his message hast still not been approved. Can the moderators please check this? Thanks a lot. Thanks. -- BoD -- 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: Using the Fuse location provider, and testing with Fake GPS
Just as a follow up, I tried the app in real conditions (going outside and moving), and it does work correctly. I still don't know why it doesn't work with Fake GPS, but oh well... -- BoD On Monday, June 10, 2013 5:47:35 PM UTC+2, BoD wrote: Hi! I am trying to test my app that uses the Fuse location provider (from Google Play Services), without having to be actually moving ;) In order to do so, I'm using the app Fake GPS ( https://play.google.com/store/apps/details?id=com.lexa.fakegps). In the settings of this app, I checked Simulate moving, with an interval of 5000ms and a distance of 500 meters. I can see the app works, since I see myself moving in the official Google Maps app. In the system settings, in Location access, I checked 'GPS satellites', and unchecked 'Wi-Fi / mobile network'. Now here is the code I use in my app: LocationRequest locationRequest = LocationRequest.create(); locationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY); locationRequest.setInterval(60 * 1000); locationRequest.setFastestInterval(30 * 1000); locationRequest.setSmallestDisplacement(50); mLocationClient.requestLocationUpdates(locationRequest, getLocationUpdatesPendingIntent()); My problem is, even though the Fake GPS app is moving, my service is called only once. I don't receive any subsequent location changes. I was expected to be notified about once or twice every minute. What could be the problem? Thanks for your help, -- BoD -- -- 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] Using the Fuse location provider, and testing with Fake GPS
Hi! I am trying to test my app that uses the Fuse location provider (from Google Play Services), without having to be actually moving ;) In order to do so, I'm using the app Fake GPS (https://play.google.com/store/apps/details?id=com.lexa.fakegps). In the settings of this app, I checked Simulate moving, with an interval of 5000ms and a distance of 500 meters. I can see the app works, since I see myself moving in the official Google Maps app. In the system settings, in Location access, I checked 'GPS satellites', and unchecked 'Wi-Fi / mobile network'. Now here is the code I use in my app: LocationRequest locationRequest = LocationRequest.create(); locationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY); locationRequest.setInterval(60 * 1000); locationRequest.setFastestInterval(30 * 1000); locationRequest.setSmallestDisplacement(50); mLocationClient.requestLocationUpdates(locationRequest, getLocationUpdatesPendingIntent()); My problem is, even though the Fake GPS app is moving, my service is called only once. I don't receive any subsequent location changes. I was expected to be notified about once or twice every minute. What could be the problem? Thanks for your help, -- BoD -- -- 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] Updated to ADT 22: 'R cannot be resolved to a variable'
Since the update, I have this error in all my projects (including when creating a new Android project from scratch). I am stuck. Does anybody have this issue? Is there an easy way to downgrade to the previous version? Thanks a lot= -- BoD -- -- 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: Updated to ADT 22: 'R cannot be resolved to a variable'
Indeed if I look inside the 'gen' folder, nothing is there. -- BoD On Thursday, May 16, 2013 11:11:45 AM UTC+2, BoD wrote: Since the update, I have this error in all my projects (including when creating a new Android project from scratch). I am stuck. Does anybody have this issue? Is there an easy way to downgrade to the previous version? Thanks a lot= -- BoD -- -- 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: Updated to ADT 22: 'R cannot be resolved to a variable'
Indeed that was it. Somebody had the same problem here: https://groups.google.com/forum/?fromgroups=#!topic/adt-dev/epOfZbKPFdk Thanks! It works again now :) -- BoD On Thursday, May 16, 2013 11:29:14 AM UTC+2, Ralph Bergmann wrote: Am 16.05.13 11:18, schrieb BoD: Indeed if I look inside the 'gen' folder, nothing is there. I had the problem too, there is a new Android SDK Bild-tools. Open the Android SDK Manager and make a update, maybe twice. Ralph -- -- 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] lint: android:versionName=@string/versionName is not valid?
Hi! I have just noticed that lint now complains that I use a string reference in my manifest's versionName. I am surprised, because it actually works without a problem. Can anyone comment on that? Thanks! -- BoD -- -- 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] UnknownHostException is not logged
FYI there was already an open bug for this: http://code.google.com/p/android/issues/detail?id=21436 I really think this change should be reverted, instead of 'fixing' the javadoc. Seriously, the logger should not decide for the developer what is an important exception or not - this doesn't make any sense. -- BoD On Monday, January 28, 2013 6:02:45 PM UTC+1, Robert Greenwalt wrote: I think a case could also be made for logging the UnknownHostException without the stack trace (just the server name) as an in between step. Thanks for the bugreport. On Fri, Jan 25, 2013 at 3:08 PM, Boris Burtin bbu...@gmail.comjavascript: wrote: Thanks for responding. I can see the reasoning. Just seems weird that the behavior isn't documented, and that there's no way for me to override it. I'll file a bug for updating the Javadoc. On Friday, January 25, 2013 2:40:10 PM UTC-8, Robert Greenwalt wrote: You can always do the dns lookup yourself and log an error if it's invalid. The DNS cache will ensure it's not wasted effort. On Fri, Jan 25, 2013 at 2:39 PM, Robert Greenwalt rgree...@google.comwrote: I think the log was getting quite full of these exceptions (mobile devices often don't have a network and apps aren't so good at checking that first) so we stopped logging them. If you look at the blame for this code you can see the reasoning. On Fri, Jan 25, 2013 at 2:31 PM, Boris Burtin bbu...@gmail.com wrote: I was racking my brain, trying to figure out why one of my users was having trouble connecting and nothing was in the logs. Finally I looked at the Android source and realized that the logging code explicitly ignores UnknownHostException. Even worse, the Javadoc doesn't specify this behavior. Does this sound like a bug to anyone, as opposed to a feature? In my case, the user enters the hostname, so it's possible to get this exception while the user has a network connection. /** * Handy function to get a loggable stack trace from a Throwable * @param tr An exception to log */ public static String getStackTraceString(Throwable tr) { if (tr == null) { return ; } // This is to reduce the amount of log spew that apps do in the non-error // condition of the network being unavailable. Throwable t = tr; while (t != null) { if (t instanceof UnknownHostException) { return ; } t = t.getCause(); } StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); tr.printStackTrace(pw); return sw.toString(); } -- -- -- 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: Custom notification with a button: the notification bar stays open when clicking on it (on 4.0)
If somebody from the Android team could chime in, I would greatly appreciate it! :) Thanks for your help! -- BoD On Friday, October 12, 2012 4:14:17 PM UTC+2, BoD wrote: Hi! I am working on an app that shows a notification that uses a custom layout (notification.contentView = remoteViews), that contains a button. First of all, I am aware that there are new APIs to do this in 4.1 but my app has to work on 4.0. I want the button to start an activity so I do this: Intent clickIntent = new Intent(this, MyActivity.class); clickIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); contentView.setOnClickPendingIntent(R.id.button, PendingIntent.getActivity(this, 0, clickIntent, PendingIntent.FLAG_CANCEL_CURRENT)); This works as intended, but my problem is: - On a 4.1 Galaxy Nexus, when clicking on the button, the notification bar collapses, thus the newly displayed activity is visible to the user (the behavior I want!) - On a 4.0 emulator, when clicking on the button, the notification bar stays open, thus the newly displayed activity is not visible to the user Does anybody know if there is a way to control this, so the bar will also close on 4.0? Thanks a lot, -- BoD -- 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] Custom notification with a button: the notification bar stays open when clicking on it (on 4.0)
Yes I have tested this on an HTC One S running Android 4.0: the notification bar stays open. -- BoD On Friday, October 12, 2012 6:53:32 PM UTC+2, MagouyaWare wrote: Have you tested this on a real 4.0 device? It might just be an emulator bug... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Oct 12, 2012 at 8:14 AM, BoD bodl...@gmail.com javascript:wrote: Hi! I am working on an app that shows a notification that uses a custom layout (notification.contentView = remoteViews), that contains a button. First of all, I am aware that there are new APIs to do this in 4.1 but my app has to work on 4.0. I want the button to start an activity so I do this: Intent clickIntent = new Intent(this, MyActivity.class); clickIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); contentView.setOnClickPendingIntent(R.id.button, PendingIntent.getActivity(this, 0, clickIntent, PendingIntent.FLAG_CANCEL_CURRENT)); This works as intended, but my problem is: - On a 4.1 Galaxy Nexus, when clicking on the button, the notification bar collapses, thus the newly displayed activity is visible to the user (the behavior I want!) - On a 4.0 emulator, when clicking on the button, the notification bar stays open, thus the newly displayed activity is not visible to the user Does anybody know if there is a way to control this, so the bar will also close on 4.0? Thanks a lot, -- BoD -- 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 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] Custom notification with a button: the notification bar stays open when clicking on it (on 4.0)
Hi! I am working on an app that shows a notification that uses a custom layout (notification.contentView = remoteViews), that contains a button. First of all, I am aware that there are new APIs to do this in 4.1 but my app has to work on 4.0. I want the button to start an activity so I do this: Intent clickIntent = new Intent(this, MyActivity.class); clickIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); contentView.setOnClickPendingIntent(R.id.button, PendingIntent.getActivity(this, 0, clickIntent, PendingIntent.FLAG_CANCEL_CURRENT)); This works as intended, but my problem is: - On a 4.1 Galaxy Nexus, when clicking on the button, the notification bar collapses, thus the newly displayed activity is visible to the user (the behavior I want!) - On a 4.0 emulator, when clicking on the button, the notification bar stays open, thus the newly displayed activity is not visible to the user Does anybody know if there is a way to control this, so the bar will also close on 4.0? Thanks a lot, -- BoD -- 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: MediaStore.ACTION_VIDEO_CAPTURE: EXTRA_DURATION_LIMIT ignored on HTC devices?
No idea, anybody? -- BoD On Thursday, September 6, 2012 11:30:56 AM UTC+2, BoD wrote: Hi! (First of all sorry if this message is duplicated, it seems my previous attempt was lost). I am trying to start a video recording activity, with a duration limit. Using MediaStore.EXTRA_DURATION_LIMIT works on several devices, but is ignored on HTC devices. So my questions are: 1/ Does anybody happen to know a workaround for HTC devices, by any chance? (Maybe a different vendor-specific extra?) 2/ Aren't these things (part of the documented API) supposed to be tested/enforced by the Android Compatibility program? Thank you very much for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MediaStore.ACTION_VIDEO_CAPTURE: EXTRA_DURATION_LIMIT ignored on HTC devices?
Hi! (First of all sorry if this message is duplicated, it seems my previous attempt was lost). I am trying to start a video recording activity, with a duration limit. Using MediaStore.EXTRA_DURATION_LIMIT works on several devices, but is ignored on HTC devices. So my questions are: 1/ Does anybody happen to know a workaround for HTC devices, by any chance? (Maybe a different vendor-specific extra?) 2/ Aren't these things (part of the documented API) supposed to be tested/enforced by the Android Compatibility program? Thank you very much for your help. -- BoD -- 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: Jelly Bean and Strict Mode
Wait, I'm not sure I understand. Are you saying StrictMode configuration calls (setThreadPolicy, setVmPolicy) no longer work if made in Application.onCreate? (We can expect most apps make the calls there.) -- BoD On 07/16/2012 11:05 PM, Dianne Hackborn wrote: The bug I think is that the documentation should be updated. We definitely want the new behavior -- when strict mode is enabled by default (on non-user builds) we explicitly do not want the checks happening in Application.onCreate() because it is okay to do disk access and such there (the process is after all in the process of being launched). -- 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: Jelly Bean and Strict Mode
:( Did anybody open an issue? -- BoD On 07/20/2012 11:25 AM, b0b wrote: Exactly. StrictMode thread policy (and it seems only thread policy) is restored to the default settings by the framewrok after onCreate() is called. -- 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
It is supposed to only show its *own* logs. And I confirm this behavior with CatLog on my own JB device. If you have a different behavior well I guess it's a bug ;) -- B.LUBEK On 07/13/2012 02:39 AM, Zsolt Vasvari wrote: What are we talking about this in this thread? I just tried the CatLog app on my official build (JRO03C) build on my Galaxy Nexus and it shows the logcat as it always has. On Friday, July 13, 2012 8:09:50 AM UTC+8, Mark Murphy (a Commons Guy) wrote: On Thu, Jul 12, 2012 at 8:02 PM, Peter Sinnott psinn...@gmail.com mailto:psinn...@gmail.com wrote: 3 devices with ICS ( HTC Desire / HTC One X / Asus Transformer ) and none of them seem to do it. Probably something obvious I'm doing wrong. Either that, or it's not universal. I just gave it a few tries on a Samsung Galaxy Tab 2 7.0, also running ICS, and could not seem to get it to trigger. Which is why we need some other trigger mechanism that isn't a button-ish form of the game Twister. The concept (let the user send system logs to who they wish) is sound, but it has to be something reasonable for users to accomplish. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 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 -- BoD -- 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
I just encountered this problem on a Galaxy Nexus running Jelly Bean JRN84D. This is a serious issue because it makes extremely valuable libraries like ACRA inoperative. A comment from someone from the Android team would be greatly appreciated :) Thanks! -- BoD On Sunday, July 8, 2012 9:26:47 PM UTC+2, Ievgenii Nazaruk wrote: Hi all, I've been working on an application for developers that uses DropBoxManager. The DropBoxManager requires READ_LOGS permission to be granted in order to query information from it. Today I've tested my application on newest (api 16) emulator before releasing it to Google Play. It turned out that Android now refuses to grant this permission to 3rd party applications. This is weird because I've looked through all Jelly Bean's documented changes and couldn't find anything that mentions READ_LOGS permission. So basically my questions: - Did anyone see this change documented? - Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on it (the one released to attendees of Google I/O)? And questions to someone from Android team: - Why this breaking change wasn't described in documentations like READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas? - What should developers and testers do in order to use those handy utility applications that require READ_LOGS to be useful? Is there any way to allow READ_LOGS to 3rd party applications without making custom build (i.e. something in Developer Options that I could've missed)? -- 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: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
On 07/12/2012 02:45 PM, Mark Murphy wrote: On Thu, Jul 12, 2012 at 8:37 AM, BoD bodlu...@gmail.com wrote: This is a serious issue because it makes extremely valuable libraries like ACRA inoperative. ACRA does not need READ_LOGS. Certain ACRA features might need READ_LOGS. I think we can all agree that one main feature of this library (and others) is the ability to read/send the logs. It appears in the new source code. The protectionLevel for READ_LOGS is now signature|system|development. The new pipe syntax for protectionLevel is also undocumented (see http://code.google.com/p/android/issues/detail?id=34785). Thank you for this. This is extremely unfortunate. I opened this issue: http://code.google.com/p/android/issues/detail?id=34792 -- BoD -- 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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)
Let me just respectfully say that I don't understand the decision. The API is potentially very dangerous, yes, but that is why it requires a permission. -- BoD On 07/12/2012 07:24 PM, Mark Murphy wrote: On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn hack...@android.com wrote: however every app can read the logs containing only the lines *they* have written, without needing any permission. OK, I'll bite: how do you do this? Most of the read-the-logs code that I have seen uses logcat via Runtime#exec(), and I don't see a command-line switch on logcat to limit output to just your own process' lines. (BTW, count me as one of the fans of this decision, despite the very loud grumblings I expect you will receive from various quarters) Thanks! -- BoD -- 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: Hidden fragments (and animations) after a rotation
Thanks for answering. However, 1/ I test savedInstanceState because when it is null it means the Activity was created for the first time (in which case I instantiate and add the fragment). After a rotation it is not null - I agree it is not clear and I should look for the Fragment with a tag instead, like you do, or at least put a comment there ;) 2/ You should not create and add the Fragment every time the activity is created *whether you use setRetainInstance(true) or not*. I really think it is not related, please correct me if I'm wrong. 3/ In your code you re-add the Fragment to the container even if it was found. It doesn't do harm, but this is unnecessary because the framework already does it for you. The FragmentTransaction should be inside the if. In any case this was not the cause of my problem, and I still reproduce it with the updated code below. In other words it seems that: 1/ The hidden / visible state of a Fragment is not kept when rotating the screen (unless setRetainInstance(true) is called) 2/ The custom animations are not saved in the back stack when rotating the screen Can anyone confirm this? Thanks! public class MainActivity extends Activity { private static final String FRAGMENT_TEST = FRAGMENT_TEST; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TestFragment testFragment = (TestFragment) getFragmentManager().findFragmentByTag(FRAGMENT_TEST); if (testFragment == null) { testFragment = new TestFragment(); // testFragment.setRetainInstance(true); final FragmentTransaction ftAdd = getFragmentManager().beginTransaction(); ftAdd.add(R.id.container, testFragment, FRAGMENT_TEST); ftAdd.addToBackStack(null); ftAdd.commit(); final FragmentTransaction ftHide = getFragmentManager().beginTransaction(); ftHide.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out, android.R.animator.fade_in, android.R.animator.fade_out); ftHide.hide(testFragment); ftHide.addToBackStack(null); ftHide.commit(); } } public static class TestFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final TextView res = new TextView(getActivity()); res.setText(Fragment + toString()); return res; } } } -- BoD On Friday, April 20, 2012 4:13:26 PM UTC+2, Nadeem Hasan wrote: I am not exactly sure if this is the cause of your problem but your fragment creation code is flawed. When you use *setRetainInstance(true)* you don't need to create the fragment every time the activity is created. Also, I don't know why you check for saveInstance to be null. When the phone is rotated you should just retrieve the existing fragment instance from the FragmentManager. I use something like below in mu base Activity: protected Fragment addFragment( Class? clss ) { String tag = clss.getSimpleName(); FragmentManager fm = getSupportFragmentManager(); Fragment f = fm.findFragmentByTag( tag ); if ( f == null ) { f = Fragment.instantiate( this, clss.getName() ); } FragmentTransaction ft = fm.beginTransaction(); ft.add( R.id.fragment_container, f, tag ); ft.commit(); return f; } And then in onCreate() of my Activity I simply call: MyFragment f = addFragment( MyFragment.class ); This means that a Fragment instance is created the first time the Activity is created but on any subsequent rotations, the existing Fragment instance is retrieved from the FragmentManager is attached to the activity. Your code creates a new Fragment instance every time the device is rotated, which may lead to other issues like Fragment instances with no attached Activity. -- 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: Hidden fragments (and animations) after a rotation
Thanks for answering. However I already knew that, and it's not really the point of my question :) -- BoD On 04/20/2012 01:13 AM, lbendlin wrote: Rotating the screen restarts the activity unless you explicitly tell the OS not to do that. On Thursday, April 19, 2012 7:38:52 AM UTC-4, BoD wrote: Hi! I have an activity with a fragment that I hide in a transaction with a custom animation. This transaction is added to the back stack. If I don't rotate the screen this is working as expected (pressing 'back' un-hides the fragment with the animation) 1/ If I rotate the screen, the fragment is no longer hidden. I discovered that if I call setRetainInstance(true) on the fragment however, this problem disappears. But is this expected and/or documented somewhere? 2/ But even if I do that, pressing 'back' shout un-hide the fragment, with the custom animation. However: - Not using the support package, on a 3.2 Xoom, the fragment stays hidden. - Using the support package, the fragment does become visible again, but with no animation. Is this a (known) bug or did I miss something? Thanks a lot for your help! Here is the simple example demonstrating this (replace FragmentActivity by Activity and comment/uncomment to switch from using the support package or not): public class MainActivity extends FragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); if (savedInstanceState == null) { final TestFragment testFragment = new TestFragment(); testFragment.setRetainInstance(true); final FragmentTransaction ftAdd = getSupportFragmentManager().beginTransaction(); // final FragmentTransaction ftAdd = getFragmentManager().beginTransaction(); ftAdd.add(R.id.container, testFragment); ftAdd.addToBackStack(null); ftAdd.commit(); final FragmentTransaction ftHide = getSupportFragmentManager().beginTransaction(); // final FragmentTransaction ftHide = getFragmentManager().beginTransaction(); // ftHide.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out, android.R.animator.fade_in, android.R.animator.fade_out); ftHide.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out, android.R.anim.fade_in, android.R.anim.fade_out); ftHide.hide(testFragment); ftHide.addToBackStack(null); ftHide.commit(); } } public static class TestFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final TextView res = new TextView(getActivity()); res.setText(Fragment); return res; } } } -- BoD -- 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] Hidden fragments (and animations) after a rotation
Hi! I have an activity with a fragment that I hide in a transaction with a custom animation. This transaction is added to the back stack. If I don't rotate the screen this is working as expected (pressing 'back' un-hides the fragment with the animation) 1/ If I rotate the screen, the fragment is no longer hidden. I discovered that if I call setRetainInstance(true) on the fragment however, this problem disappears. But is this expected and/or documented somewhere? 2/ But even if I do that, pressing 'back' shout un-hide the fragment, with the custom animation. However: - Not using the support package, on a 3.2 Xoom, the fragment stays hidden. - Using the support package, the fragment does become visible again, but with no animation. Is this a (known) bug or did I miss something? Thanks a lot for your help! Here is the simple example demonstrating this (replace FragmentActivity by Activity and comment/uncomment to switch from using the support package or not): public class MainActivity extends FragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); if (savedInstanceState == null) { final TestFragment testFragment = new TestFragment(); testFragment.setRetainInstance(true); final FragmentTransaction ftAdd = getSupportFragmentManager().beginTransaction(); // final FragmentTransaction ftAdd = getFragmentManager().beginTransaction(); ftAdd.add(R.id.container, testFragment); ftAdd.addToBackStack(null); ftAdd.commit(); final FragmentTransaction ftHide = getSupportFragmentManager().beginTransaction(); // final FragmentTransaction ftHide = getFragmentManager().beginTransaction(); // ftHide.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out, android.R.animator.fade_in, android.R.animator.fade_out); ftHide.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out, android.R.anim.fade_in, android.R.anim.fade_out); ftHide.hide(testFragment); ftHide.addToBackStack(null); ftHide.commit(); } } public static class TestFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final TextView res = new TextView(getActivity()); res.setText(Fragment); return res; } } } -- BoD -- 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: Problems when signing APKs with Java 7.
Thanks a lot for the link. -- BoD -- 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] Problems when signing APKs with Java 7.
Thanks for your answer. I guess I was unlucky with my search terms because I did spent time a few hours googleing but did not find anything. If you have the SO links I'd appreciate it :) Also if anybody from the Android tools team reads this, it would be a good idea to put a warning about this on the page http://developer.android.com/guide/publishing/app-signing.html Thanks! -- BoD -- 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] Problems when signing APKs with Java 7.
Hi! I just spent a few hours on a signature problem when building our project with ant on a machine that has (Oracle's) Java 7 installed. When trying to install this apk, I have this error: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] After looking inside the MANIFEST.MF file inside the apk, I noticed that the digests are in the form: SHA-256-Digest: tXIm+feek/QDGP6yrxtgWDHyfl+XaND6lXbsY9gjZrA= Whereas when building with Java 6, they have the form: SHA1-Digest: lPHIYoqZ+2OpY0LPumyDkUdNdoc= I then saw in the (Java 7) jarsign documentation the -digestalg options (http://download.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html). When signing manually the apk with jarsign (instead of using the ant build), and passing -digestalg SHA1, I no longer have the problem. I was wondering if this was a known issue, and if yes, is there anyway to fix it in an 'ant friendly' way? Thanks a lot! -- 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: Animations in ListView (Android 3+)
Kostya: I tried animating the item directly and it didn't work as I wished, but I admit I didn't go too far to see why. I'll look more into it as soon as I have a bit of time. Thank you everybody for your replies. I'll post a follow-up here if I manage to do anything good looking ;) -- BoD -- 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] Animations in ListView (Android 3+)
Hi! I am looking at how to implement nice animations in a ListView for an app targeting Android 3 and more. Specifically, I would like to implement the same behavior that can be seen in the Gmail app when an item is deleted or archived: the other elements of the list smoothly move to fill the empty space left. Any pointers on this? Thanks a lot! -- BoD -- 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: Unit testing with the sdk tools r14?
I have opened this issue: code.google.com/p/android/issues/detail?id=21194thanks=21194 -- BoD On 10/24/2011 09:37 AM, BoD wrote: Can anyone confirm this? Should I file a bug? Thanks! BoD http://groups.google.com/group/android-developers?hl=en -- BoD -- 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: Unit testing with the sdk tools r14?
Can anyone confirm this? Should I file a bug? Thanks! BoD -- 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] Unit testing with the sdk tools r14?
Hi! I have updated my project and my test project with the sdk tools r14, and I can no longer seem to get the tests running. First of all, the documentation here: http://developer.android.com/guide/developing/testing/testing_otheride.html#RunTestsCommand has not been updated and the |run-tests target no longer exist. I understand you are now supposed to use this command instead: ant debug installt test Unfortunately this fails with this message: build.xml:816: Cannot run two different modes at the same time. If you are running more than one debug/release/instrument type targets, call them from different Ant calls. I then tried to first issue ant debug (seems to work ok, the package is installed in the emulator), and then ant installt test. This second command fails with this message: test: [echo] Running tests ... [exec] INSTRUMENTATION_STATUS: id=ActivityManagerService [exec] INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.example.android/android.test.InstrumentationTestRunner} [exec] [exec] INSTRUMENTATION_STATUS_CODE: -1 [exec] android.util.AndroidException: INSTRUMENTATION_FAILED: com.milestonelab.plizy.android/android.test.InstrumentationTestRunner [exec] at com.android.commands.am.Am.runInstrument(Am.java:532) [exec] at com.android.commands.am.Am.run(Am.java:111) [exec] at com.android.commands.am.Am.main(Am.java:78) [exec] at com.android.internal.os.RuntimeInit.finishInit(Native Method) [exec] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238) [exec] at dalvik.system.NativeStart.main(Native Method) BUILD SUCCESSFUL Ant thinks the build is successful when this fails which I think is a known issue. But any idea on how to fix this? My test project used to work fine with ant ||run-tests before the update. Thanks for your help! || | -- BoD -- 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: Just in section
I am the developer of the app 'No Lock', which indeed makes use of the Keyguard apis, to try to disable the lock screen. I can confirm that this does not work very well, and inconsistently across devices ;) I understand the api was not meant to be used this way. The app has had about 770K downloads, which clearly shows that there is a real demand from the users to be able to disable the lock screen completely. Some people just want to use their phone immediately even if that means a risk the phone will inadvertently turn itself on in your pocket :) I was not aware that this option existed in 3.x and I am very glad to hear that. I really hope it will also be there for phones under Ice Cream Sandwitch! -- BoD -- 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: Just in section
Actually I forgot to say this: it would be very cool if there was an API to make custom Lock Screen apps ;) -- BoD -- 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: The Blinking Activity of Death
The problem is, this happens randomly, on several unrelated Activities and there are no problems 99% of the time. By the way I meant onCreate (not onStart) in my previous mail. In some of our Activities, we do lots of things in onCreate that might take too long (for instance in a few of them, we start a query in the main thread). We know it's a bad thing to do and we're in the process of fixing this. We do not see lots of ANRs though. But I was wondering if taking too long in onCreate could somehow lead to this behavior? Thanks again any hint is appreciated, BoD On Apr 13, 3:56 am, gjs garyjamessi...@gmail.com wrote: Hi, Maybe post some of your code for onCreate, onStart, onResume so people can review. Regards On Apr 13, 1:22 am, BoD bodlu...@gmail.com wrote: Ps: I realize my problem is a bit vague, and that I unfortunately have few details to share to help understanding what's going on. Maybe somebody can give me hints on what would be the best course of action to follow the next time I encounter this problem (like look at some specific logs, or put a breakpoint in some specific Android class...) ? Thanks a lot for your help. BoD On Apr 11, 5:53 pm, BoD bodlu...@gmail.com wrote: Hello, We have a problem in our app that happens very rarely - but I have witnessed it several times, on several devices and once on the Emulator. We currently do not know a way to reproduce it. It goes like this: you use the app normally, you click on an item or a button that starts an Activity (it seems it can happen anywhere in the app, and not in one specific Activity). = The Activity, instead of being started normally, seems to be started in a loop, thus producing a nice blinking/stroboscopic effect. Exciting the app by pressing back several times, solves the problem: if we then relaunch it, the problem won't be there and then we usually won't see the problem for a few weeks/months. Hence the Blinking Activity of Death nickname... Reading the logs, it looks like onStart() and onResume() are normally called, again and again. The only warning I see in the logs is this: INFO/UsageStats(102): Unexpected resume of myapp while already resumed in myapp Googling a bit about this (andhttp://stackoverflow.com/questions/3851363/what-is-going-on-with-the-...) didn't help. The Starting activity and Displayed activity bits are logged only once. I checked to be sure our startActivity or startActivityForResult calls are not in any sort of loops. Any idea on what could produce such behavior? Thanks a lot for your help. -- BoD -- 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: The Blinking Activity of Death
Ps: I realize my problem is a bit vague, and that I unfortunately have few details to share to help understanding what's going on. Maybe somebody can give me hints on what would be the best course of action to follow the next time I encounter this problem (like look at some specific logs, or put a breakpoint in some specific Android class...) ? Thanks a lot for your help. BoD On Apr 11, 5:53 pm, BoD bodlu...@gmail.com wrote: Hello, We have a problem in our app that happens very rarely - but I have witnessed it several times, on several devices and once on the Emulator. We currently do not know a way to reproduce it. It goes like this: you use the app normally, you click on an item or a button that starts an Activity (it seems it can happen anywhere in the app, and not in one specific Activity). = The Activity, instead of being started normally, seems to be started in a loop, thus producing a nice blinking/stroboscopic effect. Exciting the app by pressing back several times, solves the problem: if we then relaunch it, the problem won't be there and then we usually won't see the problem for a few weeks/months. Hence the Blinking Activity of Death nickname... Reading the logs, it looks like onStart() and onResume() are normally called, again and again. The only warning I see in the logs is this: INFO/UsageStats(102): Unexpected resume of myapp while already resumed in myapp Googling a bit about this (andhttp://stackoverflow.com/questions/3851363/what-is-going-on-with-the-...) didn't help. The Starting activity and Displayed activity bits are logged only once. I checked to be sure our startActivity or startActivityForResult calls are not in any sort of loops. Any idea on what could produce such behavior? Thanks a lot for your help. -- BoD -- 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] The Blinking Activity of Death
Hello, We have a problem in our app that happens very rarely - but I have witnessed it several times, on several devices and once on the Emulator. We currently do not know a way to reproduce it. It goes like this: you use the app normally, you click on an item or a button that starts an Activity (it seems it can happen anywhere in the app, and not in one specific Activity). = The Activity, instead of being started normally, seems to be started in a loop, thus producing a nice blinking/stroboscopic effect. Exciting the app by pressing back several times, solves the problem: if we then relaunch it, the problem won't be there and then we usually won't see the problem for a few weeks/months. Hence the Blinking Activity of Death nickname... Reading the logs, it looks like onStart() and onResume() are normally called, again and again. The only warning I see in the logs is this: INFO/UsageStats(102): Unexpected resume of myapp while already resumed in myapp Googling a bit about this (and http://stackoverflow.com/questions/3851363/what-is-going-on-with-the-unexpected-resume-of-packagename-while-already-resum) didn't help. The Starting activity and Displayed activity bits are logged only once. I checked to be sure our startActivity or startActivityForResult calls are not in any sort of loops. Any idea on what could produce such behavior? Thanks a lot for your help. -- BoD -- 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: Grab phonebook-contacts via ContactsContract-API
If I may intervene. It seems to me that the OP wants to synchronize contacts using the sync adapters APIs, and therefore wants to have his own account type, and raw contacts in this account. But that means that when the user first starts using this app, this account will be empty, and will synchronize... nothing. Instead, they probably expect to synchronize the contacts already on their phones (in the local account, or, more probably, in the gmail account). -- BoD On Jan 19, 9:02 am, Dmitri Plotnikov dplotni...@google.com wrote: I am sorry. I guess I just don't understand the requirements. I thought you were writing a sync adapter. Sync adapters all deal with their own accounts. Google sync adapter deals with google accounts, exchange adapter with exchange accounts and so on. If you are thinking of writing a sync adapter that would handle data already handled by some other sync adapter, it is probably a bad idea. The framework is not designed to have multiple sync adapters handling the same data: only one syncadapter can take advantage of data versioning. This why I suggested that if you are writing a sync adapter, you should introduce a new account type. This is how they are supposed to work by design. Cheers, Dmitri On Jan 18, 2011 5:43 PM, L0rdAli3n 42.john.doe.1...@googlemail.com wrote: Thanks for your answer Dmitri! Could you explain in few words, how I can use the contacts the user stored on his phone, which in fact all have already an account_type, by introducing my own accout_type? On 14 Jan., 16:26, Dmitri Plotnikov dplotni...@google.com wrote: I don't fully understand your requirements, but it shouldn't matter what _other_ data is in the contacts DB. A sync adapter should only deal with its own data. Why not introduce a new account type for this purpose? Cheers, Dmitri On Jan 14, 2011 5:16 AM, L0rdAli3n 42.john.doe.1...@googlemail.com wrote: Hey, I'm totally stuck with the ContactsContract-API. Point is that I want only mess around with the Contacts saved in the local phonebook. But it seems that every vendor but its own account_type for those contacts. And its even worse. The AccountManager isn't even aware of all account_types?!? For example on my HTC Desire with HTC Sense, the account_type all local contacts are saved in is: com.htc.android.pcsc. But when I grab a list of all available accounts from the AccountManager: This account is not in the list!? I also tested it on a Samsung Galaxy. Same here: The AccountManager is not aware of the account_type used for local phonebookcontacts. The whole story is that I wan't to write a app to sync my locale phonebook with OpenXchange. I guess I got that whole new ContactsContract-API wrong, but I don't see any other way, then using RawContacts. Due to that I have to care about the account_type, which is in fact a total mess. Hopefully someone can point me in the right direction. Every hint is highly 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.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] Conflicts with framework classes
Hi! I have a project that uses a library (a jar file in the project) that defines classes in the javax.sip package. Until now it worked fine. But when trying in a 2.3 emulator, it appears that the same classes (but probably a different version) already exist in the framework, and that causes problems. I was kind of assuming that in such cases the project classes would take over but in my instance it seems it's not the case. Is this behavior expected or an anomaly? If it's the expected behavior, how should this be handled? Thanks a lot for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Conflicts with framework classes
Thanks a lot for your answer. You probably think of jarjar links (http://code.google.com/p/ jarjar/). I'm a bit surprised though because I seem to remember 'redefining' other libraries (HttpClient, and some XML lib) and we never had a problem. If somebody from the Android team could confirm this, it would be greatly appreciated. Thanks a lot! BoD On Dec 9, 5:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Dec 9, 2010 at 10:53 AM, BoD bodl...@gmail.com wrote: I was kind of assuming that in such cases the project classes would take over but in my instance it seems it's not the case. Is this behavior expected or an anomaly? That behavior is expected. AFAIK, the project cannot override the OS's classes. If it's the expected behavior, how should this be handled? Either stop using that JAR, or convert it to a new package. There's a utility for that floating around, though I forget the name and don't have a link -- sorry! -- 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 *Advanced* Android Development_ Version 1.9 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: Custom Account / Sync adapter: inability to edit contacts?
Thank you so much, that confirms what I was afraid of. Starred it; hope this will be taken care of soon. Until then, making a custom account / sync adapter is not really an option. Like other commenters in this issue, unfortunately we only realize that fact after doing most of the job :( BoD On Sep 15, 1:19 am, joebowbeer joe.bowb...@gmail.com wrote: Seehttp://code.google.com/p/android/issues/detail?id=5988 On Sep 14, 3:09 am, BoD bodl...@gmail.com wrote: So apparently the answer is no... :( BoD On Sep 14, 10:37 am, Kostya Vasilyev kmans...@gmail.com wrote: I believe there was some info on this in the old thread. -- Kostya Vasilyev --http://kmansoft.wordpress.com 14.09.2010 12:21 пользователь BoD bodl...@gmail.com написал: custom contacts are assumed to be sufficiently different from standard ones, and so the built-in... How disappointing. Is there a mechanism to inject your own contact editing Activity into the Contact app? BoD PS: I did use search thank you very much - the only related threads I found were unanswered as I mentioned, maybe you could point me to the relevant thread? On Sep 14, 10:01 am, Kostya Vasilyev kmans...@gmail.com wrote: This came up on this list before... 14.09.2010 11:48 пользователь BoD bodl...@gmail.com написал: Anybody please? I saw this question was asked several times in the past but never answered... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- 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: Custom Account / Sync adapter: inability to edit contacts?
Anybody please? I saw this question was asked several times in the past but never answered. The official documentation doesn't help either. The ability to add a custom contact sync provider is somewhat useless if users then cannot edit the contacts - so I really think it's an important question. Thank you very much for your help. BoD On Sep 13, 2:46 pm, BoD bodl...@gmail.com wrote: Hi! When creating a custom account and/or sync adapter, raw_contacts that belong to your custom account can be created. But it looks like that they then cannot be edited with the Contact app! Is this a known limitation, or a problem in my code? Thanks a lot for your help. BoD -- 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: Custom Account / Sync adapter: inability to edit contacts?
custom contacts are assumed to be sufficiently different from standard ones, and so the built-in contact editor wouldn't know how to edit them anyway. How disappointing. Is there a mechanism to inject your own contact editing Activity into the Contact app? BoD PS: I did use search thank you very much - the only related threads I found were unanswered as I mentioned, maybe you could point me to the relevant thread? On Sep 14, 10:01 am, Kostya Vasilyev kmans...@gmail.com wrote: This came up on this list before - use search. Basically, the idea is that custom contacts are assumed to be sufficiently different from standard ones, and so the built-in contact editor wouldn't know how to edit them anyway. -- Kostya Vasilyev --http://kmansoft.wordpress.com 14.09.2010 11:48 пользователь BoD bodl...@gmail.com написал: Anybody please? I saw this question was asked several times in the past but never answered. The official documentation doesn't help either. The ability to add a custom contact sync provider is somewhat useless if users then cannot edit the contacts - so I really think it's an important question. Thank you very much for your help. BoD On Sep 13, 2:46 pm, BoD bodl...@gmail.com wrote: Hi! When creating a custom account and/or ... -- 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: Custom Account / Sync adapter: inability to edit contacts?
So apparently the answer is no... :( BoD On Sep 14, 10:37 am, Kostya Vasilyev kmans...@gmail.com wrote: I believe there was some info on this in the old thread. -- Kostya Vasilyev --http://kmansoft.wordpress.com 14.09.2010 12:21 пользователь BoD bodl...@gmail.com написал: custom contacts are assumed to be sufficiently different from standard ones, and so the built-in... How disappointing. Is there a mechanism to inject your own contact editing Activity into the Contact app? BoD PS: I did use search thank you very much - the only related threads I found were unanswered as I mentioned, maybe you could point me to the relevant thread? On Sep 14, 10:01 am, Kostya Vasilyev kmans...@gmail.com wrote: This came up on this list before... 14.09.2010 11:48 пользователь BoD bodl...@gmail.com написал: Anybody please? I saw this question was asked several times in the past but never answered... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- 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] Custom Account / Sync adapter: inability to edit contacts?
Hi! When creating a custom account and/or sync adapter, raw_contacts that belong to your custom account can be created. But it looks like that they then cannot be edited with the Contact app! Is this a known limitation, or a problem in my code? Thanks a lot for your help. BoD -- 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: License Verification Library: ServerManagedPolicy, no connectivity = dontAllow?
Thanks a lot for your reply. I'm going to implement my own Policy then. Issue starred. BoD On Aug 7, 1:03 am, Trevor Johns tjo...@google.com wrote: Yes, with the default policy implementations, this is what happens. You can write a custom policy that behaves differently if you want, but we currently don't provide any indicator to the application as to the cause of the license failure. Probably a good thing, I opened a feature request for you here:http://code.google.com/p/marketlicensing/issues/detail?id=12 For now, the recommend behavior is to just have a retry button when the license check fails. -- Trevor Johns Google Developer Programs, Androidhttp://developer.android.com On Fri, Aug 6, 2010 at 1:55 PM, BoD bodl...@gmail.com wrote: Isn't it strange that if the device is offline, this gives the same reply as if the application is not authorized?! And the code can't distinct these two cases? In effect I don't see how you are supposed to use this policy. If you receive dontAllow the first time, what are you supposed to do? BoD On Aug 6, 6:32 pm, String sterling.ud...@googlemail.com wrote: My experience so far is the same. It's not what's described in the docs: ServerManagedPolicy is a flexible Policy that uses settings provided by the licensing server to manage response caching and access to the application while the device is offline (such as when the user is on an airplane). I can see why the initial license check would return disallowed if the device is offline. But after a successful check, my understanding is that the result be cached for a while, producing an allowed response. Which isn't what I'm seeing either. String On Aug 5, 11:18 pm, BoD bodl...@gmail.com wrote: Hi, I'm still experimenting with the LVL and I noticed that, with the recommended strategy (ServerManagedPolicy), in case of no connectivity, the callback's dontAllow() method is called. This seems a bit odd to me and I wanted to make sure this is the expected behavior, and not a bug on my side. Thanks a lot for your help, BoD -- 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: License Verification Library: ServerManagedPolicy, no connectivity = dontAllow?
Ok I understand now. Maybe this behavior should be made a bit more explicit in the documentation since this is the recommended policy and I guess most developers will use it without trying to implement their own - resulting in false negatives for the users. Thanks, BoD On Aug 7, 1:25 pm, String sterling.ud...@googlemail.com wrote: On Aug 6, 9:55 pm, BoD bodl...@gmail.com wrote: Isn't it strange that if the device is offline, this gives the same reply as if the application is not authorized?! And the code can't distinct these two cases? The Policy code does get distinct responses, it just boils it down to either allow or disallow before it gets to your callback. If the device is offline, and no response has been cached, it's really a matter of opinion if that user should be allowed or not. My opinion is that disallow makes sense in this case. String -- 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: License Verification Library: ServerManagedPolicy, no connectivity = dontAllow?
Anyone? Thanks! BoD On Aug 6, 12:18 am, BoD bodl...@gmail.com wrote: Hi, I'm still experimenting with the LVL and I noticed that, with the recommended strategy (ServerManagedPolicy), in case of no connectivity, the callback's dontAllow() method is called. This seems a bit odd to me and I wanted to make sure this is the expected behavior, and not a bug on my side. Thanks a lot for your help, BoD -- 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: License Verification Library: ServerManagedPolicy, no connectivity = dontAllow?
Isn't it strange that if the device is offline, this gives the same reply as if the application is not authorized?! And the code can't distinct these two cases? In effect I don't see how you are supposed to use this policy. If you receive dontAllow the first time, what are you supposed to do? BoD On Aug 6, 6:32 pm, String sterling.ud...@googlemail.com wrote: My experience so far is the same. It's not what's described in the docs: ServerManagedPolicy is a flexible Policy that uses settings provided by the licensing server to manage response caching and access to the application while the device is offline (such as when the user is on an airplane). I can see why the initial license check would return disallowed if the device is offline. But after a successful check, my understanding is that the result be cached for a while, producing an allowed response. Which isn't what I'm seeing either. String On Aug 5, 11:18 pm, BoD bodl...@gmail.com wrote: Hi, I'm still experimenting with the LVL and I noticed that, with the recommended strategy (ServerManagedPolicy), in case of no connectivity, the callback's dontAllow() method is called. This seems a bit odd to me and I wanted to make sure this is the expected behavior, and not a bug on my side. Thanks a lot for your help, BoD -- 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] License Verification Library: ServerManagedPolicy, no connectivity = dontAllow?
Hi, I'm still experimenting with the LVL and I noticed that, with the recommended strategy (ServerManagedPolicy), in case of no connectivity, the callback's dontAllow() method is called. This seems a bit odd to me and I wanted to make sure this is the expected behavior, and not a bug on my side. Thanks a lot for your help, BoD -- 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] License Verification Library: getting error NOT_MARKET_MANAGED
Hi! I'm trying to integrate the LVL to my app, and I followed the 'Licensing Your Applications' document [1]. For some reason I'm receiving the ERROR_NOT_MARKET_MANAGED error, although my app (package: org.jraf.android.logcatlivewallpaper) is indeed available in the Market. I suppose I made a mistake is on my side but all I did is follow the document (I used the ServerManagedPolicy and the AESObfuscator), so I don't see what I could have done wrong. Any idea? Thanks a lot for you help. BoD [1]: http://developer.android.com/guide/publishing/licensing.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: License Verification Library: getting error NOT_MARKET_MANAGED
All right I'm sorry I didn't see this has been addressed before. The problem was that the version code of the calling app has to be greater than or equal to the one that is published. I had incremented it as part of my test, that's why it didn't work. Thanks, BoD On Aug 4, 5:59 pm, BoD bodl...@gmail.com wrote: Hi! I'm trying to integrate the LVL to my app, and I followed the 'Licensing Your Applications' document [1]. For some reason I'm receiving the ERROR_NOT_MARKET_MANAGED error, although my app (package: org.jraf.android.logcatlivewallpaper) is indeed available in the Market. I suppose I made a mistake is on my side but all I did is follow the document (I used the ServerManagedPolicy and the AESObfuscator), so I don't see what I could have done wrong. Any idea? Thanks a lot for you help. BoD [1]:http://developer.android.com/guide/publishing/licensing.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with startManagingCursor
Hello! I'm experiencing a problem that I fail to understand, maybe somebody can help. I'm using a MergeCursor in a ListActivity and a ResourceCursorAdapter. The MergeCursor consists of several Cursors that come from regular ContentProvider queries. After constructing the MergeCursor, I call startManagingCursor on it - I followed that pattern before without a problem. My problem is that sometimes (not all the time), going to another Activity and coming back, I receive this exception: android.database.StaleDataException: Access closed cursor at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java: 175) at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java: 99) at android.database.CursorWrapper.getLong(CursorWrapper.java:127) at android.database.MergeCursor.getLong(MergeCursor.java:142) at android.widget.CursorAdapter.getItemId(CursorAdapter.java:156) at android.widget.AdapterView.rememberSyncState(AdapterView.java: 1085) at android.widget.AdapterView $AdapterDataSetObserver.onChanged(AdapterView.java:784) at android.database.DataSetObservable.notifyChanged(DataSetObservable.java: 31) at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50) at android.widget.CursorAdapter $MyDataSetObserver.onChanged(CursorAdapter.java:385) at android.database.DataSetObservable.notifyChanged(DataSetObservable.java: 31) at android.database.AbstractCursor.requery(AbstractCursor.java:97) at android.database.sqlite.SQLiteCursor.requery(SQLiteCursor.java: 561) at android.database.CursorWrapper.requery(CursorWrapper.java:211) at android.database.MergeCursor.requery(MergeCursor.java:247) at android.app.Activity.performRestart(Activity.java:3522) at android.app.ActivityThread.performRestartActivity(ActivityThread.java: 2967) at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 160) at android.app.LocalActivityManager.startActivity(LocalActivityManager.java: 321) (...) My understanding of it is that my managed cursor was deactivated, then going back it is requeried, but doing so a notification is sent to my adapter (DataSetObservable.notifyChanged). So the adapter then tries to access the cursor... which is in the middle of the requery, and so this exception is raised! What did I do wrong? Thanks, BoD -- 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] Platform Versions page on android.com
Please, Google, could you update this page: http://developer.android.com/intl/fr/resources/dashboard/platform-versions.html It dates from January, and I bet the data are now different. (maybe you guys could come up with a 'scheduled job' so this page is *always* up to date...) Thanks a lot! BoD -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] What to do when you have non Java (framework) crashes?
Hi! I'm experiencing crashes that don't produce a force close message. Instead, the app exits immediately without an error message. In the log, it seems the problem is inside the framework's libraries but I don't really know how to interpret it. Here it is: === 11-25 14:51:12.559: INFO/DEBUG(1930): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-25 14:51:12.569: INFO/DEBUG(1930): Build fingerprint: 'android- devphone1/dream_devphone/dream/trout:1.6/DRC83/14721:userdebug/test- keys' 11-25 14:51:12.569: INFO/DEBUG(1930): pid: 2499, tid: 2500 com.voxmobili.phonebook 11-25 14:51:12.569: INFO/DEBUG(1930): signal 11 (SIGSEGV), fault addr 0004 11-25 14:51:12.569: INFO/DEBUG(1930): r0 0004 r1 40026788 r2 0004 r3 ad32d699 11-25 14:51:12.569: INFO/DEBUG(1930): r4 r5 r6 ad34e599 r7 4000bfb8 11-25 14:51:12.569: INFO/DEBUG(1930): r8 100ffd00 r9 4000bfb0 10 4000bfa0 fp 0001 11-25 14:51:12.569: INFO/DEBUG(1930): ip ad372c84 sp 100ffce8 lr ad32d6a3 pc afb04408 cpsr 0010 11-25 14:51:14.229: INFO/DEBUG(1930): #00 pc 4408 / system/lib/libcutils.so 11-25 14:51:14.229: INFO/DEBUG(1930): #01 lr ad32d6a3 / system/lib/libandroid_runtime.so 11-25 14:51:14.229: INFO/DEBUG(1930): stack: 11-25 14:51:14.229: INFO/DEBUG(1930): 100ffca8 2bcc 11-25 14:51:14.229: INFO/DEBUG(1930): 100ffcac 0003 11-25 14:51:14.229: INFO/DEBUG(1930): 100ffcb0 00da 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcb4 01b8 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcb8 100ffd00 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcbc 42046700 /data/ dalvik-cache/sys...@framework@framework@classes.dex 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcc0 0001 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcc4 42046700 /data/ dalvik-cache/sys...@framework@framework@classes.dex 11-25 14:51:14.239: INFO/DEBUG(1930): 100ffcc8 0001 11-25 14:51:14.249: INFO/DEBUG(1930): 100ffccc afe39dd4 /system/ lib/libc.so 11-25 14:51:14.249: INFO/DEBUG(1930): 100ffcd0 a000 [heap] 11-25 14:51:14.249: INFO/DEBUG(1930): 100ffcd4 410b70f0 /dev/ ashmem/dalvik-LinearAlloc (deleted) 11-25 14:51:14.249: INFO/DEBUG(1930): 100ffcd8 100ffd30 11-25 14:51:14.259: INFO/DEBUG(1930): 100ffcdc 000d 11-25 14:51:14.259: INFO/DEBUG(1930): 100ffce0 df002777 11-25 14:51:14.259: INFO/DEBUG(1930): 100ffce4 e3a070ad 11-25 14:51:14.259: INFO/DEBUG(1930): #00 100ffce8 11-25 14:51:14.259: INFO/DEBUG(1930): 100ffcec ad32d6a3 /system/ lib/libandroid_runtime.so 11-25 14:51:14.269: INFO/DEBUG(1930): 100ffcf0 100ffd20 11-25 14:51:14.269: INFO/DEBUG(1930): 100ffcf4 ad34e5a9 /system/ lib/libandroid_runtime.so 11-25 14:51:14.269: INFO/DEBUG(1930): 100ffcf8 40026788 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffcfc ad00e438 /system/ lib/libdvm.so 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd00 410b70f0 /dev/ ashmem/dalvik-LinearAlloc (deleted) 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd04 00117970 [heap] 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd08 ad34e599 /system/ lib/libandroid_runtime.so 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd0c 40026788 /dev/ ashmem/mspace/dalvik-heap/zygote/0 (deleted) 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd10 1071 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd14 00117970 [heap] 11-25 14:51:14.279: INFO/DEBUG(1930): 100ffd18 100ffd20 11-25 14:51:14.299: INFO/DEBUG(1930): 100ffd1c ad040b11 /system/ lib/libdvm.so 11-25 14:51:14.299: INFO/DEBUG(1930): 100ffd20 4000bfb0 11-25 14:51:14.299: INFO/DEBUG(1930): 100ffd24 420d484a /data/ dalvik-cache/sys...@framework@framework@classes.dex 11-25 14:51:14.299: INFO/DEBUG(1930): 100ffd28 ad34e599 /system/ lib/libandroid_runtime.so 11-25 14:51:14.299: INFO/DEBUG(1930): 100ffd2c 100ffd98 === What to do when this happens? Thanks! BoD -- 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 to do when you have non Java (framework) crashes?
Thanks a lot. = http://code.google.com/p/android/issues/detail?id=5038 I'm hope somebody will see this... Until then... I guess I can try to see if I can pinpoint what exact call produces the crash... BoD On Nov 25, 3:12 pm, Mark Murphy mmur...@commonsware.com wrote: I'm experiencing crashes that don't produce a force close message. Instead, the app exits immediately without an error message. In the log, it seems the problem is inside the framework's libraries but I don't really know how to interpret it. For all intents and purposes, these are bugs in Android proper. I know of nothing that a Java developer can do that will cause one. At minimum, post what you posted here as an issue onhttp://b.android.com, with as much information as you can provide about what triggers this crash. Better yet, if you can upload some source code that reproduces the crash, that'll help get it fixed. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Updated Android Market Developer Distribution Agreement?
I'm sorry I know this is slightly off-topic, but since there is no group about the market... When I'm logging in to the Market console, I'm asked to agree with the updated Android Market Developer Distribution Agreement. Is there any info/announcement anywhere highlighting and explaining the differences with the previous agreement? Thanks a lot! BoD -- 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 2.0: Browser/WebView can no longer load fonts?
Here is the associated bug: http://code.google.com/p/android/issues/detail?id=4448 BoD On Oct 29, 11:57 pm, BoD bodl...@gmail.com wrote: Hi, --~--~-~--~~~---~--~~ 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] Android 2.0: Browser/WebView can no longer load fonts?
Hi, I have a web page that uses a custom font, using this CSS piece of code: @font-face { font-family: myfont; src: url('../../fonts/myfont.ttf'); } .myclass { font-family: 'myfont'; } If I load the page in the browser in Android 1.1, 1.5 or 1.6, this technique works fine, the font is downloaded and used. But these were the good times. Now this is all gone. With 2.0 my declaration is ignored, the default font is used, and I'm sad! This is in the Browser app, and in my app that uses a WebView :( Is this a known new limitation? 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] 1.6 images for the ADP1 from HTC!
Maybe it has been announced already and I missed it, but just in case: = http://developer.htc.com/adp.html ! BoD --~--~-~--~~~---~--~~ 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: Widgets changes with 1.6?
Thanks for the replies. Ill try to make a canonical (as simple as possible) Widget project and start from here. BoD On Sep 22, 2:19 am, Christopher ch1...@gmail.com wrote: I have awidgetthat updates every hour and is working fine. However does anyone else have the problem that on install on a1.6 system that their app asks for permission to phone calls and storage? Not a problem in 1.5, but even Hello World asks for it on1.6roms. Chris On Sep 20, 4:15 pm, BoD bodl...@gmail.com wrote: Hi! I'm developing aWidgetthat updates every 10 seconds (android:updatePeriodMillis=1). On the 1.5 emulator, as well as on my adp1, it works as expected. On the1.6emulator, my widgets are not updated. Apparently, AppWidgetProvider.onUpdate(...) is never called. Is there something I missed? Thanks a lot, BoD --~--~-~--~~~---~--~~ 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: Widgets changes with 1.6?
Well, I tried to remove the onReceive() hack to fix the 1.5 onDelete bug, but it didn't change anything. When adding logging, it really shows that onReceive() is actually never called by the system every x milliseconds as it should. Which is... worrying! Anybody from Android team? :) Thanks a lot! BoD On Sep 21, 5:33 pm, Norbert moehrin...@googlemail.com wrote: Hi BoD, I'm having the same issue with my widget. It's working fine in 1.5 I'm wondering if this has to do with the bugfix for the onDelete()- Call in 1.5. Norbert --~--~-~--~~~---~--~~ 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] Widgets changes with 1.6?
Hi! I'm developing a Widget that updates every 10 seconds (android:updatePeriodMillis=1). On the 1.5 emulator, as well as on my adp1, it works as expected. On the 1.6 emulator, my widgets are not updated. Apparently, AppWidgetProvider.onUpdate(...) is never called. Is there something I missed? Thanks a lot, BoD --~--~-~--~~~---~--~~ 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] ListActivity: items with a button
Hi! I'm sure this is a classic question, but I couldn't find the answer anywhere. I'm trying to have a ListActivity whose items feature a button. As soon as I include the button on my item layout, the rows are no longer selectable. Any pointers to tutorials or sample code would be much appreciated! Thanks. BoD --~--~-~--~~~---~--~~ 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: AppWidget: help with setOnClickPendingIntent()
Replying to my own post for future reference. This is due to the way PendingIntents work and are automatically reused. Quoting the PendingIntent Javadoc: If the creating application later re-retrieves the same kind of PendingIntent (same operation, same Intent action, data, categories, and components, and same flags), it will receive a PendingIntent representing the same token if that is still valid, and can thus call cancel() to remove it. BoD On Jun 14, 9:19 pm, BoD bodl...@gmail.com wrote: Hi! I'm making a little AppWidget that should be configured when you first add it and also when you click on it. I figured, since clicking on it should do the same as the creation event, why not try to use the same code? My configuration Activity should not know or care, whether it was called for a creation event or an already exists, wants to be configured event. So I extend AppWidgetProvider, create a RemoteViews for my AppWidget and do this in onUpdate(): Intent intent = new Intent(context, ConfigureActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); PendingIntent pendingIntent = PendingIntent.getActivity (context, 0, intent, 0); views.setOnClickPendingIntent(R.id.buttonImage, pendingIntent); For some reason it's not working as I'd like: in my ConfigureActivity when I look at getIntent().getExtras ().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID), it returns always the same id: the first one that was configured. Now the strange part: if in the code above I add this line: intent.setData(ContentUris.withAppendedId(Uri.EMPTY, appWidgetId)); then it works correctly and in my ConfigureActivity getIntent ().getExtras().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) returns the correct id, the id of the widget I clicked on. Surely there is an explanation but I don't see it. Please help! :) Thanks a lot! BoD --~--~-~--~~~---~--~~ 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] AppWidget: help with setOnClickPendingIntent()
Hi! I'm making a little AppWidget that should be configured when you first add it and also when you click on it. I figured, since clicking on it should do the same as the creation event, why not try to use the same code? My configuration Activity should not know or care, whether it was called for a creation event or an already exists, wants to be configured event. So I extend AppWidgetProvider, create a RemoteViews for my AppWidget and do this in onUpdate(): Intent intent = new Intent(context, ConfigureActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); PendingIntent pendingIntent = PendingIntent.getActivity (context, 0, intent, 0); views.setOnClickPendingIntent(R.id.buttonImage, pendingIntent); For some reason it's not working as I'd like: in my ConfigureActivity when I look at getIntent().getExtras ().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID), it returns always the same id: the first one that was configured. Now the strange part: if in the code above I add this line: intent.setData(ContentUris.withAppendedId(Uri.EMPTY, appWidgetId)); then it works correctly and in my ConfigureActivity getIntent ().getExtras().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) returns the correct id, the id of the widget I clicked on. Surely there is an explanation but I don't see it. Please help! :) Thanks a lot! BoD --~--~-~--~~~---~--~~ 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] Voice search on ADP1 + 1.5: 'Connection problem'
Hi. Since I installed the 1.5 firmware from HTC's website on my ADP1, the voice search feature doesn't work and gives immediately a 'Connection problem' message. I don't think it's a network problem since everything else works normally. I don't know if this is might be the problem, but I'm not in the US (but in France). Thanks for your help! BoD --~--~-~--~~~---~--~~ 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: Get image URI from camera?
Just FYI, this bug might be relevant: http://code.google.com/p/android/issues/detail?id=1480 Basically, the existing MediaStore.ACTION_IMAGE_CAPTURE intent is probably all what you need, the only problem is the returned image is not full-sized. BoD On May 7, 4:37 pm, Anna PS annapowellsm...@googlemail.com wrote: Hi Mark, I've used thecameracode from the Advanced Android book and it's working nicely. Thank you. Just a couple of basic questions (for Mark, or anyone else) about the retrieval/URIissue, both assuming the photo is saved on the SD card as photo.jpg. 1. Thumbnail display. When I go back to the first screen of the application, I want to show an ImageView of the jpeg that the user has just taken. Current code, which doesn't work because it's not looking in the SD card: bmp = BitmapFactory.decodeStream(openFileInput(photo.jpg)); iv.setImageBitmap(bmp); This gives the error: java.IO.FileNotFoundException: /data/data/ com.android.filename/files/photo.jpg. How can I ask BitmapFactory to look in the SD card for the jpeg? 2. Uploading the jpeg - I would like to convert the jpeg to a byte[] array, to upload it as part of a FilePart. Again, how can I retrieve the jpeg from the SD card to do this? My previous code used a mediaURIto retrieve a bitmap, compress it into a jpeg and write it to a byte array. This worked, but now I need to replace this with a reference to photo.jpg: Bitmap bitmap; ByteArrayOutputStream imageByteStream; byte[] imageByteArray = null; bitmap = android.provider.MediaStore.Images.Media.getBitmap (getContentResolver(),uri); imageByteStream = new ByteArrayOutputStream(); if (bitmap == null) { Log.d(LOG_TAG, No bitmap); } // Compress bmp to jpg, write to the byte output stream bitmap.compress(Bitmap.CompressFormat.JPEG, 80, imageByteStream); // Turn the byte stream into a byte array imageByteArray = imageByteStream.toByteArray(); Thanks again, Anna On May 7, 1:14 am, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: What I don't know is what to launch when the user clicks on it. A modified version of theCamera class, or something like MediaStore.ACTION_IMAGE_CAPTURE? I haven't used the latter, so I can't comment on it. I need to (a) display the photo as a thumbnail on the activity's home screen, and (b) upload the photo as part of a multipart message. In both cases I need some way to refer back to the photo that the user has taken. I'm assuming the only way is via aURI? Is there another way? In terms of the thumbnail, you can either let Android scale it automatically from a file or use Bitmap to scale it under your control and hand the Bitmap to the ImageView. Neither of those requires aURI. I don't know how you intend to send the email and therefore what might be required for it. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugger not working for AppWidgets?
Thanks for your answer! Well my breakpoints are in a class that extends AppWidgetProvider, does that that apply? Also, what's an easy way to do debug the acore process? BoD On May 9, 4:17 am, Romain Guy romain...@google.com wrote: If you set breakpoints in views, you'd have to debug the acore process (Home's process.) On Fri, May 8, 2009 at 7:13 PM, BoD bodl...@gmail.com wrote: Hi! I'm trying to make an AppWidget, and for some reason the Eclipse debugger doesn't suspend on any of the breakpoints I set (but I know the code is executed because I see it working on the emulator). I don't have this problem with other 'regular' apps (non AppWidgets). Is this a known limitation, or is it just a problem on my installation? Thanks a lot! BoD -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 'Take a picture' intent on 1.5 - anybody please? ;)
I'm really sorry to insist :) It's just that I didn't find a definitive answer anywhere so I was really hoping somebody from Google could quickly answer. Is there another intent to use or a parameter to the ACTION_IMAGE_CAPTURE one, to simply take a full-sized picture (should be 2048x1536 on the adp1)? I'd really like to know, because - correct me if I'm wrong - if the answer is that it's not currently possible, I'm gonna have to implement my own little 'Camera'-like app just to do that... Thanks a lot. BoD On May 5, 12:24 am, BoD bodl...@gmail.com wrote: Anyone? Thanks for your help! BoD On May 4, 12:46 am, BoD bodl...@gmail.com wrote: Hi! Following this old thread:http://groups.google.com/group/android-developers/browse_thread/threa... and this issue:http://code.google.com/p/android/issues/detail?id=1480 I tried the following piece of code to take a picture on 1.5: private void takePic2() { final Intent imageCaptureIntent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment .getExternalStorageDirectory(), test.jpg))); startActivityForResult(imageCaptureIntent, 1); } It works but the resulting image is 512x384 (on the ADP1). The doc says If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT. But 512x384 looks rather 'small-sized' to me! So what is the correct way to get the full-sized version? Thanks a lot for your help! BoD --~--~-~--~~~---~--~~ 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: 'Take a picture' intent on 1.5 - anybody please? ;)
Thanks a lot for your answer! Well I'm guessing this means I have to instruct the user to press the back button after they took the picture (to go back to my own activity), which is not ideal... It's too bad cause the ACTION_IMAGE_CAPTURE one is exactly what I want - except the result image is low res :( Thanks BoD On May 6, 6:17 pm, bra...@gmail.com peacoc...@gmail.com wrote: Bod - as far as I know there is no intent just to snap a picture. What you can do is call the camera intent to start the camera app itself and use that to take your image then use the last URI it generated as the source for whatever you want. On May 6, 6:03 am, BoD bodl...@gmail.com wrote: I'm really sorry to insist :) It's just that I didn't find a definitive answer anywhere so I was really hoping somebody from Google could quickly answer. Is there another intent to use or a parameter to the ACTION_IMAGE_CAPTURE one, to simply take a full-sized picture (should be 2048x1536 on the adp1)? I'd really like to know, because - correct me if I'm wrong - if the answer is that it's not currently possible, I'm gonna have to implement my own little 'Camera'-like app just to do that... Thanks a lot. BoD On May 5, 12:24 am, BoD bodl...@gmail.com wrote: Anyone? Thanks for your help! BoD On May 4, 12:46 am, BoD bodl...@gmail.com wrote: Hi! Following this old thread:http://groups.google.com/group/android-developers/browse_thread/threa... and this issue:http://code.google.com/p/android/issues/detail?id=1480 I tried the following piece of code to take a picture on 1.5: private void takePic2() { final Intent imageCaptureIntent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment .getExternalStorageDirectory(), test.jpg))); startActivityForResult(imageCaptureIntent, 1); } It works but the resulting image is 512x384 (on the ADP1). The doc says If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT. But 512x384 looks rather 'small-sized' to me! So what is the correct way to get the full-sized version? Thanks a lot for your help! BoD --~--~-~--~~~---~--~~ 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.intent.extra.videoQuality not working for image capturing
I too really would like to know the answer to that question. Help please :) BoD On May 4, 2:41 pm, Guillaume Perrot guillaume.p...@gmail.com wrote: When looking at the documentation, we can see that the intent whose action is ACTION_IMAGE_CAPTURE can have the EXTRA_VIDEO_QUALITY argument: --~--~-~--~~~---~--~~ 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: 'Take a picture' intent on 1.5
Anyone? Thanks for your help! BoD On May 4, 12:46 am, BoD bodl...@gmail.com wrote: Hi! Following this old thread:http://groups.google.com/group/android-developers/browse_thread/threa... and this issue:http://code.google.com/p/android/issues/detail?id=1480 I tried the following piece of code to take a picture on 1.5: private void takePic2() { final Intent imageCaptureIntent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment .getExternalStorageDirectory(), test.jpg))); startActivityForResult(imageCaptureIntent, 1); } It works but the resulting image is 512x384 (on the ADP1). The doc says If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT. But 512x384 looks 'rather small-sized' to me! So what the correct way to get the full-sized version? Thanks a lot for your help! BoD --~--~-~--~~~---~--~~ 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] 'Take a picture' intent on 1.5
Hi! Following this old thread: http://groups.google.com/group/android-developers/browse_thread/thread/bbbf540685b2f76f/e4f2095421a698cd and this issue: http://code.google.com/p/android/issues/detail?id=1480 I tried the following piece of code to take a picture on 1.5: private void takePic2() { final Intent imageCaptureIntent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(Environment .getExternalStorageDirectory(), test.jpg))); startActivityForResult(imageCaptureIntent, 1); } It works but the resulting image is 512x384 (on the ADP1). The doc says If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT. But 512x384 looks 'rather small-sized' to me! So what the correct way to get the full-sized version? Thanks a lot for your help! BoD --~--~-~--~~~---~--~~ 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] Download Service in 1.5?
Hi! For some reason, I got the impression that there was gonna be a new API or Service in 1.5 to easily ask the system to download a file (instead of having to do everything manually with HttpClient or URL.openConnection, and so on). But I can't find anything in the API docs to that matter. Does anybody know if that was added somewhere (or i it is even planned?). Thanks a lot! BoD --~--~-~--~~~---~--~~ 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] Updated Android Market Developer Distribution Agreement?
I'm sorry I know this is slightly off-topic, but since there is no group about the market... When I'm logging in to the Market console, I'm asked to agree with the updated Android Market Developer Distribution Agreement. Is there any info/announcement anywhere highlighting and explaining the differences with the previous agreement? Thanks a lot! BoD --~--~-~--~~~---~--~~ 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: Saving a picture not in the Camera folder?
Anyone? BoD On Mar 29, 5:48 pm, BoD bodl...@gmail.com wrote: It works fine, except when doing this, the picture is written in the Camera folder (/sdcard/dcim/Camera). Since the picture was not taken with the camera, this is not desirable. Is there any way to put it directly in dcim? --~--~-~--~~~---~--~~ 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] Saving a picture not in the Camera folder?
Hi! I'm trying for my app to create a picture this way: ContentValues contentValues = new ContentValues(3); contentValues.put(MediaColumns.DISPLAY_NAME, name); contentValues.put(ImageColumns.DESCRIPTION, desc); contentValues.put(MediaColumns.MIME_TYPE, image/jpeg); Uri uri = getContentResolver().insert (Media.EXTERNAL_CONTENT_URI, contentValues); outputStream = getContentResolver().openOutputStream(uri); /* write to outputStream then close it */ It works fine, except when doing this, the picture is written in the Camera folder (/sdcard/dcim/Camera). Since the picture was not taken with the camera, this is not desirable. Is there any way to put it directly in dcim? Actually, I also tried to create my file directly (not using the content provider, but creating manually the file in /sdcard/dcim). The problem is doing this way, the Pictures app doesn't seem to see my image until I reboot the phone. Maybe there's a way to notify the Pictures app so it rescans the pictures? Thanks a lot for your help. BoD --~--~-~--~~~---~--~~ 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] Localizing layouts?
Hi! Is it possible to localize layouts (in the same way you can have a 'por' and a 'land' layout? As you may know some languages are less 'verbose' than others, thus sometimes layout adjustments might be needed according to the current language. Thanks for your help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Localizing layouts?
Thanks a lot, I saw this doc but I guess I read it a bit too fast, and I was unsure the suffixing applied also to layouts. Cheers! BoD On Mar 24, 5:27 pm, Mark Murphy mmur...@commonsware.com wrote: BoD wrote: Hi! Is it possible to localize layouts (in the same way you can have a 'por' and a 'land' layout? As you may know some languages are less 'verbose' than others, thus sometimes layout adjustments might be needed according to the current language. Sure! http://developer.android.com/guide/topics/resources/resources-i18n.ht... For English and German, for example, you would need: res/layout-en-land res/layout-de-land res/layout-de (for portrait -- or use layout-de-port) res/layout (for English portrait) The language code must precede the orientation code. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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] Is /cache supposed to be accessible?
Hi! My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns /cache). But apparently it is not accessible, (a FileNotFoundException is thrown). Is this normal? 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: Is /cache supposed to be accessible?
Well ok then :) Actually I was also wondering if there was an API somewhere that I didn't see in the framework to ask for a file download or is the normal way to do that is to do it manually (using HttpClient or URL.openConnection and all that jazz). Thanks a lot! BoD On Mar 18, 3:50 pm, Jean-Baptiste Queru j...@android.com wrote: It's not accessible to applications. JBQ On Wed, Mar 18, 2009 at 7:47 AM, BoD bodl...@gmail.com wrote: Hi! My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns /cache). But apparently it is not accessible, (a FileNotFoundException is thrown). Is this normal? Thanks! -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ 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: Scheduling a repeating task and being notified
Replying myself, for future reference. For the scheduling part I used AlarmManager and a Service as mentioned before. For the notification back part I ended up using sendBroadcast from the service and a BroadcastReceiver on my Activity (registering/ unregistering it in onResume/onPause). It works fine. BoD On Mar 15, 7:22 pm, BoD bodl...@gmail.com wrote: Hi! I'm trying to find the correct way to do the following: . I have an activity with a button that starts a repeating task in the background. That is, if the user goes away from my activity, I want my task to still be scheduled and executed every x minutes. . I want a status TextView to be displayed on the activity, and if the task happens to start executing while my activity is showing, the TextView should be updated so the user can be aware of what's going on. So basically, is there a way to start a scheduled background repeating task and be notified when it is executed? From what I saw in the sample applications, I understand I'm supposed to use AlarmManager and a Service but I'm not sure about the notification part. Thanks a lot for your help. BoD --~--~-~--~~~---~--~~ 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: Scheduling a repeating task and being notified
They are in the same application. The Service is started by the AlarmManager, so I'm not sure about what you mean by the same 'Dalvik process'. I'm also not sure of what you mean by sent(d?)Intent? Thanks a lot! BoD On Mar 16, 2:49 pm, Kenny yxw...@gmail.com wrote: Besides sendBroadcast( ), how about sentIntent( )? Are your service and receiver in the same Dalvik JVM process? Kenny On Mar 16, 6:16 pm, BoD bodl...@gmail.com wrote: Replying myself, for future reference. For theschedulingpart I used AlarmManager and a Service as mentioned before. For the notification back part I ended up using sendBroadcast from the service and a BroadcastReceiver on my Activity (registering/ unregistering it in onResume/onPause). It works fine. BoD On Mar 15, 7:22 pm, BoD bodl...@gmail.com wrote: Hi! I'm trying to find the correct way to do the following: . I have an activity with a button that starts arepeatingtaskin the background. That is, if the user goes away from my activity, I want my taskto still be scheduled and executed every x minutes. . I want a status TextView to be displayed on the activity, and if the taskhappens to start executing while my activity is showing, the TextView should be updated so the user can be aware of what's going on. So basically, is there a way to start a scheduled backgroundrepeating taskand be notified when it is executed? From what I saw in the sample applications, I understand I'm supposed to use AlarmManager and a Service but I'm not sure about the notification part. Thanks a lot for your help. BoD- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Scheduling a repeating task and being notified
Hi! I'm trying to find the correct way to do the following: . I have an activity with a button that starts a repeating task in the background. That is, if the user goes away from my activity, I want my task to still be scheduled and executed every x minutes. . I want a status TextView to be displayed on the activity, and if the task happens to start executing while my activity is showing, the TextView should be updated so the user can be aware of what's going on. So basically, is there a way to start a scheduled background repeating task and be notified when it is executed? From what I saw in the sample applications, I understand I'm supposed to use AlarmManager and a Service but I'm not sure about the notification part. Thanks a lot for your help. BoD --~--~-~--~~~---~--~~ 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] Hint not showing on an EditText if gravity is center?
(first of all, sorry if you saw this message twice, for some reason I have trouble posting to this group, my first message doesn't seem to have been posted) Hi, I don't know if this is a bug or something I'm not doing correctly, but I have a very simple layout with an EditText that has a hint. If I leave its gravity property to default, or if I set it to 'left', it works as intended (hint showing when the text is empty). But if I set it to 'center' or 'center_horizontal', the hint is no longer displayed! Note that it is correctly displayed in the layout editor of Eclipse. Also except for the hint, it works correctly. Any idea? Thanks! BoD --~--~-~--~~~---~--~~ 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: Disable Focus Highlight
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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: Disable Focus Highlight
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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: Disable Focus Highlight
Thanks a lot, I'll try that. BoD On Feb 6, 2009 12:29 AM, Emmanuel emmanuel.ast...@gmail.com wrote: In order not to have the items selectable, I disable them by code ( but it is perhaps doable in the xml files ), in the adapter definition : ListAdapter adapter = new SimpleCursorAdapter(MyList, Layout, c, new String[] { Name, Score }, to) { public boolean areAllItemsEnabled() { return false; } public boolean isEnabled(int position) { return false; } }; and it's ok... Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 12:08 am, BoD bodl...@gmail.com wrote: I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---