Re: [android-developers] Re: [ICS] Did Canvas / drawBitmap change in ICS ?
The Bitmap was created in the Java layer: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/1684ac485c934813f97653d798f16f4c967f4247/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L258 Then, I pass it over to JNI to do some math and pixels manipulation: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/jni/distort_bmp.c#L245 On Sunday, December 9, 2012 11:28:46 PM UTC-8, Romain Guy (Google) wrote: How do you allocate the bitmap exactly? On Dec 9, 2012 7:38 PM, GJTorikian gjtor...@gmail.com javascript: wrote: Sure, but why do I need to do this in the first place? In native JNI code I am modifying each pixel directly. Pre-ICS I did not need to blank out the bitmap. On Sunday, December 9, 2012 3:15:05 PM UTC-8, Romain Guy (Google) wrote: Instead of writing a loop like this you can just call Bitmap.eraseColor(). It's much more efficient. On Sun, Dec 9, 2012 at 11:55 AM, GJTorikian gjtor...@gmail.com wrote: All right, so after days I finally figured it out. After creating my bitmap, I need to set every pixel in Java: for (int x = 0; x 254; x++) { for (int y =0; y 254; y++) { bmp.setPixel(x, y, Color.argb(255, 0, 0, 0)); } } The question is: WHY only for ICS? On Wednesday, December 5, 2012 4:07:38 PM UTC-8, GJTorikian wrote: Hi there— I'm making updates to a live wallpaper I've developed. The wallpaper is currently running correctly on a 2.2 device, but NOT on my 4.2 device. On the ICS device, it seems that only the last column is being correctly drawn. For example, in a coordinate system, if my phone is 420 x 720 (not sure of the exact dimensions), then only pixels (420, 0) through (420, 720) are being drawn. The rest is black / transparent. Here's the code I'm using: https://github.com/**gjto** rikian/Earthbound-Battle-**Backg**rounds/blob/master/src/**com/** miadzin/livewallpaper/**earthbou**nd/**EarthboundLiveWallpaper.**java# **L243https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L243 First, I draw a 256 x 256 bitmap. Then, I use a matrix to scale it. Again, this works fine on a non-ICS device. Another tricky aspect is that I'm using the JNI to do some of the bitmap math, but I still think the problem is in this canvas code somewhere. Thanks for any 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-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-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] Re: [ICS] Did Canvas / drawBitmap change in ICS ?
All right, so after days I finally figured it out. After creating my bitmap, I need to set every pixel in Java: for (int x = 0; x 254; x++) { for (int y =0; y 254; y++) { bmp.setPixel(x, y, Color.argb(255, 0, 0, 0)); } } The question is: WHY only for ICS? On Wednesday, December 5, 2012 4:07:38 PM UTC-8, GJTorikian wrote: Hi there— I'm making updates to a live wallpaper I've developed. The wallpaper is currently running correctly on a 2.2 device, but NOT on my 4.2 device. On the ICS device, it seems that only the last column is being correctly drawn. For example, in a coordinate system, if my phone is 420 x 720 (not sure of the exact dimensions), then only pixels (420, 0) through (420, 720) are being drawn. The rest is black / transparent. Here's the code I'm using: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L243 First, I draw a 256 x 256 bitmap. Then, I use a matrix to scale it. Again, this works fine on a non-ICS device. Another tricky aspect is that I'm using the JNI to do some of the bitmap math, but I still think the problem is in this canvas code somewhere. Thanks for any 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
Re: [android-developers] Re: [ICS] Did Canvas / drawBitmap change in ICS ?
Sure, but why do I need to do this in the first place? In native JNI code I am modifying each pixel directly. Pre-ICS I did not need to blank out the bitmap. On Sunday, December 9, 2012 3:15:05 PM UTC-8, Romain Guy (Google) wrote: Instead of writing a loop like this you can just call Bitmap.eraseColor(). It's much more efficient. On Sun, Dec 9, 2012 at 11:55 AM, GJTorikian gjtor...@gmail.comjavascript: wrote: All right, so after days I finally figured it out. After creating my bitmap, I need to set every pixel in Java: for (int x = 0; x 254; x++) { for (int y =0; y 254; y++) { bmp.setPixel(x, y, Color.argb(255, 0, 0, 0)); } } The question is: WHY only for ICS? On Wednesday, December 5, 2012 4:07:38 PM UTC-8, GJTorikian wrote: Hi there— I'm making updates to a live wallpaper I've developed. The wallpaper is currently running correctly on a 2.2 device, but NOT on my 4.2 device. On the ICS device, it seems that only the last column is being correctly drawn. For example, in a coordinate system, if my phone is 420 x 720 (not sure of the exact dimensions), then only pixels (420, 0) through (420, 720) are being drawn. The rest is black / transparent. Here's the code I'm using: https://github.com/** gjtorikian/Earthbound-Battle-**Backgrounds/blob/master/src/** com/miadzin/livewallpaper/**earthbound/**EarthboundLiveWallpaper.java#** L243https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L243 First, I draw a 256 x 256 bitmap. Then, I use a matrix to scale it. Again, this works fine on a non-ICS device. Another tricky aspect is that I'm using the JNI to do some of the bitmap math, but I still think the problem is in this canvas code somewhere. Thanks for any 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-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 -- Romain Guy Android framework engineer roma...@android.com javascript: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [ICS] Did Canvas / drawBitmap change in ICS ?
Hi there— I'm making updates to a live wallpaper I've developed. The wallpaper is currently running correctly on a 2.2 device, but NOT on my 4.2 device. On the ICS device, it seems that only the last column is being correctly drawn. For example, in a coordinate system, if my phone is 420 x 720 (not sure of the exact dimensions), then only pixels (420, 0) through (420, 720) are being drawn. The rest is black / transparent. Here's the code I'm using: https://github.com/gjtorikian/Earthbound-Battle-Backgrounds/blob/master/src/com/miadzin/livewallpaper/earthbound/EarthboundLiveWallpaper.java#L243 First, I draw a 256 x 256 bitmap. Then, I use a matrix to scale it. Again, this works fine on a non-ICS device. Another tricky aspect is that I'm using the JNI to do some of the bitmap math, but I still think the problem is in this canvas code somewhere. Thanks for any 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
Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?
I wrote a reply to this, but I guess it was censored. I was complaining about manufacturer fragmentation, again. If I have a directory like this: mnt/sdcard/app/dir mkdirs(app/dir) fails; mkdirs(app) followed by mkdirs(app/dir) works. This is extremely unusual. On Saturday, March 10, 2012 10:53:37 PM UTC+1, Kostya Vasilyev wrote: I just tried this on my Galaxy Nexus with official 4.0.2, and it definitely works, with and without the training slash. mkdirs returns false if the directory already exists - are you sure yours don't? Also, does your app have the permission to write to external storage? IIRC, some really older platform versions used to enable this permission if it wasn't declared. -- K On 03/10/2012 11:38 PM, GJTorikian wrote: It seems that that's entirely the problem. When I try to perform a mkdirs() operation, I get a return of false. So, for the structure of: /mnt/sdcard/myapp/ new File(/mnt/sdcard/myapp/).mkdirs() fails--but again, only for this device, it seems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?
My use case is this: a user looks up some information about a book. The book's cover is fetched from The Internet. If the user wants to save the book cover, the image is stored in the external storage directory. The storage code is simply this: new File(Environment.getExternalStorageDirectory(), file); where file is just the name of the JPEG file of the image, prepended with my app. So, in theory, this should just be /mnt/sdcard/myapp/someBookCover.jpg for the Galaxy Nexus. (Obviously, mnt/sdcard varies, and might just be /sdcard-ext, etc). Now, when I perform a file.exists() operation to make sure that that file exists, I always get a false on ICS devices, and the cover does not load. I am not sure why this is happening. I had a user send me some logging information, and everything seems to check out correctly: I/IOUtilities(15437): ExternalStorageDirectory: /mnt/sdcard I/IOUtilities(15437): ExternalStorageEmulation: true I/IOUtilities(15437): ExternalStorageRemovable: false I/IOUtilities(15437): CacheDir: /data/data/com.miadzin.shelves/cache What am I doing wrong here? On Saturday, March 10, 2012 12:29:26 AM UTC-6, Zsolt Vasvari wrote: As far as I can tell, no issues. At least nobody complained. On Saturday, March 10, 2012 9:42:16 AM UTC+8, GJTorikian wrote: Over various Android updates and devices, I've been able to use getExternalStorageDirectory() in my code without any problems. However, I'm suddenly getting a lot of bug reports from ICS users on the Galaxy Nexus complaining that the way they interact with my app is not working. Specifically, it's in all the areas that use getExternalStorageDirectory(). Can someone with a Galaxy Nexus device confirm this? I realize that the Nexus does not have an SD card, the external is really internal, e.t.c but users are simply not able to use the app properly. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?
It seems that that's entirely the problem. When I try to perform a mkdirs() operation, I get a return of false. So, for the structure of: /mnt/sdcard/myapp/ new File(/mnt/sdcard/myapp/).mkdirs() fails--but again, only for this device, it seems. On Friday, March 9, 2012 7:42:16 PM UTC-6, GJTorikian wrote: Over various Android updates and devices, I've been able to use getExternalStorageDirectory() in my code without any problems. However, I'm suddenly getting a lot of bug reports from ICS users on the Galaxy Nexus complaining that the way they interact with my app is not working. Specifically, it's in all the areas that use getExternalStorageDirectory(). Can someone with a Galaxy Nexus device confirm this? I realize that the Nexus does not have an SD card, the external is really internal, e.t.c but users are simply not able to use the app properly. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?
Sorry for the quick follow-up, but perhaps this is related? http://stackoverflow.com/questions/4062357/mkdirs-returns-false-for-directory-on-sd-card-while-the-parent-directory-is-writ/7730756#7730756 On Saturday, March 10, 2012 1:38:32 PM UTC-6, GJTorikian wrote: It seems that that's entirely the problem. When I try to perform a mkdirs() operation, I get a return of false. So, for the structure of: /mnt/sdcard/myapp/ new File(/mnt/sdcard/myapp/).mkdirs() fails--but again, only for this device, it seems. On Friday, March 9, 2012 7:42:16 PM UTC-6, GJTorikian wrote: Over various Android updates and devices, I've been able to use getExternalStorageDirectory() in my code without any problems. However, I'm suddenly getting a lot of bug reports from ICS users on the Galaxy Nexus complaining that the way they interact with my app is not working. Specifically, it's in all the areas that use getExternalStorageDirectory(). Can someone with a Galaxy Nexus device confirm this? I realize that the Nexus does not have an SD card, the external is really internal, e.t.c but users are simply not able to use the app properly. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?
Over various Android updates and devices, I've been able to use getExternalStorageDirectory() in my code without any problems. However, I'm suddenly getting a lot of bug reports from ICS users on the Galaxy Nexus complaining that the way they interact with my app is not working. Specifically, it's in all the areas that use getExternalStorageDirectory(). Can someone with a Galaxy Nexus device confirm this? I realize that the Nexus does not have an SD card, the external is really internal, e.t.c but users are simply not able to use the app properly. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Sync on Android Emulator
Bump, as I also would like to know this. Sync is still broken on a 4.0.3 emulator. On Nov 23, 7:44 am, Flávio Ramalho f.ramal...@gmail.com wrote: Hello, I want to test an application that retrive Events from google calendar, for that I have to sync the android emulator with my google account. I can add my google account on Settings Accounts Sync, however the sync is off and i can't turn in on. Screenshot:http://f.cl.ly/items/1K3L3w0X3d1X2O1I0l2i/Captura%20de%20Tela%202011-... Can anyone tell me what I'm missing? -- []'s Flávio Ramalho -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Account Sync still does not work on 4.0.3 emulator
Just as the title says. Now, unlike before, I can add my account to the emulator, but sync is off. Clicking on the account name in an attempt to turn the sync on gives me no option to do so. Halp? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 the ICS emulator calendar sync broken?
I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is the ICS emulator calendar sync broken?
And how would I go about adding contacts, to test viewing/manipulating contact data? There doesn't seem to be a way to do that. On Nov 20, 7:13 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. On Nov 21, 11:01 am, GJTorikian gjtorik...@gmail.com wrote: I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is the ICS emulator calendar sync broken?
I can ask two different questions in one thread The issue is synching. If I add my Gmail address as an Exchange account, I get a half-assed way to manipulate the calendar. Fine. But what if I want to test the way I manipulate contacts in my app? What if I want to test market licensing on an ICS app? On Nov 20, 8:32 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I thought you asked about Calendars, not Contacts On Nov 21, 12:14 pm, GJTorikian gjtorik...@gmail.com wrote: And how would I go about adding contacts, to test viewing/manipulating contact data? There doesn't seem to be a way to do that. On Nov 20, 7:13 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, this has been discussed extensively. You cannot use a Google account for syncing calendars on the emulator. You can use an Exchange account, though, with a gmail address and a blank domain. On Nov 21, 11:01 am, GJTorikian gjtorik...@gmail.com wrote: I created a new emulator with the Level 14 Google APIs. I can add my Google account, but sync is off, with no discernable way to turn it back on.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: License Check fails for 5-10% of legit users
In LicenseValidator.verify() I had to add two more exception clauses: catch (Base64DecoderException e) { Log.e(TAG, Could not Base64-decode signature.); handleApplicationError(ApplicationErrorCode.DECODER_EXCEPTION); return; } catch (NullPointerException e) { Log.e(TAG, Got NPE!); handleApplicationError(ApplicationErrorCode.NPE_ERROR); return; } That NPE is hit more often than not. Howard, how do you track piracy metrics? I'd be interested in integrating that in my app and see if it's worth it to keep LVL around, too. On Sep 19, 7:04 pm, Howard M. Harte hhar...@gmail.com wrote: I put some code into my app to allow LVL failure up to five times before declaring the app unlicensed. In addition, once licensed, I only checked again once a month. Even still, I had complaints, and pirated copies of my app found their way to warez sites. Like all anti-piracy schemes I've seen so far, LVL was more effective in annoying legitimate users than thwarting piracy. IMO, this sort of thing should be built into the platform, without developers or users having to worry about it. Recently, I removed LVL from my app, as I did not see a noticeable increase in sales for the time I was using LVL. Only one of my apps is popular enough to be pirated, and according to the analytics that I used to have in my app, more than 95% of the users were using a pirated copy. Unfortunately, it seems very difficult for a developer to convert pirates into a revenue stream. I've also removed the analytics now, over privacy concerns. Just my observations, having had an app in the Market since early 2009. -Howard On Sep 16, 12:45 pm, Kenny Wyland speci...@gmail.com wrote: This is really starting to become an issue. I'm getting bad reviews and my word of mouth recommendations for my apps are stopping because the Google Licensing service is repeatedly denying users the first time they start the app. I get emails from users regularly and I need to find a solution. I'm using a ServerManagedPolicy, I'm essentially using the example code from the dev website. Does anyone have an example of a policy which handles some local caching and such? Kenny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Check fails for 5-10% of legit users
In LicenseValidator.verify() I had to add two more exception clauses: catch (Base64DecoderException e) { Log.e(TAG, Could not Base64-decode signature.); handleApplicationError(ApplicationErrorCode.DECODER_EXCEPTION); return; } catch (NullPointerException e) { Log.e(TAG, Got NPE!); handleApplicationError(ApplicationErrorCode.NPE_ERROR); return; } That NPE is hit more often than not. Furthermore, there is some code somewhere to increase the timeout of the check. I've forgotten where this is, however... Howard, how do you track piracy metrics? I'd be interested in integrating that in my app and see if it's worth it to keep LVL around, too. On Sep 19, 7:04 pm, Howard M. Harte hhar...@gmail.com wrote: I put some code into my app to allow LVL failure up to five times before declaring the app unlicensed. In addition, once licensed, I only checked again once a month. Even still, I had complaints, and pirated copies of my app found their way to warez sites. Like all anti-piracy schemes I've seen so far, LVL was more effective in annoying legitimate users than thwarting piracy. IMO, this sort of thing should be built into the platform, without developers or users having to worry about it. Recently, I removed LVL from my app, as I did not see a noticeable increase in sales for the time I was using LVL. Only one of my apps is popular enough to be pirated, and according to the analytics that I used to have in my app, more than 95% of the users were using a pirated copy. Unfortunately, it seems very difficult for a developer to convert pirates into a revenue stream. I've also removed the analytics now, over privacy concerns. Just my observations, having had an app in the Market since early 2009. -Howard On Sep 16, 12:45 pm, Kenny Wyland speci...@gmail.com wrote: This is really starting to become an issue. I'm getting bad reviews and my word of mouth recommendations for my apps are stopping because the Google Licensing service is repeatedly denying users the first time they start the app. I get emails from users regularly and I need to find a solution. I'm using a ServerManagedPolicy, I'm essentially using the example code from the dev website. Does anyone have an example of a policy which handles some local caching and such? Kenny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Where should the anim folder go now?
I was listening to the most excellent Google I/O 2011 talk about the new changes to ADT r11. At one point, Xavier recommends something about moving the animation folder. I didn't catch why, or what the change should be. Right now I have it under res/anim. Is the preference to move it to raw/animation ? Is this only for apps targeted to 3.0+, or apps using ADT r11? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Do OpenGL ES 2.0 phones also support ES 1.1?
Given that the APIs for OpenGL ES 2.0 and 1.1 are incompatible, I was wondering if there is always some inherent support for both in Android, or if it was on a per phone basis. I am developing an ES 1.1 game. On my phone, a nearly two year old model, the game drew quite well, visually. On my friend's newish Droid 2, all I saw were choppy polygons. I know my phone can't do ES 2.0 and I assume his can. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Combining gesture with ViewHolder
I've implemented a basic gesture detection system in my app with the following code (taken from an Android sample): mGestureLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures); if (!mGestureLibrary.load()) { finish(); } gestures = (GestureOverlayView) findViewById(R.id.gestures); gestures.addOnGesturePerformedListener(this); gesturedItems = new ArrayListString(); public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) { ArrayListPrediction predictions = mGestureLibrary.recognize(gesture); if (predictions.size() 0 predictions.get(0).score 1.0) { String action = predictions.get(0).name; if (line.equals(action)) { gesturedItems.add } } } (My Activity here implements OnGesturePerformedListener). My gestures are being detected on a scrolling GridView. Each element in the GridView is implemented with a ViewHolder. So, when I open a context menu on a single item, I can get metadata about it like its ID, in order to perform further actions like delete, rename, e.t.c. I want to grab that same ViewHolder metadata information through my gesture. Is that possible? I don't necessarily want the gesture to equal a long press--I intend to build a list of IDs of each item that the gesture picks up. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Icon Design Guidelines for Android 3.0?
When will there be an update for WXGA devices to this doc? http://developer.android.com/guide/practices/ui_guidelines/icon_design.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: Where to download ADT 10.0.0 from?
Xavier is a developer for Android. Keep scrolling--ADT 10 is a development version that's internal only (for now): http://groups.google.com/group/android-developers/msg/26a11b6ec7c7a8c4 On Feb 11, 2:29 pm, F D freedig...@gmail.com wrote: I saw inhttp://groups.google.com/group/android-developers/browse_thread/threa... somebody mentioned about using ADT 10.0.0. I built the SDK and when I tried to point the SDK Location for the Android Preference on Eclipse, I'd get This Android SDK requires Android Developer Toolkit version 10.0.0 or above. Current version is 9.0.0.v201101191456-93220. Please update ADT to the latest version. Trying Check for Updates through Eclipse resulted in no update to be applied. Is ADT 10.0.0 available for me to download? Or was there a FAQ I missed about this? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How i can detect Android API version in native code?
First, the better place to ask questions about native code on Android is the group about native code on Android: http://groups.google.com/group/android-ndk Second I'm pretty sure this is impossible. Whatever is not already exposed in the headers for the NDK can probably not be accessed. On Feb 11, 8:35 am, Radeg radegas...@gmail.com wrote: subj. 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: Terrible ghosting effect when flinging to the end of a ListView
Bump for 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: Terrible ghosting effect when flinging to the end of a ListView
Incredible. I finally figured it out. My activity had the android:theme attribute defined in the AndroidManifest.xml . Removing that solved my problem. Should this be a bug? On Feb 4, 3:49 pm, Mark Murphy mmur...@commonsware.com wrote: FWIW, I've never seen that effect. On Fri, Feb 4, 2011 at 6:43 PM, GJTorikian gjtorik...@gmail.com wrote: Bump for help? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Terrible ghosting effect when flinging to the end of a ListView
I'm not sure how to put the problem into words, so I made a video: I have a ListView. Each row is composed of a RealtiveLayout of images, text, and a rating bar. The ListView is populated with a custom CursorAdapter. The elements within the row are defined in a ViewHolder, which is populated during the bindView method of the custom CursorAdapter. When I scroll/fling WITHOUT reaching the end of the list (top or bottom), the app works as expected: it presents a cover of the item from a cache on the SD card. However, when I reach either end, a ghosting effect occurs (around :10), where the previous ListView rows renders underneath the actual, now position. It clears up when I scroll just a tiny bit away. I've tried various fixes, including changing how the individual views in my rows are defined, valling invalidate() or notifyDataSetChanged(), deleting everything from the bindView method (when I scrolled, there were still artifacts from each individual row). When I run heirarchyviewer, it doesn't detect anything abnormal (when I fetch view it shows the correct, unghosted list, whereas the device/emulator still has the ghost effect.) I tried this with API Rev 7 and 8, thinking that there might be a fix there--nothing. Can anyone point me towards where the problem might be in this? Around :25 I start pressing the up and down arrows on my keyboard, simulating a trackball or d-pad. You'll notice that the orange highlight also has some strange effect. Probably these two are related. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Terrible ghosting effect when flinging to the end of a ListView
... and here is the video: http://www.youtube.com/watch?v=ekIUtXAwV9c On Feb 3, 6:19 pm, GJTorikian gjtorik...@gmail.com wrote: I'm not sure how to put the problem into words, so I made a video: I have a ListView. Each row is composed of a RealtiveLayout of images, text, and a rating bar. The ListView is populated with a custom CursorAdapter. The elements within the row are defined in a ViewHolder, which is populated during the bindView method of the custom CursorAdapter. When I scroll/fling WITHOUT reaching the end of the list (top or bottom), the app works as expected: it presents a cover of the item from a cache on the SD card. However, when I reach either end, a ghosting effect occurs (around :10), where the previous ListView rows renders underneath the actual, now position. It clears up when I scroll just a tiny bit away. I've tried various fixes, including changing how the individual views in my rows are defined, valling invalidate() or notifyDataSetChanged(), deleting everything from the bindView method (when I scrolled, there were still artifacts from each individual row). When I run heirarchyviewer, it doesn't detect anything abnormal (when I fetch view it shows the correct, unghosted list, whereas the device/emulator still has the ghost effect.) I tried this with API Rev 7 and 8, thinking that there might be a fix there--nothing. Can anyone point me towards where the problem might be in this? Around :25 I start pressing the up and down arrows on my keyboard, simulating a trackball or d-pad. You'll notice that the orange highlight also has some strange effect. Probably these two are related. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Submitting patches to API documentation
Is it possible to submit a doc fix through gerrit? I have git set up and the source tree(s) on my machine. However I can't find the location of any of the API documentation. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Not able to retrieve list of Documents from Google Docs using HTTP GET
I suggest you investigate the code of MyTracks: http://code.google.com/p/mytracks/ They have a pretty well documented set of Java files that rely on accessing the Google Documents API. On Nov 26, 10:31 am, myst sowmya.chand...@gmail.com wrote: Hi all, I am trying to connect to Google Docs from an Android application using the Google Document List Data API (v 2.0) Protocol Guide. I am able to obtain an Authentication ID by sending a HTTP POST request. However, when I send the HTTP GET request, though the returned status code is 200(success), the content of the response is an html page, not an xml feed with list of documents on the server. This is my code for this: HttpClient client2 = new DefaultHttpClient(); HttpGet httpGetReq = new HttpGet(https://www.docs.google.com/feeds/ documents/private/full); httpGetReq.addHeader(Authorization: GoogleLogin auth =,authString); HttpResponse httpGetResponse = client2.execute(httpGetReq); StatusLine s2 = httpGetResponse.getStatusLine(); int getcode = s2.getStatusCode(); Log.v(RetrieveDocs STATUS CODE IS:, Integer.toString(getcode)); if (getcode == 200) { BasicResponseHandler bget = new BasicResponseHandler(); String bodyget; bodyget = bget.handleResponse(httpGetResponse); System.out.println(bodyget); client2.getConnectionManager().shutdown(); Any help would be greatly appreciated. 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
[android-developers] Porting LWJGL project to Android
Howdy— I have a desktop Java project implemented with LWJGL jar libraries. I'm interested in porting the program to Android. What are my current options for lib support? I've looked at jMonkeyEngine 3, but I don't think the current Alpha 2 is fully up to par yet. I guess a different question might be: which (if any) libraries are 3D Android games using? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Beta Testers needed for fast-paced retro game
Hi— I'm interested. I have a CLIQ running a 2.1 ROM. Thanks— Garen On Oct 15, 9:19 am, Nacho Pintos nacho.pin...@gmail.com wrote: Hi! I'm bedroom developer and I'm finishing my first android game, Flee, which (hopefully) will be released in the coming weeks. I'm a bit scared to release it into the wild, cause I have only tested it in two different phone models (Samsung Spica, Motorola Milestone), and wouldn't like to receive a lot bad rating because of an elusive bug in the most popular phone. The game requires Android 1.6+, and a 480x320 screen or bigger. Small screens are not supported. Would anyone be willing to play it for ten minutes, and try to crash it in every conceivable way? For those very, very good samaritans among you, I have created a small survey that can be filled in 20 minutes. In exchange I offer myself to beta-test your apps/games, and if I find a proper way (because the market does not allow gifts right now), I'll give a free copy of the paid game to the testers. Reply in this forum or send me an email and I'll send you back the apk and the link to the survey. Thanks so much! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Proguard, Android, and the Licensing Server, or...
Not sure if anyone has seen it, but this tutorial that I picked up awhile back has some pretty helpful hits on using Proguard with Android: http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html On Sep 25, 9:45 am, JP joachim.pfeif...@gmail.com wrote: Integration in Eclipse - a step in the right direction if serious about promoting Proguard. It's wait and see for me now. I am too busy with other things to wanting to figure this one out. Xavier and crew, two aspects that I'll ask you to keep in mind: 1. There's plenty of developers who need to keep their apps flying through the release cycles. No need for curveballs flying in from leftfield. 2. Not to drag that tired iOs vs. Android bickering out, but you guys know that devs use platform multipliers when estimating efforts to develop an app against a spec. Regrettably, Android multiplier is considerably greater than iOS's, due the various complications we enjoy that carriers and manufacturers keep bringing into play. At least for what you can control, keep stuff simple so devs can focus on what their clients are willing to pay for. On Sep 23, 7:00 pm, Justin Giles jtgi...@gmail.com wrote: Xavier stated in another thread that in the next release there will be built-in support for proguard in Eclipse. I can't find a link right now, but the last discussion on it was earlier today or yesterday. Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best Practice for selling app in non-Market approved countries?
The title more or less says it all. Google Checkout, as you may be acutely aware, only supports ~9 countries. Some apps use PayPal to receive payment, then send out an activation code to the user. How can this be done to ensure that a single user receives a single activation code? Once the app verifies the code, how could the app more or less verify itself that it's been paid for? Storing such data in a preference file or a database on the Android device can surely be easily extracted and exploited. How are other developers handling app sales in other countries--or do they just not care? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how do you forcibly turn *on* the display....
I always follow Diane's suggestion when I need a screen on: http://groups.google.com/group/android-developers/msg/0ad1a089678cda24 I could never get my wakelock to work right. On Sep 9, 6:53 am, sdphil phil.pellouch...@gmail.com wrote: awesome! thanks! you rock mark! (and I should rtfm :-) On Sep 9, 5:27 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 9, 2010 at 1:32 AM, sdphil phil.pellouch...@gmail.com wrote: when an event occurs, I want to forcibly turn the display *ON*. i tried grabbing a FULL_WAKE_LOCK from the power manager power service, but it still didn't work. i am turning the display off by hitting the power button (i think this is like a light sleep or something...) You need to also blend in the ACQUIRE_CAUSES_WAKEUP value (OR it with FULL_WAKE_LOCK). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://skillsmatter.com/go/os-mobile-server -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Licensing Verification Library Apps Solely for Unlocking/Removing Ads
Before I continue the experiment, I took one more look through the docs and found this gem: If your application is already published as free, you won't be able to upload a new version that uses licensing. I am guessing that if I try to include the LVL Library project into my free app, I won't be able to upload a new APK to the Developer Console. I'm not at my workspace now but when I get a chance to verify, I will. On Aug 31, 11:43 pm, String sterling.ud...@googlemail.com wrote: On Tue, Aug 31, 2010 at 8:52 PM,GJTorikiangjtorik...@gmail.com wrote: Launch Free App-Launch Unlocker App-Run LVL-Return Result-Parse Result in Free App That was the gist of it, yes. I agree, having done an unlocker app in the past (and, separately, using LVL now) that's the approach that makes most sense to me. Especially if you already have an unlocker - convert it to LVL, and change the call in the free app as outlined above, but leave the rest of your architecture alone. On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton cs07...@gmail.com wrote: I'm not seeing any obvious reason why the free version can't just query the license server about the unlocker by itself, but maybe I'm overlooking something. I think that this is a real possibility, but I've not heard of anyone doing it. The key would be for the free app to query LVL about the unlocker's package name, NOT to try to use LVL for the free version's package. You'd also probably need to keep your version numbers aligned between the free unlocker apps, because it has been established that this will cause an LVL failure. IF this works, it would be much cleaner; it would mean that your users would never have to actually have the unlocker installed, just purchased. I can't see that this sort of thing is mentioned anywhere in the LVL docs (though of course I could be missing it). It's possible that you can't do this, that LVL checks the calling package name or signature someplace. You'd just need to try it. Please keep us posted! 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: Licensing Verification Library Apps Solely for Unlocking/Removing Ads
Perhaps you're right. I added the LVL library to my free app's build path, and exported that APK. The Developer Console lets me upload the new APK, at least. I assume that clicking Publish won't introduce some other check. Note that all I have done is add the library, and the appropriate permission: uses-permission android:name=com.android.vending.CHECK_LICENSE / I haven't implemented any of the server checks, but if the Dev Console lets me get this far with my app, that's a positive sign. On Sep 1, 3:14 pm, Chris Stratton cs07...@gmail.com wrote: I doubt they can readily detect the licensing bytecode in all its possible variations. Rather they probably won't let you make licensing records for a formerly free app. On Sep 1, 3:38 pm,GJTorikiangjtorik...@gmail.com wrote: Before I continue the experiment, I took one more look through the docs and found this gem: If your application is already published as free, you won't be able to upload a new version that uses licensing. I am guessing that if I try to include the LVL Library project into my free app, I won't be able to upload a new APK to the Developer Console. I'm not at my workspace now but when I get a chance to verify, I will. On Aug 31, 11:43 pm, String sterling.ud...@googlemail.com wrote: On Tue, Aug 31, 2010 at 8:52 PM,GJTorikiangjtorik...@gmail.com wrote: Launch Free App-Launch Unlocker App-Run LVL-Return Result-Parse Result in Free App That was the gist of it, yes. I agree, having done an unlocker app in the past (and, separately, using LVL now) that's the approach that makes most sense to me. Especially if you already have an unlocker - convert it to LVL, and change the call in the free app as outlined above, but leave the rest of your architecture alone. On Tue, Aug 31, 2010 at 9:42 PM, Chris Stratton cs07...@gmail.com wrote: I'm not seeing any obvious reason why the free version can't just query the license server about the unlocker by itself, but maybe I'm overlooking something. I think that this is a real possibility, but I've not heard of anyone doing it. The key would be for the free app to query LVL about the unlocker's package name, NOT to try to use LVL for the free version's package. You'd also probably need to keep your version numbers aligned between the free unlocker apps, because it has been established that this will cause an LVL failure. IF this works, it would be much cleaner; it would mean that your users would never have to actually have the unlocker installed, just purchased. I can't see that this sort of thing is mentioned anywhere in the LVL docs (though of course I could be missing it). It's possible that you can't do this, that LVL checks the calling package name or signature someplace. You'd just need to try it. Please keep us posted! 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] Licensing Verification Library Apps Solely for Unlocking/Removing Ads
There's a large chunk of apps on the market that are free, with ads. Users can pay for an unlocker app to remove ads in the free app, presumably by doing a check on whether or not the unlocker app package is installed. If LVL is verified intermittently on a paid app, is it useless for these unlocker apps? Presumably a user would never run the unlocker app, so how would LVL even check the authenticity? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Licensing Verification Library Apps Solely for Unlocking/Removing Ads
So: Launch Free App-Launch Unlocker App-Run LVL-Return Result-Parse Result in Free App ? On Aug 31, 1:49 pm, TreKing treking...@gmail.com wrote: On Tue, Aug 31, 2010 at 1:07 PM, GJTorikian gjtorik...@gmail.com wrote: If LVL is verified intermittently on a paid app, is it useless for these unlocker apps? No. Presumably a user would never run the unlocker app, so how would LVL even check the authenticity? Presumably a user would run the free version, which could call the unlocker app to start its authenticity check (perhaps in the background), which could then send a broadcast message back to the free one with I'm Legit or Epic Fail message which the free one would respond to accordingly. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NPE on WebView.onWindowFocusChanged
I downloaded the Motorla AVD for the Milestone, as this was the closest I could get to the Droid/Sholes. Unfortunately, the screen on the emulator doesn't fade out, so I am unable to test if that is the issue. But I have looked over my logs, and it is always the sholes device that is throwing the NPE. If I could find an appropriate place to place a try / catch, that would be fine: @Override public void onWindowFocusChanged(boolean hasFocus) { try { super.onWindowFocusChanged(hasFocus); } catch (NullPointerException npe) { } } Maybe? On Aug 25, 4:57 pm, GJTorikian gjtorik...@gmail.com wrote: Hi Diane-- I am seeing this primarily on Verizon Droids (sholes) running 2.2 . Please let me know if you need more info. Thanks-- Garen On Aug 21, 2:01 pm, Dianne Hackborn hack...@android.com wrote: It would help if people say the device(s) and version(s) of the platform they are seeing this on. On Sat, Aug 21, 2010 at 3:32 AM, Jim jimblack...@gmail.com wrote: I am seeing this issue in the wild also. Jim On Aug 18, 10:56 am, Sharyu sharyuer...@gmail.com wrote: I also met this issue when launch a new activity to cover a webview. Can anyone helps? On 6月29日, 下午10时13分,GJTorikiangjtorik...@gmail.com wrote: Howdy-- I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser. Here's the full stack trace: java.lang.NullPointerException at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) at android.view.View.dispatchWindowFocusChanged(View.java:3788) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 658) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) The help browser window takes the full screen, with a bar at the bottom for help and done buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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: NPE on WebView.onWindowFocusChanged
Hi Diane-- I am seeing this primarily on Verizon Droids (sholes) running 2.2 . Please let me know if you need more info. Thanks-- Garen On Aug 21, 2:01 pm, Dianne Hackborn hack...@android.com wrote: It would help if people say the device(s) and version(s) of the platform they are seeing this on. On Sat, Aug 21, 2010 at 3:32 AM, Jim jimblack...@gmail.com wrote: I am seeing this issue in the wild also. Jim On Aug 18, 10:56 am, Sharyu sharyuer...@gmail.com wrote: I also met this issue when launch a new activity to cover a webview. Can anyone helps? On 6月29日, 下午10时13分, GJTorikian gjtorik...@gmail.com wrote: Howdy-- I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser. Here's the full stack trace: java.lang.NullPointerException at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) at android.view.View.dispatchWindowFocusChanged(View.java:3788) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 658) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) The help browser window takes the full screen, with a bar at the bottom for help and done buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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] Privatizing App-Created Directories on SD Card?
Howdy— The folders in /data/data/package_name/ are hidden/private to all applications except those that are within that package namespace. Is it possible to create this level of security for folders created by applications on the SD card? For instance, the docs say that for API versions 7 and below, you should create folders that follow the syntax of: getExternalStorageDirectory() + /Android/data/package_name/files/ However, it's not clear that Android/data/package_name/files are protected the same way files in /data/data are. Are they? Or can others just go in there and muck things up? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NPE on WebView.onWindowFocusChanged
Bump (do bumps exist in email?) to see if there's anyone out there who knows what is going on. I read on an online forum that users hitting the back button on the WebView was causing a crash, but this does not seem to be the case for me. On Jul 20, 8:33 pm, GJTorikian gjtorik...@gmail.com wrote: Ok—good to know I'm not the only one. For what it's worth I just let the screen on my phone dim, then turn off. I did not get a crash, however. Very weird. On Jul 14, 8:17 am, Open ldonel...@gmail.com wrote: I've started seeing reports like this too. The screen dimming is the only thing I can think of too, but the stack trace just isn't very much in terms of debugging information. On Jun 29, 7:13 am,GJTorikiangjtorik...@gmail.com wrote: Howdy— I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser. Here's the full stack trace: java.lang.NullPointerException at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) at android.view.View.dispatchWindowFocusChanged(View.java:3788) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 658) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) The help browser window takes the full screen, with a bar at the bottom for help and done buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Did selected tab background colors change in 2.1 ?
Howdy— My app was built on the Android 1.5 platform. I'm in the process of bumping the APIs used to 2.1 . I am still leaving minSdkVersion=3 / targetSdkVersion = 7 in order to support older platforms. I've made the required drawbles-hdpi / -mdpi - ldpi-v4 folders. Everything is looking great across various AVDs of HVGA/WVGA shapes and sizes. Everything, except my tabs. In AVDs running Android 1.5 and 1.6, my tab background colors are appropriate: http://www.shelvesforandroid.com/1p6below.png However, for platforms running 2.1 and above, something seems to have gone awry: http://www.shelvesforandroid.com/2p1above.png Notice that the unselected tab color is correct, but the selected tab looks like it's just bleeding the same color as my images. What can I do to fix this? Enforce the background color to be the same as 1.6-era ? What is causing this tab color change? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Did selected tab background colors change in 2.1 ?
If I'm reading your response correctly, this has nothing to do with the drawables/tab icon. I am talking about the background color of a selected tab. On Jul 24, 12:26 pm, Joseph Earl joseph.w.e...@gmail.com wrote: Quite possibly. You should import the desired drawables from the SDK/platforms folder into your own drawables folder and reference those in order to ensure a consistent look. Remember carriers also modify their own versions which means the default styles can be quite different to the ones on the emulator. On Jul 24, 8:02 pm, GJTorikian gjtorik...@gmail.com wrote: Howdy— My app was built on the Android 1.5 platform. I'm in the process of bumping the APIs used to 2.1 . I am still leaving minSdkVersion=3 / targetSdkVersion = 7 in order to support older platforms. I've made the required drawbles-hdpi / -mdpi - ldpi-v4 folders. Everything is looking great across various AVDs of HVGA/WVGA shapes and sizes. Everything, except my tabs. In AVDs running Android 1.5 and 1.6, my tab background colors are appropriate:http://www.shelvesforandroid.com/1p6below.png However, for platforms running 2.1 and above, something seems to have gone awry:http://www.shelvesforandroid.com/2p1above.png Notice that the unselected tab color is correct, but the selected tab looks like it's just bleeding the same color as my images. What can I do to fix this? Enforce the background color to be the same as 1.6-era ? What is causing this tab color change? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NPE on WebView.onWindowFocusChanged
Ok—good to know I'm not the only one. For what it's worth I just let the screen on my phone dim, then turn off. I did not get a crash, however. Very weird. On Jul 14, 8:17 am, Open ldonel...@gmail.com wrote: I've started seeing reports like this too. The screen dimming is the only thing I can think of too, but the stack trace just isn't very much in terms of debugging information. On Jun 29, 7:13 am, GJTorikian gjtorik...@gmail.com wrote: Howdy— I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser. Here's the full stack trace: java.lang.NullPointerException at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) at android.view.View.dispatchWindowFocusChanged(View.java:3788) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 658) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) The help browser window takes the full screen, with a bar at the bottom for help and done buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NPE on WebView.onWindowFocusChanged
Howdy— I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser. Here's the full stack trace: java.lang.NullPointerException at android.webkit.WebView.onWindowFocusChanged(WebView.java:4177) at android.view.View.dispatchWindowFocusChanged(View.java:3788) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 658) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java: 662) at android.view.ViewRoot.handleMessage(ViewRoot.java:1921) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method) The help browser window takes the full screen, with a bar at the bottom for help and done buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why this Exception is coming ?
The database URI you're trying to access doesn't have an _id column. On Jun 28, 11:53 pm, dinesh_adwani mail.dineshadw...@gmail.com wrote: 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): Caused by: java.lang.IllegalArgumentException: column '_id' does not exist 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java: 314) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.CursorAdapter.init(CursorAdapter.java:111) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.CursorAdapter.init(CursorAdapter.java:90) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.ResourceCursorAdapter.init(ResourceCursorAdapter.java: 47) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.SimpleCursorAdapter.init(SimpleCursorAdapter.java:88) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at com.sasken.epub.bookmark.ShowBookmarkCursorAdapter.init(ShowBookmarkCurso rAdapter.java: 24) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at com.sasken.epub.bookmark.ShowBookMarkActivity.onStart(ShowBookMarkActivity. java: 51) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java: 1129) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.Activity.performStart(Activity.java:3723) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2453) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): ... 11 more -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Application Crash Reporting made easy - needs testers
Kevin— Thanks very much for your clear and quick response. I was able to extend CrashReportingApplication and override the necessary methods. I'm running a Cliq still on 1.5; I'll be sure to send in thoughts/features. Thanks— Garen On May 24, 3:43 pm, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello Garen, You should be able to make your existing Application class extend org.acra.CrashReportingApplication in replacement of extending Application. Just make sure to call super.onCreate() at the beginning of your own existing onCreate() override, and add other needed methods like getFormId() (required) and getCrashResources() (if you want to configure user notifications in acra v2). The limitation of this configuration system requiring to extend a custom Application class is when you need to use another lib which has the same requirement. As you wrote before, we can only extend one class. I might add some documentation later on how to enable crash reporting manually in your application class if you are in this very special case. Please contact me directly by email or file an issue on the project page if you still have problems with ACRA. We solved an issue with Mathias Lin today which occurred when the manifest doesn't use the android:versionName attribute. There's a new acra-2.0.2 version with the fix. Kevin On Sat, May 22, 2010 at 2:04 AM, GJTorikian gjtorik...@gmail.com wrote: Hi Kevin— My app already has a class that extends Application, which is defined in android:name in the Manifest. It seems that if I try to replace it with the ACRA-created class (I called it CrashReporter), the app crashes on first run, then runs fine after that. If I make CrashReporter an inner class, I lose all the ACRA functionality. Any plans to make ACRA work for apps that already have a main Activity class defined? It's really the extends org.* bit that's throwing it off, since classes can only extend from one other class... Thanks— Garen On May 17, 9:39 am, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello, I would like to introduce you to a library calledACRA(Application Crash Reporting for Android).http://acra.googlecode.com The goal of this library is to provide android applications developers with a tool to let their applications send them crash reports the easiest possible way. One of the main issue when implementing crash reporting tools is... where do I send my reports ?ACRAsolves this problem with a simple solution : reports are sent to a Google Docs Form ! So you don't need to code your own reports receiver scripts and you don't have to find dedicated hosting for that... let's use Google's servers ! :) A first version ofACRAhas been successfully used in a few apps already on the market, and we are now preparing to publish a v2 which allows developers to replace the annoying force close dialog with fully configurable notification systems : * Silent : the user experience is not altered compared to standard android apps. The force close dialog is displayed, butACRAtries to send a report. If it fails, reports will be sent on application restart in a separate Thread. * Toast notification to inform the user that a crash report has been sent (and you may add that it can be disabled in the preferences screen) * Status bar notification which leads to a dialog asking the user if he's ok to send a report. You can even add an input field to let him comment the issue. We are now looking for devs who would like to test the library and it's different notification modes. All the information, screenshots and step-by-step usage guide are available in that Wiki page : http://code.google.com/p/acra/wiki/ACRAHowTo2 Devs who would like to use the v1 and it's basic (but working) functionnality can follow this link : http://code.google.com/p/acra/wiki/ACRAHowTo2 Any comment/discussion is open aboutACRA, we really want your opinion about it. Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed
[android-developers] Combining OR calls in managedQuery
I've got a database. In its tags column, rows can have a combination of multiple values A, B, C--such that: row 1 has A row 2 has A, C row 3 has B, A and so on, in various permutations. I am trying to implement search using a managedQuery such that I can return a cursor that contains rows with one or more values in the query. For example, if the user enters C, A for a search, s/he should get all rows that have A, C, or A and C. I'm splitting the user query on the comma (,) character, and the final call is as follows (parameters replaced by actual values): mActivity.managedQuery(content_uri, [id, title, tags], title LIKE ? OR tags LIKE ?, [%A% OR %C%, %A% OR %C%], title ASC) Even though there are rows in the database that contain A, C, or A and C--the managedQuery returns nothing. Thankfully, if the query is for A, or for C, the appropriate rows with A or C or A and C are returned. It's just that a query with more than one search term returns nothing. What am I doing wrong here? My guess is that %A% OR %C% is incorrect logic, but why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Application Crash Reporting made easy - needs testers
Hi Kevin— My app already has a class that extends Application, which is defined in android:name in the Manifest. It seems that if I try to replace it with the ACRA-created class (I called it CrashReporter), the app crashes on first run, then runs fine after that. If I make CrashReporter an inner class, I lose all the ACRA functionality. Any plans to make ACRA work for apps that already have a main Activity class defined? It's really the extends org.* bit that's throwing it off, since classes can only extend from one other class... Thanks— Garen On May 17, 9:39 am, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello, I would like to introduce you to a library calledACRA(Application Crash Reporting for Android).http://acra.googlecode.com The goal of this library is to provide android applications developers with a tool to let their applications send them crash reports the easiest possible way. One of the main issue when implementing crash reporting tools is... where do I send my reports ?ACRAsolves this problem with a simple solution : reports are sent to a Google Docs Form ! So you don't need to code your own reports receiver scripts and you don't have to find dedicated hosting for that... let's use Google's servers ! :) A first version ofACRAhas been successfully used in a few apps already on the market, and we are now preparing to publish a v2 which allows developers to replace the annoying force close dialog with fully configurable notification systems : * Silent : the user experience is not altered compared to standard android apps. The force close dialog is displayed, butACRAtries to send a report. If it fails, reports will be sent on application restart in a separate Thread. * Toast notification to inform the user that a crash report has been sent (and you may add that it can be disabled in the preferences screen) * Status bar notification which leads to a dialog asking the user if he's ok to send a report. You can even add an input field to let him comment the issue. We are now looking for devs who would like to test the library and it's different notification modes. All the information, screenshots and step-by-step usage guide are available in that Wiki page :http://code.google.com/p/acra/wiki/ACRAHowTo2 Devs who would like to use the v1 and it's basic (but working) functionnality can follow this link :http://code.google.com/p/acra/wiki/ACRAHowTo2 Any comment/discussion is open aboutACRA, we really want your opinion about it. Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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] Changing data format in a db column on next app version?
Let's say in version 1 of my app, I've got a X, with a column Y, that lists integers: Y 1 2 3 4 5 The database version is also 1. Users can add or remove from Y as they see fit (through the app). Now, in the next version of my program--2--suppose I changed my mind, and now I want Y to only contain roman numerals: Y I II III IV V... Again, users can add or remove rows from Y as they want. The problem, however, is that the version 1 information is still there. As a user inserts information, the database becomes a mix of old and new formats: Y 1 2 3 4 5 VI VII VIII Am I totally screwed here? What I'm looking for, basically, is an upgrade script to run over the database, on the next install--but only if a prior install already exists. Users of version 2 won't need anything done, as their program is already set for the new version. Is it optimal to copy the database, change its version, and reinsert the rows, applying an algorithm on the column? Thanks for any 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