activity

How to provide animation when calling another activity in Android?

Hi, I have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this. When we call another Activity in Android it gives its default animation and then it calls shrink animation. What I want is that the default anim...

How do I start another application (downloaded or preinstalled) from an activity?

Basically, I want to get a list of all installed apps and pick one to run from an activity. I've tried ACTION_PICK with Intents but that seems to leave out apps that were downloaded and it has a bunch of junk in it. Thanks ...

How to add ListView to MapView from the xml resource ?

Hi guys. How to add ListView to MapView from the xml resource ? In order words, I am trying to make a screen contains google MapView and ListView. Because impossible to extends 2 Activitys' (ListActivity & MapActvity), I am trying to add a ListView(It is created from xml resource) to MapView. Thanks in advance. ...

Is it possible to start an activity in a different apk using startActivity on Android using the activity name or similar?

I have tried to write an Android application with an activity that should be launched from a different application. It is not a content provider, just an app with a gui that should not be listed among the installed applications. I have tried the code examples here and it seems to be quite easy to launch existing providers and so on, but ...

Cannot run Android application on emulator/device - activity doesn't exist?

When trying to run my application on the emulator I get an error from the activitymanager: ActivityManager: Error type 3 My activity exists, is listed in the manifest (in fact, its the MAIN launcher activity). Anyone know what this error means? ...

Is there a super simple List / ListAdapter example out there for android

I have a web service that returns a super simple list of objects MyObject[] data = webServiceCall(); MyObject has 1 field i want to display, "Name" (i.e. data[0].Name ) How can i turn this into an activity that lists just the name of these objects in a scrollable listActivity in android. I am getting really confused with Cursors an...

Passing bundle to activity set as singletask

So I have a MapActivity that runs an asynchtask that occasionally updates what exactly it's displaying on the map (via a string). I originally pass this string in from the intent when the activity is first created. And then if you click on one of the drawables on the map, it opens a new activity, which can then create a new mapview (same...

Android: Recovery Activity When I press Home

Hi, i have the following question. I have an activity which is showing a progress bar while a service is downloading data from an API. I want that when i press Home and relaunch my program the activity and which is not the first activity called but it is in the stack was recovered in order to continue showing the progress. I have read...

Start Activity and clear activity history

So I have a huge maze of activities in my application. What I need to do, is that when the user logs in into the system, the activity history should be cleared. I cant just use finish() when I start a new activity, because I want the activities to have a history until the user logs in. I have experimentet with the different flags when st...

Passing data from New activity to old activity ?

Hi guys. I am trying to receive data from new Activity to old Activity. In other words, newer Activity must send intend data to old activity when it finishes. I've use setResult(resultcode, NewActivity.this.getIntend); on newer activity and @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { ...

Strange activity stack behavior when using MapActivity

I have the following activity structure in my application A simple "splash screen" activity is started when the application is fired up (let's call it "Splash"). This activity starts the main activity when the user presses a button (I will call it "Main"). Main can in turn start two activities from the menu. The first activity present...

Intercepting touch events on activity and button on Android

I have an Android activity with an ImageButton. I would like to execute some logic when the button is clicked and show a different image for the pressed state, but also receive the touch event on the activity. By default only the button receives the touch event. If I set the clickable attribute of the button to false then only the activ...

Invoking activity from APK in another android application

Hi all, I have an android application that starts an activity and is running well. I need other developers to be able to integrate my APK into their applications in such a way that they can start the activity in my APK from their android applications. What are the ways of achieving this? Thanks George ...

Android setContentView operation

I've read that it's important to call setContentView() early in an activity since it builds the view objects that may be manipulated by subsequent code in onCreate(). In terms of lifecycle, does the view get drawn to screen as soon as setContentView() is called, or does it allow the onCreate() function to build/populate the information ...

How to launch activity from android home screen widget

Hi all, I am desperately trying to get my head wrapped around how to implement home screen widgets. Right now, I (finally) was able to get a button on my widget respond to a button press setting up an intent filter in the manifest. However, I cannot for the life of me figure out how to launch an activity when the button is pressed. B...

Create dynamic view with android

Hi I'm stuck on a problem and if possible I will need help from the community. I'm not looking for a ready-made solution, but something which would help me to produce the result. I'm looking for a way to produce a dynamic activity based on a JSONArray object. Here an example of a JSONArray object: [ { "name": "my checkbox name", "...

Calling finish() After Starting a New Activity

The first Activity that loads in my application is an initialization activity, and once complete it loads a new Activity. I want to ensure if the user presses 'Back' they go straight to the Launcher, and not the initialization screen. Side note, is this even the best approach, or would this be better done with some kind of Intent Flag? ...

android activity block user interactions

How can I temporarily block all user interactions with the views of an activity ? (Other than calling the setEnabled method on each view) ...

Android - Invoke activity from within jar

Hi All, I have a jar that consists of a class that extends Activity and performs some activity on onCreate. I want to import this jar into my Android app and start the activity. How can I go about this? Thanks George ...

TabWidget Activity Handling - Does it Create a New Activity EVERY Time?

When a TabWidget is using intents to designate the target Activity for each tab, is there any special handling of those Activities on the Activity Stack outside of the default operation? For Instance, if my app has tabs A, B, and C, and I click them in this order––A, B, A, C, A, B––how will the Activity stack change? My understanding o...