activity

Identifying connections and active SQL in SQL Server

How do I see the currently executing SQL statements in SQL Server? I've poked around in SQL Server Management Studio, but I don't see anything "canned". ...

PreferenceActivity used as main activity has strange animation

Hi, I have a preference screen (subclass of PreferenceActivity) set as main activity (opened when the application starts) on android 1.6 device/emulator. Anyway the animation android uses to open this activity is different from standard activity. It seems that two types of animation run concurrently: the usual fade animation and the rig...

Error when starting an activity

I'm starting an activity when a button is pressed, and normally (in other apps) haven't had an issue. But when I press the button in this app, I get an "unable to marshal value" error. Exact(ish) error from LogCat: 03-22 02:49:02.883: WARN/System.err(252): java.lang.RuntimeException: Parcel: unable to marshal value {CLASSNA...

Close activity via click on Android notification list. Pendingintent?

Hello Stackoverflow, I'm looking to find out how to stop an activity instead of resuming upon the click of the item on the notification list. Any ideas? Thanks! ...

android :displaying multiple activities on same screen

hi, is it possible to show two activies on same screen at a time. and each activity is showing data which changes with time .. Thanks ...

Android tabactivity problem

Hi, I'm having some difficulties getting the TabActivity to work. Here's the implementation of the class: public class Profile extends TabActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final TabHost tabHost = getTabHost(); if (tabHost.isEnabled()) { Log....

How to cancel AsyncTask when Activity finishes?

In my Activity I use multiple AsyncTask classes. How to cancel AsyncTask when Activity finishes? ...

How to test code built to save/restore Lifecycle of an Activity?

How can I test all of the following methods code? I want to play scenarios when all of them are happening to see if my code works for save/restore process of an activity. So what should I do in the Emulator to get all methods tested? public class Activity extends ApplicationContext { protected void onCreate(Bundle savedInstanceStat...

Make service indepented from activity (Android).

I have an activity with two buttons, start and stop. If the user press the start button a service is created using Context.startService. And the stop button calls Context.stopService. I want the stop button to be the only way to destroy the service. Now, if i end the activity using a task manager, the service is killed as well. Is ther...

Activity in Android

Normally, a Java p'rogram starts from an object, then that object will create some GUI objects (window) and call the "Show" method So, is there any way to do the same thing in Android, since, by default in Android, a program runs from an object created by a class which extended from Activity class? ...

Create Task Report from Mylyn?

Hello all - is there a way to create a task/activity report (say a weekly report) off tasks managed with Mylyn? I've been using Rachota TimeTracker which allows me to create reports (in html format) http://rachota.sourceforge.net/en/demo.html I've just started using mylyn (our company uses Embarcadero JBuilder which is is based on Ecli...

Finish sub activities programmatically

Hi, I have an activity that launches another activity with startActivityForResult method. I would like to terminate the called one programmatically but I don't know how to do this since in onActivityResult() method I have no information about the called activity and I cannot call finish() on it. How can I achieve this? Thanks ...

How to implement profiles in an Android application?

I'm coding an app that uses configurable profiles for different user preferences: many different users will use the same app on the same device. The problem is that I can't use Android's PreferenceActivity because it just support one user per application. Is there an easy way to generate the user interface for configuration, or I hav...

How to inform an Activity that another Activity was just started?

I just want to get numbers of times to be used for each Activity. So the very straightforward method I thought is increasing the count for an Activity when it was started. But how can I get the information? Thanks for your great help! ...

Android Activity is displayed after user unlocks the screen

Hi, I was wondering if anyone understood how to make your application be displayed when you unlock the screen. I have an application where the user turns on a Bluetooth device, it connects to the phone, and the user should be presented with a UI. Having them hunt for the app or using the notification menu is not a workable option (too m...

How do I set a custom Android standby screen?

For example, I want to write an activity that launches when you return from sleep (black screen). How can I set this activity to run instead of the default one? In other words, I want to make a custom lock screen. Thanks ...

how to disappear keyboard onCreate Method?

friends, i have a EditText on simple activity with a button. when every i move from one activity to this acivity focus is automatically set to EditText and keyboard appears in phone. i dont want to open keyboard untill i click on editText. can any one guide me what should i do? any help would be appriciated. ...

updating an activity from an asynchronous service

I've implemented a service that does an asynchronous sync between my application and google docs. I want to update the top level activity of my application when the sync is complete. However because of the service it's possible that the app could be be in a unknown state. Is there a way to make the top level activity, whatever that ma...

Typical Search, Result and Detail Workflow Staying Within an Android Tab

So, I've been banging my head looking for a good solution for a few days and am stuck. I have a search screen (Activity) in a tab, and after the user enters a value and clicks "search" I would like the results to come back in that same tab, and then if an item from the results is selected, to show more detailed results, in that same tab...

Handle existing instance of root activity when launching root activity again from intent filter

Hi, I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app. My problem is if I launch my application first through the the android applications screen and then la...