Android :: Moving Back To A Specific Activity Always
Feb 4, 2009
I've got four activities
A, B, C and D where A is the main entry screen.
No matter how I navigate to B, C or D (via A->B or A->C-B etc), I want the back button to always go to activity A. What flag can I set to do this specifically?
View 2 Replies
Jul 29, 2010
I want to specify in code to move to specific activity after pressing back button on android keypad how I can accomplish this. Now I ot the solution to my prob onBackPressed() works after 1.6 version for previous versions we need use:
public boolean onKeyDown(int keyCode, KeyEvent event) method
My code for this solved prob is
@Override public boolean onKeyDown(int keyCode, KeyEvent event) {
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.CUR_DEVELOPMENT && keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
// Take care of calling this method on earlier versions of
// the platform where it doesn't exist. onBackPressed(); }
return super.onKeyDown(keyCode, event);
} //@Override public void onBackPressed() {
// This will be called either automatically for you on 2.0
// or later, or by the code above on earlier versions of the
// platform.
Intent i=new Intent(AgesWebViewIndex.this,TabCls.class);
i.putExtra("age", "agepage");
startActivity(i);
return;
}
View 2 Replies
View Related
May 5, 2010
I am writing a application where I am dealing with 4 activities, let's say A, B, C & D. Activity A invokes B, B invokes C, C invokes D. On each of the activity, I have a button called "home" button. When user clicks on home button in any of the B, C, D activities, application should go back to A activity screen ?
How to simulate "home" button in this case ?
View 1 Replies
View Related
Aug 17, 2013
I have an LG Optimus L5 II (LG-E450B) running stock Android 4.1.2 (non-rooted) Kernel Version 3.4.0. My carrier is Virgin Mobile (Canada). I recently realized that the stock 2GB of internal memory is not nearly enough for me, so I went out and bought a 16GB Sandisk microSD card. I put music on it, set photos to autosave on it, etc. which all worked great. However, I have been unable to get some apps to move over correctly.
I realize that some apps can't really get moved (at least without rooting, etc). The app I am specifically trying to work with is iBird pro. It's App Info appears as such:
Total: 641 MB
App: 12.68 MB
USB storage app: 628 MB
Data: 4.00 KB
SD Card: 0.00B
The "Move to SD Card" option is available, but when I do it all that it does is drop the App to 3.51MB and up the USB storage app to 637MB. All of which stays on the internal memory. Obviously it is only moving 9MB or so of App to the virtual SD internal memory (which I believe is what shows up in my files manager as /storage /sdcard0, so it doesn't actually move it to the SD card (though a few other apps have sucessfully been moved).
I have tried using App2SD, but it says that the program is not supported by my device (and the iBird Pro shows up as "Phone Only" anyway).
I have tried the ADB hack trick set-install-location 2 and reinstalled the app and still nothing, it just saved on the internal memory.
Finally, when I open the app, it also downloads another ~600MB of database data (bird songs, pictures, etc), which also saves on the internal memory. Or at least tries to but the memory gets full and it stops the download.
View 9 Replies
View Related
Oct 13, 2012
I have an iphone4s and I'm quite happy with it, except for the fact that I hate Apple. So I want to move back to Android. Things that I like about the iphone is the mail app and. mostly, battery life (battery consumption when screen is locked is superb, and that is the phone status usually). I'm not going to use the phone for games, but for calls, whatsapp, twitter, g+, music (lots of music playing), some video and gps navigation. I would like to ask people for recommendations on a good terminal based on (most important to less important):
1.- Battery life (I give importance to battery life when idle)
2.- Fast processor
3.- Fast charging
4.- Support for external storage (microSD)
5.- Cyanogenmod compatible
6.- If possible, the terminal sould allow me to replace the battery
Do not comment on things like switch off wifi when not browsing the web, or switch to 2G when not using 3G to improve battery life. I do not do that now and I have power for 36 straight hours with my iphone. I'm not looking for workarounds for bad battery life. I'm trying to have the same battery performance I have on my iphone on a phone with Android without switching things on and off.
View 9 Replies
View Related
Aug 26, 2009
I have an activity that begins with almost a page of text, then has a few form controls. When the activity launches, the first form control takes focus and the screen scrolls down to make it fully visible. When this happens, the text at the top is off the top edge of the screen. When the screen comes into view, I want the text at the top to be visible. So, onCreate, I tried sending a message to the Activity's overridden handler to do the following:
ScrollView main = (ScrollView) findViewById(R.id.main);
main.pageScroll(ScrollView.FOCUS_UP);
This did nothing. I then tried:
main.scrollTo(0,0); This also did nothing.
I then tried sending the message from onResume instead of onCreate. This also did nothing. How to force the scrollview to actually scroll?
View 3 Replies
View Related
Jun 9, 2010
I have* two activities*,
*1st one* has a ques and 4 options.
*2nd one* is like a result page (... displaying if your ans is correct or not ...and showing the right ans ..)
Now what i want is when a user clicks :
on a right option [or wrong option] ..i want to turn that Image button into green [ red] .*.and wait for a while* ..and then go to the result activity ..
*so my only concern is onclick of a ImageButton ... how to wait for a while .. and then move to other activity* * * any kind of suggestion will do ..
View 4 Replies
View Related
Feb 1, 2010
I have created 4 activities in eclipse now i want to run activity 1, 2,3 ,4 respectively one by one in emulator for testing.
can any one guide me how can i run those all?
when i press run button it only runs first activity.
View 3 Replies
View Related
Aug 3, 2010
I'm trying to implement tab buttons bar and a navigation bar in my android application. The problem is, that I would like the navigation elements to persist. When starting a child activity, the nav bar moves.
How can I make these two elements "non-movable"?
View 1 Replies
View Related
Jan 26, 2009
I have an application with contains multiple activities. The main activity will start the others ( use startActivity() ) depends on user event, when an activity close, it calls finish() and return back to main activity. It appears to behavior like that.
However, the "problem" I see is main activity's onCreate function is called every time. I think the the main activity should be placed in the activity stack and simply push to front when others exit, therefore only onResume, onStart are called. Is there some flag I need to set or I misunderstand the activity behaviro?
In child activity, besides calling finish() or startActivity for main activity, what is other way to move main activity to front?
View 2 Replies
View Related
Mar 3, 2010
example scenario is: from login screen - main screen - then when i clicked a hide button the app will go to home screen, and when im going to click the app again the main screen would be called.
View 2 Replies
View Related
Aug 15, 2010
I had my HTC desire for a month, but I'm sorry to say that I will go back to iPhone. Don't get me wrong, the device is amazing, super smooth and fast, good camera, internet loads faster than my old 3GS and open apps in matter of seconds. Most importantly, it offers me endless possiblity of customization.Even having all that great features, there is something that lacks, and it makes me regret of my purchase sometimes. I tried to make it work, I tried to adapt and change my preferences, but I can't do that anymore.Today I was in the market because I just got bored of the only 5 good games for android. So I entered looking for soiemthing new. Seeing apps like "shinobi barrage" and "ghost chaser" being 4 stars and topping the games list, it made me sad. Games like those only get 2 stars in apple market. And I don't like having such a powerfull device just to play a game with 10 years old graphics. Then I encountered with the nazi theme and ringtone apps.
View 49 Replies
View Related
Jun 9, 2010
Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.
Is there a way to determine which activities can be launched via startActivity?
For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to launch all o these just fine.
However, it also contains some activities that I am not able to launch with startActivity... If I attempt to do this I get a SecurityException.
I want to be able to determine which activities I can safely launch and which I cannot so I only present the user with a list of activities that I can safely launch from within my application...
View 1 Replies
View Related
Jun 13, 2010
I've been searching a way to implement an intent so when a user clicks on a notification, an specific method from an activity is executed (or an specific behavior happens). Right now I'm thinking about using broadcast but I don't know if this is the best way to implement this functionality. How would you implement it?
View 6 Replies
View Related
Jun 2, 2013
My boyfriend has two email accounts on his phone. He wants to backup his personal contacts to his personal account and his more important contacts to his other account. When he tried to do this it doubled the contacts on his phone. (Basically went from 50 contacts to 100 contacts).
Is there any possible way of doing this?
View 1 Replies
View Related
Sep 18, 2010
Where is the back button? Like, just to move back without deleting the text? I've had this thing for 2 days and this is driving me crazy?
View 16 Replies
View Related
Jun 8, 2010
I'm coming from windows mobile here so I'm not sure if this is an Android thing or the Incredible specifically, but the bluetooth implementation absolutely sucks. I'm using the phone with the Plantronics 975, which is an absolutely fantastic earpiece. The problem is that it NEVER automatically reconnects to the headset after moving out of range and then back in. I've also verified this with an old motorola headset, so the phone is the problem. With my Touch Pro 2, I could walk outside to my car to get something with the earpiece still in my ear, and the phone would disconnect and then automatically reconnect when I get back inside. Not only does the Incredible not do this, but when I come back in, even after pressing the button on the bluetooth headset (which I didn't have to do on WinMo) it just says "paired but not connected" in bluetooth settings. In order to get the phone to reconnect with the headset, I have to turn bluetooth off, back on, go into wifi settings and click "connect" EVERY SINGLE TIME I go out of range and back in range. Coupled with the infamous lack of touchless voice dialing, I am seriously dissapointed in Android's implementation of bluetooth, and don't understand how Google can put out a phone that sucks so bad as a phone - especially when in many states such as mine, a bluetooth headset is the ONLY legal way to use your phone when you drive. Any ideas how to fix this annoying problem or am I just stuck with it?
View 2 Replies
View Related
Sep 27, 2010
I am developing an application in android which has a login Screen. Right now I am able to receive the response from the server successfully. After a successful response it should take me to the next activity or class where I display a new screen/activity. what should I do in order to achieve this.
View 1 Replies
View Related
Jun 23, 2010
i am using android gallery is there any listener or way i can know which get fired when user start motion, stop motion, slowing down or moving?
View 1 Replies
View Related
Nov 24, 2010
I am launching an activity to make a phone call, but when I pressed the 'End Call' button, it does not go back to my activity. Can you please tell me how can I launch a call activity which comes back to me when 'End Call' button is pressed?
View 5 Replies
View Related
Aug 25, 2010
I was wondering how or if it is possible to exclude activities from the back buttons history list? For example not letting the user back into the Splash Screen?
View 2 Replies
View Related
Nov 14, 2009
I've been searching and looking for this answer for quite some time now. I want to display a little HTML in a webView.
When the User read the HTML, he's supposed to use the back button to go back to the previous activity. However, it closes the App.
How can I make it go back to the last Activity? It would also be ok to display a soft back button or something. Here my code...
View 2 Replies
View Related
Nov 2, 2010
on the ui i am having a back button displayed. there are three activities say A,B,C. Activity A is splash screen. Activity B is home screen. Activity C is edit screen. on edit screen only i am having a back button. when the user press that i open the activity B which also contains some sort of http request and response. i want that the previous activity from stack should get displayed? how can i achieve that? i am able to open previous activity on pressing the back button of device? when i press back button on device there doesnt goes any http request? i want to achieve this behaviour when i press the ui back button.
View 2 Replies
View Related
Aug 17, 2010
My app chains some activities.
if you press the back button, you go back through old activities then you suddenly quit the application !
so I need to show a message like "do you really want to exit" if it's the last activity on stack
I know how to override the back button but i can't figure how to know how many activity are in history
CODE:..................
View 1 Replies
View Related
Jul 14, 2010
I have an activity defined as below:
CODE:............
A strange thing is that, when running on emulator, and the back key is pressed, the activity was destroyed (I saw onDestroy() called in log). But when running on my Nexus One phone, and the back key is pressed, the activity is not destroyed (I didn't see onDestroy() called in log).
View 1 Replies
View Related
Mar 10, 2010
I'm doing some network job in AsyncTask. Sometimes it requires communication with user. (connection is dropped, session is expired and so on). I want to pop up a dialog or launch an Activity, and then, depending on user's input, stop the job or redo it. I can launch any Activity from AsyncTask, but how to get result back? It seems to be possible only if I launch new Activity from another Activity. What are possible solutions?
View 5 Replies
View Related
May 31, 2010
Just picked up my incredible, and I have two questions....
1. how do i change the email notification to a specific sound? As of rite now, when i receive an email nothing happens (no sound or vibrate).
2. How do I select a specific ring for mms. I know how to select sms, but I cant figure out how to change the mms.
View 3 Replies
View Related
Apr 7, 2010
Android - Can I force BACK button to go 2 steps back in the Activity stack with some kind of code? I know I can override the onKeyDown method but I want BACK to do it's thing, just twice!
View 3 Replies
View Related
Oct 28, 2009
When user presses BACK key, my activity's onDestroy is called and then it is killed. Is there a way (by overridding Activity.onKeyDown??) to simply put the activity into background without killing it? I want the BACK key to act like the HOME key (which doesn't kill my app), except I want to show the activity immediately below my activity.
View 7 Replies
View Related
Jan 29, 2009
Our application has a fair amount of java script. As far as we known, WebView widget doesn't handle AJAX, therefore we want to bring up the brower to load the url. The problem is, after user done with browser, how can it goes back to where it left in our application? ( when user quit the browser, our application will show up the activity before went to browser)
View 2 Replies
View Related