activity stack issue :help please

by Sudeep Sharma » Fri, 22 Jan 2010 00:35:13 GMT


Sponsored Links
 Hi,
      I am seeing an issue regarding Activity stack .

 Suppose i launch dialler app from Home screen and exit from it. After that
i go to Settings--->Call Settings-->Operator Selection and then press the
back key.

Instead of seeing the CallSettings activity dialler app is activity is
shown.

why dialler apps comes first and now if i press back again then i can see
Call Settings Activity.

Can anyone tell me what can be wrong here.


Regards,
Sudeep.



Other Threads

1. New lib compile

Hi,
     I want to add a new external library in the Android. Please tell me the
procedure to add and compile new library in android.



Regards
Rakesh

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

2. Lot of unused code is generated when aidl tool is run againt a .aidl file.

Hi

This is my aidl file.
----------------------------IRemoteCounterServiceCallback.aidl
----------------------------
package com.training;

import com.training.IRemoteCounterServiceCallback;
import com.training.myCounter;

interface IRemoteCounterService {
  // Remote service interfaces
  int StartCounters(in myCounter counter);

  void registerCallback(IRemoteCounterServiceCallback cb);
  void unregisterCallback(IRemoteCounterServiceCallback cb);
}
-------------------------------------------------------------------------------------------

The aidl generates

public static abstract class Stub extends android.os.Binder implements
com.training.IRemoteCounterService
{

}

containing an inner class

public static abstract class Stub extends android.os.Binder implements
com.training.IRemoteCounterService
{

}

here the abstract class Stub contains:
1. Impl for public boolean onTransact(int code, android.os.Parcel
data, android.os.Parcel reply, int flags) throws
android.os.RemoteException
(this is never invoked)

2. an inner class, private static class Proxy implements
com.training.IRemoteCounterService, which implemeted the following the
methods which are never invoked whent the program is run:
              a. public int StartCounters(com.training.myCounter
counter) throws android.os.RemoteException

              b. public void registerCallback
(com.training.IRemoteCounterServiceCallback cb) throws
android.os.RemoteException
              c. public void unregisterCallback
(com.training.IRemoteCounterServiceCallback cb) throws
android.os.RemoteException


My Application runs fine even if I remove the above mentioned unused
code from Stub class.

Now the Stub has just 3 methods,

public abstract class Stub extends android.os.Binder implements
IRemoteCounterService
{
        public Stub()
        {
                this.attachInterface(this, DESCRIPTOR);
        }
        public static IRemoteCounterService asInterface(android.os.IBinder
obj)
        {
                if ((obj==null)) {
                        return null;
                }
                android.os.IInterface iin = (android.os.IInterface)
obj.queryLocalInterface(DESCRIPTOR);
                if (((iin!=null)&&(iin instanceof
com.training.IRemoteCounterService))) {
                        return ((com.training.IRemoteCounterService)iin);
                }
                return null;
        }
        public android.os.IBinder asBinder()
        {
                return this;
        }
}

Why does the aidl generate code for

1. onTransact() inside Stub class??
2. inner class Proxy ??

Pls clarify. Thansk in advance.

Regards,
--~--~---------~--~----~------------~-------~--~----~

3. Grid View Click Problem

4. The layout of New Contact or Edit Contact can't be represented correctly when using WVGA-P skin in Cupcake emulator

5. The layout of New Contact or Edit Contact can't be represented correctly when using WVGA-P skin in Cupcake emulator

6. Merging android-framework into android-platform?

7. HTC Ion - Build instruction and how to flash the device