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