Android :: Disable Activity Transitions?
Mar 4, 2010Is it possible to disabled activity transitions altogether and still maintain compatible with 1.5 ?
View 2 RepliesIs it possible to disabled activity transitions altogether and still maintain compatible with 1.5 ?
View 2 RepliesLong story short, how can I disable the screen transitions between activities? We implemented our own tab handler if you will, and now it is doing a transition between tabs, which looks pretty tacky.
View 3 Replies View RelatedUsually when the activity started using intent ,it uses from right to left transitions.i want to start activity that uses from left to right transitions.
How to do this?
have an activity which launches another activity, via a button click. By default, on newer OS versions of android, the OS will animate the new activity sliding in from right to left.Is there a way to disable this animation? I just want the new activity to appear without any sort of animation.
View 5 Replies View RelatedI'm trying to create a transparent (no button background) ImageButton that has a custom selector. I have the selector working against the button but I now want the selector drawables to cross-fade into each other.
I saw the TransitionDrawable object that can be represented in XML. Is there a way to connect this into my selector?
Below is the XML layout code to create the image button on the screen in the lower left corner of the screen. It currently goes from one image to the next abruptly ignoring the transition XML.
CODE:.....................
In android 1.5 release notes I saw Animated window transitions.
What is this all about ?
IN my application i want to show trasitions if i go from one activity to other.We can set the animation for both activities and call when one is closing and other is opening.
But problem is when , the current animation will stop when the onCreate of next activity is called ?
Means , when activity is pushed to stack , ongoing animation is stopped. Because of this we cannot show a smooth transition effect between activities.
can i disable the webview onClick Activity(); I have a couple of webviews in a listactivity and i want to capture the listclick instead.
View 3 Replies View RelatedMy main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy lifting in another thread, and using a progress dialog which I set as non-cancellable. However, I noticed that if I rotate my phone it restarts the activity which is REALLY bad for the process that was running, and I get a Force Close.
What I want to do is programatically disable screen orientation changes until my process completes, at which time orientation changes are enabled.
On iPhone, Mobile Safari is WebKit based and supports hardware-accelerated -webkit-transform CSS properties. To be specific, I use the translate3d() transform.
What alternative is there for the Android browser? I need it to work on Android 1.5.
How can I disable the keyguard when a broadcast receiver is activated by screen_on, so that when it occurs the user sees an activity that I have started behind it?(The activity is running already)I have been trying the following code from a broadcast receiver triggered by screen off.It doesn't seem to be working though as it is. When I turn the screen on, I still have to manually unlock the keyguard on the phone to reveal the activity behind it.
View 1 Replies View RelatedCan I temporarily disable automatic orientation changes in my Activity? I want to do this when my app does some background internet communication.
View 1 Replies View RelatedIn my application, how do I disable the transition animation that shows the new activity layout enter from the right and the old one exit to left? Versions 2.0 -> 2.2 if relevant.
View 2 Replies View RelatedI have a layout with lots of different imagebuttons on it. Application is developed in full-touch, so there should be no response to keyboard or keypad on all activities except one, where user can input his name.
Is there a way to achieve that?
I've checked on debug, keypress and keypad press result in onKeyDown event. I've set it to return 'false' for all keys. But, for some reason, android keeps selecting my imagebuttons when keypad is pressed. And pressing Enter key result in View.onClick event.
How to totally disable all keyboard input for activity? I use Motorola Milestone for tests - a slider with a keyboard.
How can I disable 'Sorry! Activity YYY (in application XXXX) is not responding as I debugging my android inside eclipse?
View 3 Replies View RelatedIn android, I create my menu item like this?
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(0, 0, 0, "Menu1");
menu.add(0, 1, 0, "Menu2");
return true;}
How can I set all the menu item disabled programmically (in another part of the code in my activity, not in onCreateOptionsMenu() method itself)?
I have stock gingerbread launcher and I wanna faster homescreen transitions, and faster entering in app drawer and also how to change icon pressed/focused color on homescreen and in app drawer (I wanna that invisible). I know decompile but don't know where and what to modify.
View 1 Replies View RelatedI don't think iOS7 is such an "amazing" upgrade. Some icons are hideous and almost all new features already exists in Android.But i have to say, i instantly fell in love with the awesome window-transtions when opening and closing apps, se below:
http:[url]......
I currently run a Nexus 4 (Jelly Bean, CM10.1 Linaro) with a modified framework-res.apk file with ICS transitions.I know how to create animations (I am an android developer) but wouldn't it be cool to implement them on our system?In the anims folder of framework-res.apk you find all of these xmls containing different animations
Code:
accelerate_quad.xml
accelerate_quint.xml
activity_close_enter.xml[code].....
Some of them are pretty obvious (toast_enter.xml for example) but i dont really know which one does what.
I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING -> IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one.Is this a bug or am I just not in tune with the paradigm here?
View 2 Replies View RelatedIs it possible to override "system" transitions such as desktop->activity, activity->dialog, etc?
View 2 Replies View RelatedI try to rewrite the method onKeyDown, like this. code...
it works for the other keys, but not for "HOME". How can I disable it?
Whenever the memory needs to be reclaimed, the process is being killed by Activity Manager Service in killPidsForProcess. I have a back button in my activity window on right corner of the title bar.
I want to kill the activity completely on clicking the close button. Can I reuse the same function and will it have any major effect? Please help me out in this.
I want to be able to show the Battery Info activity in my app, which shows things such as the exact level, battery health, etc.I'm not sure how I can get it, though a few applications such as Power Manager, Any Cut, etc. show this screen as well. I found in the source code of Settings this intent in a file called testing_settings.xml,But I don't know how to use it. I would guess from the fact that Any Cut has a list of activities, that a list of said activities exists somewhere, and therefore an easy way to access them exists, but I haven't found it.
View 3 Replies View RelatedMy app is comprised of a set of reusable Activities that other apps can reuse. For various reasons, I would like my Activities to be launched in context of the invoking Activity's process, instead of always being launched in my Activity's process (default behavior on Android). How can I achieve this?
View 1 Replies View RelatedSo I have an app with Activity A. The layout on the activity is dynamic genearted. So it's possible that on Activity A a user hits a button that goes to "A" and the new page looks different, then a user clicks another button to go to "A" again. Now I have 2 Activities in the history stack. A, A, and currently on A. Is it possible that if a user clicks a button that the whole Activity stack is cleared in a scenario such as this?
View 5 Replies View RelatedHow to finish any previous activity in application stack (at any level , I mean not immediate parent) , from current activity like on some particular event I want to invalidate this previous activity?
View 1 Replies View RelatedHow can I make sure I only retain one copy of an activity on the stack when called from non-activity? When called from an activity I can just add the FLAG_ACTIVITY_REORDER_TO_FRONT flag to the Intent, but how can I do this from e.g. a widget or a notification?
View 1 Replies View RelatedI have a problem to start/create Activity in landscape mode. My Activity need to start in landscape mode and be used in landscape mode by users. So far, I used setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) to force screen orientation of my Activity to landscape mode in onCreate() method.
In addition to this screen mode requirement, my application need to start another background thread in onResume() method, and this thread takes some seconds in order to finish an initialization process, and it is not desirable to to stop/restart this thread's service during the initialization process.
However setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) forces my Activity restart in a very little while (means onCreate->onResume->onPause->onStop are executed twice at the first place). As a result, my background thread be stopped/restarted during the initialization process, and this makes me a mess at this moment.
The default behavior from my observation is if current activity force closes Android tries to go to previous activity on stack How can I control this behavior? I want force close to close all activities
View 2 Replies View RelatedIm writing a program that offers a quick reply dialog upon receipt of an SMS.
However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application)
I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the user was doing before.
The 'floating' activity:
CODE:.........
The call to the activity inside an onReceive()
CODE:..............
The Manifest:
CODE:.................
I'm writing an application that starts with a loading activity. In the loading activity the app requests html from web and parses the html, then it sends the parsing result to the main activity. The main activity has several tabs, and contents of these tabs are based on the result of parsing.For example, the result of parsing is a list of strings ["apple", "banana", "orange"], and I need to pass this list to main activity, so that the main activity can create three tabs named after three fruits.I would like to know if there is any way to pass a list of strings among activities, BTW, is it the common way of do this?
View 2 Replies View Related