Android :: Back To Activity When Call Is Done
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
Dec 15, 2009
Is it possible to make a call from an activity and make sure the activity doesn't keep running while the call is in session? And, once the user is done with the call (by pressing the hangup button or whatever), the call log screen wouldn't get shown and the user would be directed to a new activity within the application. I know there's ways to detect calls and call hangups through services, but, I'm not sure if it's possible to make an activity from an app pop up as soon as a call is over.
View 2 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
Apr 15, 2010
Experts: My MainActivity launches a SubActivity by calling: startActivityForResult(intent, REQ_CODE); The SubActivity shows a dialog that has two buttons: Yes, No For the dialog, I've the following code: public void onClick(DialogInterface dialog, int whichButton) {/* User clicked OK */setResult(DialogInterface. BUTTON_POSITIVE) ;finish();
View 2 Replies
View Related
Mar 12, 2010
How can i call one activity to other activity without using intents and services?
View 3 Replies
View Related
Aug 3, 2010
So i rooted with Droid Does rom, because i heard its nice and fast and what not. So basically the only problem i have with it is this.
When on a call, the proximity sensor doesnt work, so the screen goes black. And when i press the end call button to turn the screen back on it just ends the call. Is this normal? Or a known issue?
View 10 Replies
View Related
May 23, 2010
I have two questions:
1) Before the update, there was a sound that indicated when the call was ended. Anyway to get that back?
2) Has anyone figured out a way to change the end button behavior that was previously controlled by the Spare Parts app? I would like to end button to go home and then go to sleep but Spare Parts can't do it under the new software. Any ideas?
View 8 Replies
View Related
Aug 30, 2010
I'm using LauncherPro plus and cannot get back to the call screen to disconnect the call, the one in progress, if i leave that screen for any reason like to go to the home screen.If I switch over to HTC Sense I just hit the phone button from the home screen and it takes me back to the call in progress and I see a red 'end call' button.Is there a solution for this problem other than , just don't leave the call screen?
View 2 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
Jun 7, 2010
A TabActivity start other activity when i click on a tab,
How to send information to parent (tabActivity) and don't finish current activity?
My tabactivity start another activity like this :
CODE:............
Inside my new Activity Option, i would like to Call method of Tabactivity, is it possible ?
View 1 Replies
View Related
Jun 25, 2009
How can I call an activity of app A from app B.
View 6 Replies
View Related
Jun 23, 2009
I am developing a android application with more than four activities. i am starting a activity using startActrivity() method wherever i need to go for other activity. i feel this degrade my application performance.
View 2 Replies
View Related
Jul 26, 2010
When I try the above, I get a class not found exception. I have included the required entry in manifest file. The code in current activity is as follows: Intent i = new Intent(MainListingA.this, DrawTheatreMap.class); try{startActivity(i); The error I get is as follows: 07-26 23:03:20.259: WARN/dalvikvm(307): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): FATAL EXCEPTION: main 07-26 23:03:20.397: ERROR/AndroidRuntime(307): java.lang.NoClassDefFoundError: com.mobilo.movie.DrawTheatreMap 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.mobilo.movie.MainListingA$1.onItemClick(MainListingA.java:101) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.ListView.performItemClick(ListView.java:3382) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1696) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Handler.handleCallback(Handler.java:587) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Handler.dispatchMessage(Handler.java:92) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.os.Looper.loop(Looper.java:123) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at java.lang.reflect.Method.invokeNative(Native Method) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at java.lang.reflect.Method.invoke(Method.java:521) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at dalvik.system.NativeStart.main(Native Method) On a standalone basis, the same map activity works fine.
View 14 Replies
View Related
Jul 26, 2010
I get a class not found exception. I have included the required entry in manifest file.The code...
View 2 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
Mar 30, 2010
I'm in a small problem.i have three activities (suppose A,B,C) after performing onclick event in activity A, i can go to activity B and then C..my question is that is there any way to comeback activity A from C..here is the code snippet public void on Create(Bundle Code...
View 3 Replies
View Related
Oct 22, 2009
I am starting an external activity from my application and would like the back button to return the user to the point in my application where they started the activity. is this possible?
View 7 Replies
View Related
Nov 22, 2010
I want to implement the following logic. I have 4 activites A, B, C and D. The flow is A -> B -> C -> D When the user navigates from A -> C he should be able to get back to the previous activities by pressing the back button. But after reaching D pressing the back button should take him to activity A. And pressing the back button againg should exit the application instead of taking him back to B / C / D. How do I do it.
View 1 Replies
View Related
May 10, 2010
I've heard that pressing the back button will essentially cause the current Activity to finish(). Is this always the case? Seems like it would be with the way it pops the Activity off the stack.
The one situation I'm not so sure about is when the root Activity in a Task has back pressed. I'm currently experiencing a very weird effect, described as follows:
On loading my application, the first Activity is for initialization, and once it finishes, it calls my main Activity (a TabActivity). This first init activity has android:noHistory="true" set in the Manifest so pressing Back from my main Activity won't go back to that. It goes to the Launcher. When I click on my App in the Launcher a second time, the initialization activity loads again, and loads the main Activity when done. Almost immediately after, it loads a second instance of my main Activity. But ONLY after the Application has already been run once, and was exited by pressing BACK from the main Activity. It does it every subsequent time until I force quit the app or load a new version from the IDE.
Based on this, I am suspecting some kind of Activity instance is lying around and being reused, since it only happens on the second+ time I run the application (and exit with BACK -- using HOME just returns to the last state of the app, no big deal).
View 4 Replies
View Related
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
View Related
Feb 28, 2009
In my game, I've got one activity starting another activity via an intent. When the user is finished with the second activity, they quit it using the back button. However, I have a problem: when this happens, the second activity is still running, even if it's quit with the back button.
My second activity will eventually give a "game over" message using a pop up window if there is no user input for a period of time. Problem is, when I back out of the second activity (where the game is happening) the "game over" message still appears eventually. This is how I know the second activity is still running. It even displays a "game over" message if my entire app is quit (on the Android OS).
How do I stop an activity completely when the user presses the back button?
View 3 Replies
View Related
Apr 21, 2009
I have a java class Poker.java and an Activity .GameWindow in GameWindow.Java. In the GameWindow activity i have a method...
View 2 Replies
View Related