Android :: Notification Bar Open Last Active Activity?
Nov 3, 2010
I am creating like timer application and when I start timer I have option to go to android Home or start any other activity .When I start timer I set a notification bar icon and if i use some other application (mean go from started timer activity) and now I need to go to back to my previously started timer activity by clicking on notification icon?When I click I am starting a new instance timer activity , not the previously started timer activity and if I then click back button it show me a previously timer activity .Question is: How to call previously started activity trough notification bar , not to start new instance of that activity?
View 2 Replies
Sep 28, 2009
I created an application which is asynchronously communicating with the server. When the application makes a server request a new dialog (activity) with "loading" notification is created. The main activity implements methods for handling server responses and I would like to close the foreground activity when the main activity receives the answer from the server.
View 1 Replies
View Related
Jul 14, 2009
I have a map activity for which I would like to have the screen turned on as long it's active (the app consists of one activity only). When the activity is paused or stopped I want to return to normal on/off mode. Keeping the screen on works fine while the app is running but when I exit the app the screen stays on as well. What am I missing?
View 3 Replies
View Related
Apr 7, 2009
I have two activities running: MainActivity and ChildActivity. Whenever the user clicks in the button in MainActivity, the ChildActivity is launched. What I want to do is this:When the active activity is the ChildActivity and the user clicks the home button then relaunch the application (like opening from the beginning), I want to see the ChildActivity instead of MainActivity that is launched. However; This is happening only when the user clicks from recent activities window. (the window opened when you long press the home button).I had some suggestions actually work arounds and I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem. There should be a smart way out there.
View 8 Replies
View Related
Apr 7, 2009
I have two activities running: mainActivity and childActivity. Whenever the user clicks in the button in mainActivity, the childActivity is launched. What I want to do is this:When the active activity is the childActivity and the user clicks the home button then relaunch the application, I want to see the childActivity instead of mainActivity that is launched.I had some suggestions actually work arounds. I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem.
View 3 Replies
View Related
Aug 16, 2009
I want my background service to determine the active package or activity running.Is this possible?
View 4 Replies
View Related
Jul 24, 2010
I have a ListView that contains some data from sqllite table.the table is updated by some other process, and I would like to refresh it's data.The strange thing is that if I open another activity, then go back -it WILL refresh itself.
View 2 Replies
View Related
Jul 19, 2010
Im 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:.................
View 1 Replies
View Related
Jul 3, 2010
I want to open other apk from my activity. is there any way similar to new Intent(...)?
View 4 Replies
View Related
Sep 11, 2009
Is there a way to open up the Messaging Activity on android with a specify SMS?
View 2 Replies
View Related
May 27, 2010
I understand how to use intents and startActivity() when opening another activity within my own app, but how do you start a different app? specifically:
- How do you determine if the user has the needed app installed on their device?
- How do you start that app?
- How do you pass parameters to that app?
- How do you find all this info out for a specific app (say Adobe reader, or google maps)?
View 2 Replies
View Related
Aug 10, 2010
Wondering if anyone knows the most optimized way to handle opening an URL in android. Here is how I am doing it:
String tempUrl = helper.getUrl(tempString);
Intent i = new Intent("android.intent.action.VIEW", Uri.parse("http://"+tempUrl));
startActivity(i);
Must you start a new activity in order to open a URL?
View 1 Replies
View Related
Sep 17, 2009
How to open .png or .doc file in Android in new Activity.
View 1 Replies
View Related
Oct 2, 2010
How to open activity from view.i am develop a game if game is over i need to move user to main menu activity.Please help me its very urgent to me.
View 2 Replies
View Related
Nov 1, 2010
Is there a way to open a translucent or transparent activity so that you can still see the old activity behind it on the screen?
View 1 Replies
View Related
Sep 23, 2012
I'm doing that sample: [URL] ....
I want to change at this line
public void onClick(View v) {layout.setVisibility(GONE);}
to
public void onClick(View v) {
Intent myIntentopen = new Intent(MainActivityold.class, MainActivitynew.class);
startActivity(myIntentopen);
}
but it dosn't work.
View 2 Replies
View Related
Jun 2, 2010
I got an app with tabs and a notification bar entry, when I send it to background (click on home button) and try to re-open the application via click on the notification bar, the app restarts (last selected tab is lost).
When I hold the home button if the application is in the background and select it from there or click the app's icon on the homescreen, the previous state is restored per default (the correct tab is selected)
IMO the intent of the notification is wrong, but I'm not sure how to fix it.
In short: How to get a background application back to foreground when I click the notification entry?
View 1 Replies
View Related
May 26, 2010
I have activities A and B. The A is the one with LAUNCHER intent-filter (i.e. the activity that is started when we click the app icon on home screen). A launches B using start Activity(new Intent(A.this, B.class)). When the user has the B activity open, and then put my application into the background, and later my application's process is killed, when the user starts my application again, B is opened instead of A. This caused a force close in my app, because A is the activity that initializes the resources my app needs, and when B tried to access the uninitialized resources, B crashes.
View 1 Replies
View Related
Nov 10, 2009
Can Activity "A" open the options menu of a view in Activity "B"? In this case I am building Activity A but Activity B can be any other running activity. I think this is an impossible security violation but I really want someone to prove me wrong.
View 2 Replies
View Related
Nov 8, 2010
I want to open new child activity in the parent LinearLayout. Just similar like Tabs.
View 1 Replies
View Related
Aug 20, 2010
I was trying to open an Activity of an other applicatoin by using an implicit Intent. It doesn't work, I thought it is possible to start an Activity of an other Application by using implicit Intent. Or do I missunderstand it?
I added following intent-filter to the AndroidManifest of Application A:
CODE:..............
And called the Intent in Application B by using folloing code:
CODE:.............
All I get ist, the error message that Application A was stoped unexpectedly.
View 5 Replies
View Related
Jun 1, 2010
I want to write an application to List the Gmail message. In the list, if user click one of the message item, it shall link out Gmail App to see more detail information. Currently I can read the Gmail db with Gmail.java. There are some problems while I want to open Gmail Activity. In general, we can open Activity with Action and parameters. But Gmail App has not release code base. We do not know what Action set to Gmail Activity and what parameter shall we put the extras. I only know that the Activity of View detail Message is named "HtmlConversationActivity." And the Package is under "com.google.android.gm.
View 1 Replies
View Related
Mar 14, 2010
Is it possible to configure an android app so that if a user has opened your app, launched numerous activities, then returns to the home screen and relaunches your app again, instead of going to the main activity they will instead be taken to the activity highest on the stack (the most recent activity in your app)?
View 2 Replies
View Related
Apr 8, 2010
I am trying to make an exit button for my application. Anyhow I am able to track all the instance of activity in my application and then finish them all. But still some activity remain alive in some cases. Dont know how. Is there any method to kill a particular application in android. Or any other way can I exit from my application.
View 1 Replies
View Related
Jan 13, 2010
I'm trying from main Activity (MainFile.java) to open a Map as a new intent through a menu. Something like this...
CODE:..............
And I already have set up thing on my manifest.xml with access to...
CODE:........
It worked fine with other File.class, but with the Map.class doesn't seem to be working.
View 1 Replies
View Related
Jul 28, 2009
I have fixed the activity screen orientation to portrait on AndroidManifest.xml file. When I open or close the keyboard the activity gets restarted. How to avoid this restart?
View 4 Replies
View Related
Jun 14, 2010
I recently added an activity to one of my apps, and made it the starting activity for the application and published an update. The update worked perfectly with no problems on my N1, but I'm getting emails from users telling me that the only way they can open my app is from their Downloads page in the Android Market app. I have no clue what could be causing this behavior.
View 2 Replies
View Related
Oct 30, 2012
Is there a way you can do this on Android? Like on iOS you can open up the notification bar in any app.
View 2 Replies
View Related
Jul 3, 2009
Is there a way to find all the alarms which is currently active set to go "off"?
View 2 Replies
View Related
Mar 8, 2010
I am just getting started with the Android SDK and I had a quick question. I am trying to set up a ListView with a rectangle of color on the left and then a bit of text for each row. I also want to make it so I can click each entry in the list and open a new activity to display some information (similar to the contact list).
View 3 Replies
View Related