Confused over activities and creating new tasks

by Connick » Wed, 01 Sep 2010 06:03:02 GMT


Sponsored Links
 Hi folks,

I'm launching a wizard as a series of views. (dialog theme) I need the user
to be able to step back and forth through the series of views. When the
final step is completed I'd like to return the to the original view that
launched this new task. (i.e. close the series of dialogs) The only way I've
gotten this to work is to call finish() on each dialog before starting the
activity of the next step. (that rules out being able to navigate back)

I've tried launching the initial intent with Intent.FLAG_ACTIVITY_NEW_TASK
as well as setting a taskAffinity for the views involved to no avail.

Any insight appreciated,
Stace

--



Confused over activities and creating new tasks

by Mark Murphy » Wed, 01 Sep 2010 06:07:39 GMT


 I'd implement a wizard using ViewFlipper in a single activity,
personally. Creating a reusable wizard component is yet another of the
18,000 items on my to-do list...



>


Sponsored Links


Other Threads

1. Battery capacity not updated

Hi All,
   I am using andoird eclair and not able to see the battery capacity
getting updated while charging/discharging.
Wherein when I try to cat the battery capacity from the sysfs I am
able to see the change.
The only event that updates the battery capacity, voltage, etc in the
application is the plug/unplug of the
AC/USB charger.
Please let me know on this.

Thanks and Regards,
Arun R Murthy
-------------------

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. help please

Hello, I am a young student from cameroon.J like to be part of this
groupe.I am currently developing an application on android and I would
like your help because I have many problem.I want to receive the
coordinate GPS with android ( r on the emulator). First, I have not a
provide but I use the DDMS to generate coordinate.but I can not
receive GPS coordinates provided by the DDMS.This my code

package android.phonedial;

import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;
import android.location.LocationListener;
import android.location.LocationProvider;
import android.os.Bundle;
import android.widget.TextView;


public class TestProviderController extends Activity {

public  LocationManager locationManager;
public LocationListener locationlistener;
        @Override
        public void onCreate(Bundle tracabilite) {
        super.onCreate(tracabilite);
        setContentView(R.layout.main);

        String location_context = Context.LOCATION_SERVICE;
        locationManager = (LocationManager)getSystemService
(location_context);

        testProviders();

        }
        public void testProviders() {

                TextView tv = (TextView)findViewById(R.id.myTextView);
                StringBuilder sb = new StringBuilder("Enabled Providers:");
                List<String> providers = locationManager.getProviders(true);


                for (String provider : providers) {
                locationManager.requestLocationUpdates(provider, 1000, 0,
                new LocationListener() {
                public void onLocationChanged(Location location) {}
                public void onProviderDisabled(String provider){}
                public void onProviderEnabled(String provider){}
                public void onStatusChanged(String provider, int status,
                Bundle extras){}
                });

         sb.append("\n").append(provider).append(": ");

                Location location = 
locationManager.getLastKnownLocation(provider);



                        if      (location != null)
                        {
                 double lat = location.getLatitude();
                 double lng = location.getLongitude();
                sb.append(lat).append(", ").append(lng);
                } else {
                         sb.append("No Location");

                }
                }
                tv.setText(sb);
        }
}

thank for your help

--~--~---------~--~----~------------~-------~--~----~

3. We Pad

4. ListActivity and onListItemClick

5. Database insertion timings

6. How to create an asynchronous communication layer

7. Repeating AsyncTasks t