ListActivity does the ArrayAdapter<T> class have to be an Inner Class

by Brion Emde » Fri, 23 Apr 2010 09:07:31 GMT


Sponsored Links
 No, there is no reason at all that your Adapter has to be in internal
class.

Post your code and maybe someone will see your problem.



>



Other Threads

1. Airplane mode Causing a problem

Hi,
I am having an HTC Magic device.

Scenario For the problem
I turn off airplane mode after putting it on for sometime.
Once i do that and make some network connection either programatically or
opening a browser, i get a Force Close dialog with process com.android.phone
not responding.
When i see the logcat i see the message :-
ERROR/AndroidRuntime(905): Uncaught handler: thread main exiting due to
uncaught exception
06-09 13:58:33.462: ERROR/AndroidRuntime(905):
a*ndroid.content.ActivityNotFoundException:
Unable to find explicit activity class
{com.android.phone/com.android.phone.NetworkListDialog}*; *have you declared
this activity in your AndroidManifest.xml?*
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1484)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1458)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.app.ApplicationContext.startActivity(ApplicationContext.java:632)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.content.ContextWrapper.startActivity(ContextWrapper.java:236)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
com.android.phone.PhoneApp.networksListLoaded(PhoneApp.java:672)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
com.android.phone.PhoneApp.access$1100(PhoneApp.java:98)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
com.android.phone.PhoneApp$3.handleMessage(PhoneApp.java:421)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.os.Handler.dispatchMessage(Handler.java:99)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.os.Looper.loop(Looper.java:123)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
java.lang.reflect.Method.invokeNative(Native Method)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
java.lang.reflect.Method.invoke(Method.java:521)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
06-09 13:58:33.462: ERROR/AndroidRuntime(905):     at
dalvik.system.NativeStart.main(Native Method)
06-09 13:58:33.472: INFO/Process(55): Sending signal. PID: 905 SIG: 3
06-09 13:58:33.472: INFO/dalvikvm(905): threadid=7: reacting to signal 3


Important :- This is observed when i have a SIM card inserted in the device
.
Even if i use Wifi for connection , it is observed the if the SIM is not
present in the device , this issue does not come.
I googled for *com.android.phone.NetworkListDialog but *i aint getting any
results.
Is this a device specific problem ? I have a Moto Blurr to but its not
unlocked here for SIM services.
Please help . :)
Thanks ,
Alok.

-- 

2. End activity

Hi,
  I have an activity A that has a list and a "+" button clicking on
which takes you to activity B. In B you can add an item and when
finish() is called it takes you back to activity A and shows the newly
added item (that you added in activity B).

Now I have a widget and I want to start activity B directly from the
widget. I can do that. What I want is that when then user is done
adding the item it should not take the user to activity A but directly
to the desktop because that is where he invoked the activity (B)
from....

I tried to set flags on the intent that I was using from the widget
but maybe I am not using the correct combination of intent flags and
launchmodes (in the manifest).

Any ideas?

-- 

3. Anyone know how to make "slide-to-activate"-buttons?

4. Facebook Connection Issue

5. OOT Paging bro Sindu

6. Spica vs Dex

7. Manulaly reset event on Android