I was wondering is it possible to create multiple instances of a single Activity in Android?
I currently start my own inCall screen for a Voip Test by using the following code:
public void initInCallScreen(String pName, String phoneNumber, int contactID, boolean
callDirection, int lineID){
//starts in callScreen di...
I have a service that is listening for some events.
When that event happens, it fires a screen by startActivity(intent)
When the user finishes doing something on that screen, the code calls finish()
but instead of 'closing' the complete application, is shows the main/launcher activity.
any way to go around this?
thanks
...
Hello,
I have 2 activities declared as singleTask in my application. The reason for this is, with standard mode, pressing "HOME" in one activity (say A) and launching another (say B), still shows activity A.
However, a new problem arises because of this.
A -> "HOME" -> B (Result : B, Expected Result: B) -> "BACK" -> (Result:A, Expect...
HI,
Im trying to show a ProgressDialog while the activity is loading.
my problem is that although i completed all the work in the activity
it takes a long time for the activity to load, i suspect this is because i use
multiple views with multiple listviews with custom array adapters inside a viewflipper.
it takes a long time for the UI t...
Currently, I'm binding to a service in the onCreate() method of an Activity and unbinding in the onDestroy() method of the Activity.
I've more than one activity binding to the same service.
Am I using the correct lifecycle methods to bind and unbind?
Thanks.
...
I'm developing a android application that uses a ListActivity.
In the method onListItemClick, I instantiate an object x. I have an Activity a whose constructor receives and object of the same type of x. How do I do to instantiate a and start it?
Pretty much like this, but it does not work:
protected void onListItemClick(ListView l, Vi...
I have a parent activity, and a child activity that extends the parent activity. When the parent starts the child activity,
Which onCreate gets executed first? The child's or parent's?
There is a particular variable I am setting in the Child activity's onCreate method, and right now, it looks like it takes a while to get to the Child ...
Hi,
I've got an app that creates an intent for the last.fm android app in which it will start the "recommended" station for my account when i press a button. The trick i'm trying to figure out is how do i get the phone back to my app without the user having to navigate back manually? Once it start the last.fm intent it takes you to the ...
My program has a list of tabs that each contain a list of people. Clicking a person should edit their details, but instead, clicking a person throws an ActivityNotFoundException. My code that starts the edit activity:
Intent intent = new Intent("my.package.EDIT"); // Person is both
intent.putExtra("my.package.PERSON", (...
I upgraded my Nexus One a few days ago with 2.2 (Froyo). This morning when I went to use it I saw a Dialog sitting atop the home/launcher screen notifying me that an update was available and that I could choose to upgrade now or later.
My question is, what API mechanisms is this using to show a Dialog (perhaps an AlertDialog) atop the h...
I have a call blocking application. It has 3 files:
1) class BlockMyCall extends BroadcastReceiver
2) class SimpleClass1 extends Service
3) PhoneBlock extends Activity
I start "PhoneBlock " Activity to call Service "SimpleClass1 ", which eventually calls "BlockMyCall" intended to block outbound calls (by setting result to "null").
...
Hello
I am writing an app that require to post activities to friends. I am using MySpaceID.SDK C# toolkit and using OnsiteContext to create an onsite app within myspace.
I have used the Activity template and have seen the tutorial for myspace JSL. On the page, it said Myspace JSL was designed to use by the offsite application and ther...
Hi Guys,
i have a problem with testing my iPhone app: i want a summary of how much network traffic the app needs for a special operation.
I have tried using instruments, but the network activity monitor has no sum of the traffic (and i really neeeeeeed a sum!!!).
So how can i get the sum out of the network activity monitor?
Best regar...
I have a view with a spinner. The activity starts another acvitity with a popup where I add or delete values that the parent shows in the Spinner.
So, in onActivityResult() I refresh the content of the Spinner so that it reflects any additional or deleted values, by calling my fillSpinner() method.
The parameter to this method is the pre...
I have a TabActivity which contains an Activity. When the tab for the activity is selected, if I press the Menu button, onPrepareOptionsMenu is called in the parent TabActivity, but not on the activity for the tab which was selected.
The options menu for the activity in the tab isn't shown unless I click inside the tab, then I get call...
I have developed an App that launches and works fine on Android 1.5 and 1.6.
When I try and use it on version higher then that the app's activity starts, progress dialogs popup and I can see my AsyncTask executing and the info being returned via Logcat. No errors or exceptions are shown.
But the Activity never displays. All I see is t...
I need to start an Activity with two different Intent, can I define two Intents In an Activity node?
An real example is: in my current application, I want to start an main Activity in another android application, how can I implement such requirement?
can I add another Intent-Filter in the following Activity Node?
...
I need to create all the UI programmatically "on demand", this means I can't use any XML. This is the pseudo code of what I do:
View v = new MyView();
activity.setContentView(v);
tabHost = new TabHost();
....
tabHost.setup();
TabSpec tabSpec = _tabHost.newTabSpec(page);
tabSpec.setIndicator(title);
tabSpec.setContent((T...
In my application I have a number of Activity classes. When I run on emulator (or install to a device) a corresponding number of program shortcuts show up in the programs menu. Why does this happen and how can I avoid it?
Many thanks.
...
I am trying to create a Servicefor my application which will negotiate Bluetooth connections and data. I want this service's lifecycle to start and end with the Application, but still be able to have specific Activities listen for events that occur within this service (in addition an Activty should be able to call specific methods of the...