[android-developers] Re: Help!? Updating our applicatoin on the market deletes the saved SharedPreferences.
Here's the link to the defect http://code.google.com/p/android/issues/detail?id=2047 On Mar 10, 4:09 pm, Tyler Ernst wrote: > DO NOT EVER CHANGED COPY PROTECTION FROM ON to OFF OR OFF to ON. > > We found the problem, it is not related to the defect listed above. > > It turns out when we posted the update copy protection was turned off, > but for our initial release it was turned on. Which caused all our > shared preferences to get lost, we could no longer create private data > files, and the game started randomly crashing. > > We had a pretty popular online game with rankings. This problem > caused everyone who updated to lose everything. In the past few days > we've lost over 30% of our active installs, and our rating and sales > have gone down the crapper. > > Please fix this bug asap, or atleast disable the option to modify copy > protection from the developers page. Sorry for being rude, but I'm > pretty pissed. > > Thanks, > > Tyler > > On Mar 9, 3:16 pm, Tyler Ernst wrote: > > > Thanks that defect sounds exactly like what we're experiencing. > > However we can't reproduce it from just installing from adb only when > > installing from the market place :( > > > On Mar 9, 1:08 pm, focuser wrote: > > > > Please check outhttp://code.google.com/p/android/issues/detail?id=2066 > > > > On Mar 9, 12:36 pm, Tyler Ernst wrote: > > > > > We have an online multiplayer game that saves some login information > > > > in the SharedPreferences. Our app is copy protected and everything > > > > was going really well until this weekend when we released an update > > > > for it. It seems that at least some of the people are having their > > > > SharedPreferences deleted when they updated too the new app. As you > > > > can imagine our users are furious because they're all loosing their > > > > profiles, and our ranking is dropping fast. > > > > > We've tried to reproduce this a hundreds ways but are unable. We're > > > > wondering if this could be related to installing a copy protected app > > > > over a copy protected app? Since that's the only situation we haven't > > > > tested and can't test. Has anyone had similar issues, or know a fix? > > > > > Thanks, > > > > > Tyler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Help!? Updating our applicatoin on the market deletes the saved SharedPreferences.
DO NOT EVER CHANGED COPY PROTECTION FROM ON to OFF OR OFF to ON. We found the problem, it is not related to the defect listed above. It turns out when we posted the update copy protection was turned off, but for our initial release it was turned on. Which caused all our shared preferences to get lost, we could no longer create private data files, and the game started randomly crashing. We had a pretty popular online game with rankings. This problem caused everyone who updated to lose everything. In the past few days we've lost over 30% of our active installs, and our rating and sales have gone down the crapper. Please fix this bug asap, or atleast disable the option to modify copy protection from the developers page. Sorry for being rude, but I'm pretty pissed. Thanks, Tyler On Mar 9, 3:16 pm, Tyler Ernst wrote: > Thanks that defect sounds exactly like what we're experiencing. > However we can't reproduce it from just installing from adb only when > installing from the market place :( > > On Mar 9, 1:08 pm, focuser wrote: > > > Please check outhttp://code.google.com/p/android/issues/detail?id=2066 > > > On Mar 9, 12:36 pm, Tyler Ernst wrote: > > > > We have an online multiplayer game that saves some login information > > > in the SharedPreferences. Our app is copy protected and everything > > > was going really well until this weekend when we released an update > > > for it. It seems that at least some of the people are having their > > > SharedPreferences deleted when they updated too the new app. As you > > > can imagine our users are furious because they're all loosing their > > > profiles, and our ranking is dropping fast. > > > > We've tried to reproduce this a hundreds ways but are unable. We're > > > wondering if this could be related to installing a copy protected app > > > over a copy protected app? Since that's the only situation we haven't > > > tested and can't test. Has anyone had similar issues, or know a fix? > > > > Thanks, > > > > Tyler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Help!? Updating our applicatoin on the market deletes the saved SharedPreferences.
Thanks that defect sounds exactly like what we're experiencing. However we can't reproduce it from just installing from adb only when installing from the market place :( On Mar 9, 1:08 pm, focuser wrote: > Please check outhttp://code.google.com/p/android/issues/detail?id=2066 > > On Mar 9, 12:36 pm, Tyler Ernst wrote: > > > We have an online multiplayer game that saves some login information > > in the SharedPreferences. Our app is copy protected and everything > > was going really well until this weekend when we released an update > > for it. It seems that at least some of the people are having their > > SharedPreferences deleted when they updated too the new app. As you > > can imagine our users are furious because they're all loosing their > > profiles, and our ranking is dropping fast. > > > We've tried to reproduce this a hundreds ways but are unable. We're > > wondering if this could be related to installing a copy protected app > > over a copy protected app? Since that's the only situation we haven't > > tested and can't test. Has anyone had similar issues, or know a fix? > > > Thanks, > > > Tyler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help!? Updating our applicatoin on the market deletes the saved SharedPreferences.
We have an online multiplayer game that saves some login information in the SharedPreferences. Our app is copy protected and everything was going really well until this weekend when we released an update for it. It seems that at least some of the people are having their SharedPreferences deleted when they updated too the new app. As you can imagine our users are furious because they're all loosing their profiles, and our ranking is dropping fast. We've tried to reproduce this a hundreds ways but are unable. We're wondering if this could be related to installing a copy protected app over a copy protected app? Since that's the only situation we haven't tested and can't test. Has anyone had similar issues, or know a fix? Thanks, Tyler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Loading fonts from memory?
Is there a way to load a font to a Typeface that is in memory? Not a default system font or in your assets folder. Our problem is that we have a font file that is loaded into memory stored into a byte array, and we need a way to convert this to a Typeface so we can use it to draw. We have been trying to figure this problem out for a long time now, but there does not seem to be a way to do so. AssetManager only lets you load font files that are in your "assets" folder, and the Typeface objects only lets you create fonts from one of the default system fonts or from the AssetManager. Does anyone know a way to handle this? It seems like something that should be in an OS, maybe we just haven't found it yet? Thanks, Tyler --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Uninstalling application breaks gmail preview on G1
It looks like gmail is still trying to preview the document with our viewer even though it has been uninstalled? 01-08 09:52:19.033: ERROR/AndroidRuntime(4732): Uncaught handler: thread main exiting due to uncaught exception 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): java.lang.RuntimeException: Unable to start activity ComponentInfo {com.google.android.gm/com.google.android.gm.ViewAttachmentActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW data=content://gmail-ls/ messages/ernst.tyler%40gmail.com/549/attachments/0.1/BEST/false type=application/pdf flags=0x1 } 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.os.Handler.dispatchMessage(Handler.java:88) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.os.Looper.loop(Looper.java:123) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.main(ActivityThread.java:3742) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at java.lang.reflect.Method.invokeNative(Native Method) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at java.lang.reflect.Method.invoke(Method.java:515) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at dalvik.system.NativeStart.main(Native Method) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW data=content://gmail-ls/ messages/ernst.tyler%40gmail.com/549/attachments/0.1/BEST/false type=application/pdf flags=0x1 } 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1470) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1440) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.startActivityForResult(Activity.java:2528) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.startActivity(Activity.java:2572) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.openAttachmentAndFinish (ViewAttachmentActivity.java:233) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.inspectCursor (ViewAttachmentActivity.java:214) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at com.google.android.gm.ViewAttachmentActivity.onStart (ViewAttachmentActivity.java:155) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java: 1204) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.Activity.performStart(Activity.java:3319) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2112) 01-08 09:52:19.323: ERROR/AndroidRuntime(4732): ... 11 more On Jan 7, 9:40 pm, "Andrew Stadler" wrote: > Tyler, > > Any time you see a problem like this (where an application "stopped > unexpectedly") the most useful thing you can do is monitor the log > output (using "adb logcat"), capture the stack trace of the actual > crash, and share that. Otherwise there's just no telling what is > going wrong. > > --Andy > > On Wed, Jan 7, 2009 at 2:51 PM, Tyler Ernst wrote: > > > We are working on an application to view documents for Android. So > > our main Activity registers an intent filter to be the default viewer > > for that document type. Below is an example of how we register a > > filter. > > > > > > > > > > After installing our application you can select "Preview" in gmail > > with a document attachment to use our viewer to view the file. > > > However after uninstalling our application selecting "Preview" on the > > same document you previously viewed with our viewer causes gmail to > > crash with the message below. But attachments that had not previously > > been viewed with our viewer opened correctly with the default HTML > > vie
[android-developers] Uninstalling application breaks gmail preview on G1
We are working on an application to view documents for Android. So our main Activity registers an intent filter to be the default viewer for that document type. Below is an example of how we register a filter. After installing our application you can select "Preview" in gmail with a document attachment to use our viewer to view the file. However after uninstalling our application selecting "Preview" on the same document you previously viewed with our viewer causes gmail to crash with the message below. But attachments that had not previously been viewed with our viewer opened correctly with the default HTML viewer. “Sorry! The application Gmail (process com. Google.android.gm) has stopped unexpectedly." So far we have been unable to track this one down any ideas? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to insure the singed file is correct?
We just updated our application on the market place and are getting the same problem you are "Package file was not signed correctly." when attempting to install over the the previous market version. [EMAIL PROTECTED] wrote: > I test is ok on emulator, but many user still report me the singed > error. why? > > On Nov 22, 7:17�pm, Christine <[EMAIL PROTECTED]> wrote: > > adb uninstall yourapp.apk > > adb install yourapp.apk > > > > On Nov 22, 2:40�am, "[EMAIL PROTECTED]" > > > > > > > > <[EMAIL PROTECTED]> wrote: > > > can we test this process on emulator ? if can do, how do it, thanks > > > > > On Nov 22, 5:03�am, atrus123 <[EMAIL PROTECTED]> wrote: > > > > > > Hello, > > > > > > If you try and install a signed package on top of a pre-existing > > > > unsigned package, you will get this error. �To resolve, uninstall the > > > > currently existing package from the G1. > > > > > > Sometimes if an install has previously failed, you may have to > > > > reinstall the unsigned package and then uninstall in order to remove > > > > any left-over files (databases, etc.) > > > > > > Hope this helps, > > > > > > J. > > > > > > On Nov 21, 11:36�am, "[EMAIL PROTECTED]" > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > I upgraded my android app version, but user report me Error: "Package > > > > > file was not signed correctly". > > > > > > > keytool -genkey � �-keystore keys/androidrss.keystore-alias > > > > >androidrss.keystore-keyalg RSA -validity 1 > > > > > � �keytool -genkey -v -keystore keys/androidrss.keystore-alias > > > > >androidrss.keystore-keyalg RSA -validity 1 > > > > > > > jarsigner -verbose -keystore keys/androidrss.keystore-signedjar > > > > > androidrss_signed.apk androidrss.apkandroidrss.keystore > > > > > > > I retry this twice, but not fix this problem. can you help me asap?- > > > > > Hide quoted text - > > > > > > - Show quoted text -- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: M5 -> 0.9 Issue about file creation
Thanks! I had the same problem. On Aug 20, 8:45 am, roland <[EMAIL PROTECTED]> wrote: > Just found the problem is i didn't delete old package folder which is > compiled with the M5. Everything works fine now. > > On 20 août, 17:00, roland <[EMAIL PROTECTED]> wrote: > > > In my application, i saved downloaded files from server in the package > > directory which means "data/data/com.../downloadFile/file". I just > > found my method didn' work anymore in 0.9 SDK. > > > private void StreamToFile(String stream, String filePath){ > > File file = new File(filePath); > > FileOutputStream fos; > > try{ > > fos = new FileOutputStream(file); > > DataOutputStream dos = new DataOutputStream(fos); > > dos.writeBytes(stream); > > Log.i("info", "file create ok "+filePath); > > } > > catch (FileNotFoundException e) > > {e.printStackTrace();} > > catch (IOException e) > > {e.printStackTrace();} > > > } > > > I got a FileNotFoundException, it's weird this method works in M5. > > > So i change it, i create the directory and file by using the mkdirs() > > and createNewFile() : > > private void StreamToFile(String stream, String filePath){ > > String path = filePath.substring(0, filePath.lastIndexOf("/") + 1); > > String fileName = filePath.substring(filePath.lastIndexOf("/") + 1); > > File directory = new File(path); > > if (!directory.exists()) { > > Log.i("info", "mkdirs "+directory.mkdirs()); > > Log.i("info", "directory "+directory.exists()); > > } > > File file = new File(directory, fileName); > > FileOutputStream fos; > > try{ > > file.createNewFile(); > > fos = new FileOutputStream(file); > > DataOutputStream dos = new DataOutputStream(fos); > > dos.writeBytes(stream); > > } > > catch (FileNotFoundException e) > > {e.printStackTrace();} > > catch (IOException e) > > {e.printStackTrace();} > > > } > > > mkdirs() return always false, is that mean we couldn't create > > directory in data? But i tried in console, it works with command line. > > I'm confused, anyone has idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android JNI
Thanks, that was exactly what we needed. We realize JNI is not supported, but Java code is just too slow to do the things we need... On Aug 25, 2:23 am, Volker Gropp <[EMAIL PROTECTED]> wrote: > On Aug 22, 9:30 pm, Tyler Ernst <[EMAIL PROTECTED]> wrote: > > > Also since the 0.9 beta has been released I have been unable to copy > > the .so to the /system/lib directory of the emulator. If anyone has > > found a way to do this that would be greatly appreciated. > > Hi, > > you have to mount the system rw. To do so run `adb remount` before you > push your .so. And keep in mindJNIwill not be supported, or did you > find a way to deploy your native lib with a .apk? > > Volker Gropp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android JNI
You are getting those errors because you are building for linux, but using the windows jni includes. This is because the compiler does not recognize the __int64 microsoft extension. You can build this in a windows environment, but you'll have to get the include files from the linux environment. Also since the 0.9 beta has been released I have been unable to copy the .so to the /system/lib directory of the emulator. If anyone has found a way to do this that would be greatly appreciated. Thanks On Aug 22, 10:46 am, vol <[EMAIL PROTECTED]> wrote: > Actually, the errors stemmed from some compile-related > incompatabilities. > > Is it possible to do this from win32, or do I have to do it from > Linux? > > On Aug 22, 11:36 am, vol <[EMAIL PROTECTED]> wrote: > > > > > I'm having trouble building the JNI example > > athttp://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-meth... > > . > > > First up, is it possible to actually do this from windows? Do I have > > to do this in a linux environment? I would think that doing this from > > windows is possible, but I don't have jdk/include/linux, just jdk/ > > include/win32, so that's throwing me. > > > Second, I am at step 6, and am attempting to use arm-none-linux- > > gnueabi-gcc. > > $ arm-none-linux-gnueabi-gcc -I/cygdrive/c/Program\ Files/Java/ > > jdk1.6.0_04/include/ -I/cygdrive/c/Program\ Files/Java/jdk1.6.0_04/ > > include/win32/ -fpic -c org_apache_NativeAdd.c > > > In file included from org_apache_NativeAdd.c:1: > > org_apache_NativeAdd.h:2:17: error: jni.h: No such file or directory > > In file included from org_apache_NativeAdd.c:1: > > org_apache_NativeAdd.h:15: error: expected '=', ',', ';', 'asm' or > > '__attribute__' before 'jlong' > > org_apache_NativeAdd.c:3: error: expected '=', ',', ';', 'asm' or > > '__attribute__' before 'jlong' > > > Ok. Cygwin + arm-none-linux-gnueabi-gcc didn't want to seem to include > > anything like that, so I just flat out copied over the contents, and > > it was happy to include them. Unfortunately, it didn't want to build > > them, giving me other errors like those seen above. > > > What do I have set up incorrectly for building JNI?- 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---