[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 http://schemas.android.com/apk/res/android"; a

[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: http://schemas.android.com/apk/res/android"; android:interpolator="@androi

[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 g

[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? thank

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

2009-06-25 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 O

[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" wrote: > Hi, > > I have a preference

[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 wrote: > Ok so you did the test that I would like to do. > For your inf

[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=2680&can=1&q=preferencescreen&colspec=ID Type Version Security Status Owner Summary On May 19, 6:57 pm, gymshoe wrote: > Thank you for the info. > > I have noticed that the &qu

[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 wrote: > Hi all, > > Thi

[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 com.northwestradiology

[android-developers] Re: Leaked window in PreferenceActivity

2009-05-15 Thread gymshoe
y"); } 3) @Override public void onSaveInstanceState(Bundle state) { Log.v(TAG,"START onSaveInstanceState"); getPreferenceScreen().removeAll(); super.onSaveInstanceState(state); Log.v(TAG,"END onSaveInstanceState"); } Jim On May 14, 9:46 pm, g

[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 wrote: > This is the solution for you problem: > > When you change the screen orientation, the activity is destroy and > then re-created again, so you have

[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 dial

[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 internall

[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: 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 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 applications at a specified lo

[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 wrote: > Check out this post > herehttp://www.r

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

2009-03-03 Thread gymshoe
group), 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 wrote: > 1) I am developing my app inEclipse3.4.1 with Android (ver 1.1_r1)

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

2009-03-01 Thread gymshoe
1) I am developing my app in Eclipse 3.4.1 with Android (ver 1.1_r1) plugin. My app compiles and executes without errors when using the Eclipse IDE. However, when I export my app (unsigned) using Eclipse (via {select project} >right-click>Android tools>export unsigned application package), sign

[android-developers] Re: a question about gallery

2009-02-25 Thread gymshoe
to > fix the ending of flinging. > Once more, thank you for your help! > > On Feb 24, 6:18 am, gymshoe wrote: > > > > > By the way, when you "fling" the gallery, Android does not call the > > onFling() method. > > Flinging the gallery calls the &qu

[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 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 as > allow t

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
why... Jim On Feb 23, 3:18 pm, gymshoe 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

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
allbackDuringScroll() method. Jim On Feb 23, 2:20 pm, gymshoe 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 c

[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, somet

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
oundResource > (R.styleable.GalleryActivity_android_galleryItemBackground); >             return i; >         } > >         private Context mContext; > >     } > > When I select the iamge in thegalleryone by one, it works well. but > when I fling thegallery, e

[android-developers] Re: a question about gallery

2009-02-20 Thread gymshoe
I am not sure why you are getting onItemSelected() activated more than once. I don't, and my code is slightly different. First, the onItemSelected () method is inside the OnItemSelectedListener class. Also, I don't specifically change the setImageResource() at all. The API seems to handle changi

[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 use

[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 wrote: > if size of image is larg

[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 or the option you wish to select. Now you are in TouchMode. However,

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

2009-01-18 Thread gymshoe
on my device, sometimes with > 1000 entries in the Gallery and scrolling like crazy, and I've never > OOMed. If I have the debugger attached, I OOM pretty quickly. > > 3) Interesting. SHOULDN'T happen, the VM should automatically gc as > soon as you're running out of

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

2009-01-17 Thread gymshoe
ached, I OOM pretty quickly. > > 3) Interesting. SHOULDN'T happen, the VM should automatically gc 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, gymsho

[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 emul

[android-developers] Re: Common code with Eclipse

2009-01-10 Thread gymshoe
and choose "Refresh". > > Other than that, this works like a charm for me. Again, I'm sure > people who are more familiar with Eclipse are scoffing and have a much > better solution. > > On Jan 10, 4:25 pm,gymshoe wrote: > > > > > 1) I think this problem

[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 wrot

[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 bec

[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 e

[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 s

[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 create

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

2008-09-17 Thread gymshoe
TED]> 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 coul

[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

[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 ru