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. mac jarsigner error java.util.zip.ZipException:

The following works on a win but I need to be able to make it work on
a mac

keytool -genkey -v -keystore csi.keystore -alias comsi -keyalg RSA -
validity 10000


jarsigner -verbose -keystore csi.keystore -signedjar spmPhr.apk
pmPhr.apk comsi
Enter Passphrase for keystore: <password>
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid
entry compressed size (expected 1009 but got 1010 bytes)


Thanks,

Jeff


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

2. Eclipse kills running app with exit(1)

While developing and debugging an app with Eclipse and running the app
on the physical phone via the USB cable, it is easy to forget to first
manually quit the app before launching a freshly recompiled APK from
Eclipse. I find that the system then brutally calls exit(1) on the
running app before launching the new APK file, meaning that (as
confirmed by Log output) none of the onPause(), onDestroy() etc are
called to let the app properly finish before (re)installing and
running the new APK. This then for instance leads to frequent severe
G1 camera lockups as one does not get a chance to first release the
camera, and only a power-down then brings the camera back.

Is there a way to have some function called before the exit(1) takes
effect? I tried  addShutdownHook(), but it did not work either.
Eclipse seems to just kill the running process.

Thanks


01-27 20:39:28.232: DEBUG/dalvikvm(5405): Calling exit(1)

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

3. Identifying user's phone or device model

4. Wifi: how to cancel scanning

5. Query regarding the listner event in a AlertDialog

6. Query bluetooth devices. It is possible?

7. i18n - Extracting String-Resources to a Jar - Referencing problem