[android-developers] Animation behavior

2010-06-20 Thread gymshoe
I want to perform animations within a view. However, the behavior of the animations does not seem consistent depending on the sequence, and I don't understand why. This example performs a simple fade out of the image: XML: set xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Scaling Animations: What does Android consider a scale of 1.0?

2010-06-20 Thread gymshoe
I want to perform a tween animation within a view. I receive unexpected results, if I do a simple scaling animation on an ImageView (containing a simple picture, and part of a RelativeLayout) which I want to shrink from full-size to half-size: XML set

[android-developers] Re: how and where to save SecretKey for encryption and decryption

2009-09-02 Thread gymshoe
Isn't java byte code remarkeably easy to reverse engineer into source code using one of many free java decompilers? From my understanding, even using an obfuscator on the byte code (if that is possible with android implementation) isn't terrible effective at preventing decompilers from doing a

[android-developers] Re: bluetooth use in android

2009-08-23 Thread gymshoe
I am confused. According to above, There is no Bluetooth API in the SDK at this time, yet Android does offer: Stereo Bluetooth support (A2DP and AVCRP profiles) (http:// developer.android.com/sdk/android-1.5-highlights.html) Is there no API for use with the A2DP or AVCRP profiles? thanks,

[android-developers] Re: OnSharedPreferenceChangeListener not listening anymore in 1.5??

2009-06-26 Thread gymshoe
I tried implementing OnSharedPreferenceChangeListener as well (1.5_r2) and could not get it to work. Since I never had working code in a prior Android version, this could be due to a mistake in my coding. However, I just switched to using onPreferenceChangeListener() and it worked fine... Jim

[android-developers] Re: Easy one (hopefully) Inverse preference dependency?

2009-06-04 Thread gymshoe
1) invert the preference question for the dependency. 2) If you convert your preference from XML to code, you may have more flexibility. (You have probably considered both and neither is a good option for you...) Jim On May 22, 12:14 am, Peter Carpenter peter.carpen...@skytechnologies.com

[android-developers] Re: Camera application 1.5 on emulator does nothing

2009-05-23 Thread gymshoe
You probably have thought of this, but when you created the AVD did you enable camera support (the default is disabled)? see: http://developer.android.com/guide/developing/tools/avd.html cheers On May 22, 8:02 am, arnouf arnaud.far...@gmail.com wrote: Ok so you did the test that I would

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-19 Thread gymshoe
Thank you for the info. I have noticed that the leaked window error is largely fixed with 1.5_r1 if you run using a 1.5 AVD. (It still occurs when I initiate a preference from an intent inside an xml, but is otherwise cured.) Jim On May 19, 11:15 am, Jason Parekh jasonpar...@gmail.com

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-19 Thread gymshoe
FYI: Bug documented under Android Issues#2680. http://code.google.com/p/android/issues/detail?id=2680can=1q=preferencescreencolspec=ID Type Version Security Status Owner Summary On May 19, 6:57 pm, gymshoe gyms...@bresnan.net wrote: Thank you for the info. I have noticed that the leaked

[android-developers] Can Window Leaked error messages be ignored, and what are the consequences?

2009-05-15 Thread gymshoe
The PreferenceScreen class has a bug with saving its state when it has PreferenceScreen children in its hierarchy and you cause a screen re- orientation with one of those PrefereceScreen children as the focused window: 05-15 23:08:27.281: ERROR/WindowManager(4980): Activity

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-14 Thread gymshoe
I cannot find a method .cancel() for the class PreferenceScreen. Could it be something else? thanks, Jim On May 13, 7:28 am, scuellar scuellar...@gmail.com wrote: This is the solution for you problem: When you change the screen orientation, the activity is destroy and then re-created

[android-developers] updating an AlertDialog after it was created when the AlertDialog displays an array as a list

2009-05-13 Thread gymshoe
I am trying to let the framework manage my alertDialogs. I have no trouble creating the alertDialogs using onCreateDialog(), and I am able to do some on-the-fly updating of these alertDialogs using the following code in onPrepareDialog(): protected void onPrepareDialog(int id, Dialog

[android-developers] Re: How to start an Intent from preference page AND GET RESULTS?

2009-04-28 Thread gymshoe
see: http://www.anddev.org/starting_intent_from_preferences_screen-t4505.html This invokes an Intent directly from Preferences XML which is handy. (Perhaps you could specify ACTION_GET_CONTENT to return a value to your app, although I have not tried this.) Invoking the intent works OK

[android-developers] Re: How to creat Toast Like view

2009-03-12 Thread gymshoe
http://www.anddev.org/2_ways_to_implement_a_toast-t3164.html On Mar 11, 2:16 am, Tushar tusharpatu...@gmail.com wrote: Hi, Using android.widget.Toast one can created  floating view over the application. I would like to created similar view which will float on top of all running

[android-developers] Re: How to implement android's Gallery fling action in my own widget

2009-03-12 Thread gymshoe
The fling animation is automatic with the Gallery class. If you need your own (new) widget class, just make your own MyGallery class which extends Gallery. Then just overwrite the onFling() method to do whatever you want to do, and at the end of that method call super.onFling(args). Jim On Mar

[android-developers] Re: runtime error using exported/signed apk but no runtime error using Eclipse IDE

2009-03-03 Thread gymshoe
), then it does not have write permissions and cannot update the SQL database. This was verifed by changing the described permissions to drwxrwxrwx which fixes the problem. Jim On Mar 1, 11:27 pm, gymshoe gyms...@bresnan.net wrote: 1) I am developing my app inEclipse3.4.1 with Android (ver 1.1_r1) plugin

[android-developers] Re: Using my own SQLite database

2009-03-03 Thread gymshoe
While you can read other databases, if you want to update it, you may have problems because the directory: /data/data/YOUR_PACKAGE/ databases/ does not give permission to write. (It has permissions of drwxrwx-- x). Jim On Mar 3, 12:12 am, fluxa jmfl...@gmail.com wrote: Check out this post

[android-developers] Re: When do I need a new Activity?

2009-02-25 Thread gymshoe
Good question! Can anybody with experience help?? thanks, JIm On Feb 25, 3:15 pm, Michal mic...@gmail.com wrote: Hello, this is as beginner as it gets. I'm creating an app that is basically a series of forms that collect info from the user, and then display that info to the user as well

[android-developers] Re: a question about gallery

2009-02-25 Thread gymshoe
, thank you for your help! On Feb 24, 6:18 am, gymshoe gyms...@bresnan.net wrote: By the way, when you fling the gallery, Android does not call the onFling() method. Flinging the gallery calls the onScroll() method of gallery. This is probably why changing setCallbackDuringFling(false) did

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
well. but when I fling thegallery, every iamge being flinged over will displayed in the ImageSwitcher one by one. Now I want to realize that the imageSwitcher only displays the image where thegalleryfocused on at the end of flinging. On Feb 21, 2:49 pm, gymshoe gyms...@bresnan.net wrote: I

[android-developers] Gallery onScroll() performs multiple activations - normal or Bug?

2009-02-23 Thread gymshoe
I have written a custom class MyGallery which extends Gallery. This enables me to override the onScroll() method of Gallery. Now that I have done this, I have found that onScroll() behaves oddly. When I scroll on the emulator, it activates the onScroll() method multiple times - usually 2-4,

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
 pm, gymshoe gyms...@bresnan.net wrote: H. I don't know enough to solve your ImageSwitcher problem. Intuition tells me that there may be no easy solution to fix ImageSwitcher if the problem is due to the way Android handles the fling calls... But I have to ask: Why do you use the gallery

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
why... Jim On Feb 23, 3:18 pm, gymshoe gyms...@bresnan.net wrote: By the way, when you fling the gallery, Android does not call the onFling() method. Flinging the gallery calls the onScroll() method of gallery. This is probably why changing setCallbackDuringFling(false) did not work

[android-developers] problems with Gallery and gestures

2009-02-15 Thread gymshoe
Hi all, I am using a Gallery view. This is my goal: I would like to be able to listen for gestures so that I can take specifc action, in addition to allowing the usual action that the Android framework provides. For instance, when the user scrolls the Gallery, I would like to know that the user

[android-developers] Re: if size of image is larger than or smaller than specified display size

2009-01-22 Thread gymshoe
My limited experience has been that Android does automatically compress and stretch at runtime. If you want to keep the proportions, you need to specify: android:adjustViewBounds=true in XML formatting, or equivalent in Java. jim On Jan 22, 3:07 am, jalandar jagtap...@gmail.com wrote: if size

[android-developers] Touchmode and OptionsMenu issue

2009-01-21 Thread gymshoe
Scenario: You start your program and you are not in Touchmode. You open the options menu by clicking on the menu hard-key (so you are still not in Touchmode). Now, instead of using the Dpad to select a specific option, you finger-touch or mouse-touch the option you wish to select. Now you are in

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-18 Thread gymshoe
as soon as you're running out of memory. Are you doing anything funky with your Bitmap/Drawable objects? How do you manage them? On Jan 17, 9:03 am, gymshoe gyms...@bresnan.net wrote: I have noted the following discrepancies compared to the descriptions here, using a similar, simple

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread gymshoe
I have noted the following discrepancies compared to the descriptions here, using a similar, simple application which uses Gallery, and BitmapFactory: 1) EboMike, How exactly do I run the application without a debugger attached? I assume that closing Eclipse entirely, and launching a new

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-01-17 Thread gymshoe
them? On Jan 17, 9:03 am, gymshoe gyms...@bresnan.net wrote: I have noted the following discrepancies compared to the descriptions here, using a similar, simple application which uses Gallery, and BitmapFactory: 1) EboMike, How exactly do I run the application without a debugger

[android-developers] Re: Common code with Eclipse

2009-01-10 Thread gymshoe
1) I think this problem is solely related to using external JAR's. I tried to do reference an external JAR for the first time, and got exactly the same error. If you have solved this issue, please post. 2) Sorry, don't know about this. Thanks, JIm On Nov 19 2008, 2:50 pm, Alvin Yates

[android-developers] Re: Common code with Eclipse

2009-01-10 Thread gymshoe
Thanks for the explanation. This sounds useful for creating reusable, user-created libraries. I guess my problem is that I was experimenting with importing external jars which were not android specific. These fail to load (which I guess should be obvious), with errors described previously. Jim

[android-developers] Can't get out of TouchMode

2009-01-05 Thread gymshoe
This is my problem: I have an activity which displays a gallery which is initially visible. When the user clicks on the gallery, the gallery visibility is changed to gone and a datapage is displayed (i.e. becomes visible). When the datapage is clicked, the process reverses and the gallery

[android-developers] Re: Not getting expected socket errors

2008-11-02 Thread gymshoe
I think I have a closely related problem. I launch one emulator running a server program (with appropriate port redirections) and one emulator running a client. The client is able to successfully make connections to the server. Then I end the server program on the emulator, but do not kill the

[android-developers] Re: List View Issue

2008-10-19 Thread gymshoe
(I assume you are using the Eclipse IDE with android.) I am a novice too, so of limited help. But I do know that your Log.w() statements don't print in the console view, they print in the LogCat view within the DDMS perspective. (Console is also a view within the DDMS perspective.) To see the

[android-developers] can't access XML resources from classes outside my main (launched) activity

2008-09-23 Thread gymshoe
I am having trouble accessing my XML resources from outside my main activity. I suspect this is easy to do, but I am a novice to android/ java and this is driving me crazy. I want to declare a class so it is not nested, but rather public to all other classes in my program. However, when I

[android-developers] onCreate method of SQLiteOpenHelper also seems to execute on opening - ?bug

2008-09-17 Thread gymshoe
I need to open an SQLite database if it exists, or create the database if it doesn't already exist. The android API makes this easy to do, but my problem is that I would like to execute additional code if the database is being created for the first time (i.e. this is the first time the user is

[android-developers] Re: onCreate method of SQLiteOpenHelper also seems to execute on opening - ?bug

2008-09-17 Thread gymshoe
()... but since onCreate behaves differently, I guess I will go back the other way. thanks, Jim On Sep 17, 8:03 am, Mark Murphy [EMAIL PROTECTED] wrote: gymshoe wrote: So does onCreate behave differently than I thought? If it behaves as you describe, it feels like a bug. Is there a better way

[android-developers] Re: onCreate method of SQLiteOpenHelper also seems to execute on opening - ?bug

2008-09-17 Thread gymshoe
] wrote: gymshoe wrote: So does onCreate behave differently than I thought? If it behaves as you describe, it feels like a bug. Is there a better way to do what I want? I don't know about better, but in onCreate(), you could check to see if your tables exist (select count(*) from sqlite_master