It seems like every example I can find of switching between Activity's involves creating an Intent and passing in the context of a View via an OnClickListener associated with a button.
But what if you just decide you need to switch Activity's? In my case, a Preference value is causing an Activity switch. How do you create an Intent that...
Hi.
I just want to know how detect that the activity or service has been killed by the advanced task killer? I was expecting the onDestroy method to be called, but it doesnt!
My app starts the background service on boot. The activity is not started except from menu. But its name appears in the advanced task killer list. When I try to ...
Let's assume the following:
Activity A calls Search Manager
User searches, and search results are displayed in Activity B
User clicks on a list item in Activity B
App switches back to Activity A
I am unable to handle this callback from Activity B to Activity A because I don't have the Search Manager intent (i think?).
Call Search Ma...
I want to pass an object from Activity B to Activity A.
Scenario:
- Activity A calls Activity B
- User selects item in Activity B
- Activity B passes an object to Activity A
How do I accomplish this? And in which method do I read in the passed object in Activity A?
...
I have 2 Activities - A and B
In Activity A containing a list view spawns a new Sub-Activity B. In Acitivty B there is a button that launches Activity A so as to select another Sub-Activity B.
This seem to create an infinite loop scenario where
A->B->A->B->A->B->A->B->..............
So if i quit the program halfway, and the go back ...
hi, for my following code, why is my activity indicator for my webview not stoping?
//this part ok
NSURL *theURL = [NSURL URLWithString: Link];
NSURLRequest *request = [NSURLRequest requestWithURL: theURL];
UIWebView * webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,300,300)];
webView.scalesPageToFit = YES;
[webView...
Button showmapButton = (Button)findViewById(R.id.showmap);
showmapButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(HomePage.this,
ShowMap.class);
intent.putExtra("username", value);
startActivity(intent);
}
});
In my main menu i have...
Hi,
In my application, I have problem with activity history stack. Indeed, consider I have 5 activities :
Splashscreen
SignUp
SignIn
ForgottenPassword
Home
I would see :
First launch (user not logged) : 3 differents wireframes possible
Splashscreen -> SignUp -> Home
Splashscreen -> SignUp (already member) -> SignIn (valid log)...
How can I create a startActivityForResult() for a Search Manager? Search is usually invoked by:
onSearchRequested();
My app will display search results in Activity B, which will pass back data to Activity A. I want to handle this data in onActivityResult() but this will never get called because I never started an activity for search....
Hi all,
Some apps clog up the select widget activity by adding different configuration activities. like the screenshot here: Multi Configuration activities
Is there a way to have one icon in the select widget (like Mini Info) and one configuration activity and set different layouts for widgets there?
Thank you
...
Android:
public class LocationService extends Service {
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
startActivity(new Intent(this, activity.class));
}
}
I launched this service from activity
In activity
if condition satisfies start
startService(...
Hi,
How could I kill all the Activiies of my application ?
I try using this.finish() but it just kill one activities.
In fact, I would like when the user touch the button BACk (in only one of the activities), the application do the same as he touch HOME Button
...
Hello,
When i start an activity which has android:theme="@android:style/Theme.Dialog" in the AndroidManifest.xml file the back button works as intended, i.e. returns to the activity that started it. However if i remove the theme attribute (which is what i want in the end) then the back button has no effect. Could it have something to do...
Not sure how to figure out which android project on android.git.kernel.org corresponds to the classes extended in some of the app examples in the SDK such as Activity, Intent, and ContentProvider.
...
I have two applications App-1 & App-2. App-2 has a button which will start App-1.
The need is to behave like the following:-
User launches App-1 (using launcher) & activities A, B & C are started & activity C is at the top of the activity stack.
Please note that entry point of App-1 is activity A.
User presses home key.
User then lau...
I have 3 activities in my app:
Activity1 -> Activity2 -> Activity3
Inside Activity3, if the user presses Back, I would like to return to Activity2. In Activity3's onPause event, I added a finish() statement. That's probably not even necessary, but I wanted to make sure this Activity gets cleaned up. This works fine.
However, while ...
Similar to:
http://stackoverflow.com/questions/3381594/how-to-make-android-activity-show-above-keypad-screen-lock
How can I display an Activity or Dialog over visible lock screen?
I have already tried displaying my lock activity when screen goes on setting various window type in Activity.onCreate() method:
TYPE_PRIORITY_PHONE
TYPE_S...
I have created the meat and guts of my application but I want to add a different activity that will be the starting point (sort of a log-in screen).
Couple questions:
1) I have a fairly decent handle on how to switch between activities (based on this article: http://www.linux-mag.com/id/7498) but I'm not sure how to go about creating a ...
Hi , we observed one scenario where activity manager killed our
application process(it includes 5 running services) and then when it re-started the application process, it re-started only 1 service (this service was first one to be destroyed) .
I/ActivityManager( 1660): No longer want com.android.bluetooth (pid 4961): hidden #16
I/Activ...
dear friends,
i am fighting with android hardware backbutton
now my question to you is can i restrict its functionality upto 3 or 4 levels?
right now for example, i have 1,2,3,4,5,6,7,8,9,10 activities
i go to 1 then 2 then 3 .... upto 10 and start pressing backbutton
it takes me to 9 then 8 then 7 upto end
i want to keep track of ...