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;
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
), 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
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
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
, 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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
()... 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
] 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
38 matches
Mail list logo