settings - is this a ListView ?

by Marco Alexander Schmitz » Wed, 29 Sep 2010 19:19:32 GMT


Sponsored Links
 Hi,

as we all know in the emulator under settings we can configure out
device.

Are these settings views just ListViews?

The have headings and almost every row looks different - a normal
ListView makes all rows look the same ?!

 http://www.webinmotion.de/test/masc/device.png 

Best regards,
DaRolla

--



settings - is this a ListView ?

by Andrew Brampton » Wed, 29 Sep 2010 19:31:35 GMT


 This is a ListView, as it is quite easy to have every row different.
But in fact that Activity is most likely a PreferenceActivity[1] that
takes a lot of the hassle out of creating a ListView and simplifies
handling preferences.

Andrew

[1] 
 http://developer.android.com/reference/android/preference/PreferenceActivity.html 

On 29 September 2010 12:19, Marco Alexander Schmitz


>


Sponsored Links


settings - is this a ListView ?

by Mark Murphy » Wed, 29 Sep 2010 19:32:42 GMT


 On Wed, Sep 29, 2010 at 7:19 AM, Marco Alexander Schmitz



Yes.


You can have as many different types of rows as you want. You just
need an adapter that generates them. A simple adapter, like
ArrayAdapter or SimplerCursorAdapter, cannot do that. You need smarter
row-creation methods, plus override methods like getViewTypeCount()
and getItemViewType().

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android 2.2 Programming Books:  http://commonsware.com/books 

--



settings - is this a ListView ?

by Kostya Vasilyev » Wed, 29 Sep 2010 19:33:14 GMT


 It's a subclass of PreferenceActivity:

 http://developer.android.com/reference/android/preference/PreferenceActivity.html 

displaying preferences based on an XML file describing them:

 http://developer.android.com/resources/samples/ApiDemos/res/xml/preferences.html 

-- Kostya

29.09.2010 15:19, Marco Alexander Schmitz :
Hi, as we all know in the emulator under settings we can configure out device. Are these settings views just ListViews? The have headings and almost every row looks different - a normal ListView makes all rows look the same ?! http://www.webinmotion.de/test/masc/device.png Best regards, DaRolla
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --



settings - is this a ListView ?

by Marco Alexander Schmitz » Thu, 30 Sep 2010 15:18:45 GMT


 thanks a lot !!!

this was very helpful for many.

best regards,
Marco

2010/9/29 Kostya Vasilyev <kmans...@gmail.com>

>



Other Threads

1. Protecting Android apk to prevent decompilation, network sniffing etc.

Is there a way to protect Android apk file so that the source code
cannot be regenerated? Also, there are a number of network sniffers
that allow HTTP monitoring, is there a way to bypass these such that
the incoming/outgoing network traffic could not be monitored?

I have read that code obfuscation, to some extent, is possible using
SourceForge's Proguard.

What are other alternatives that I can look into?

Please advise.

Thanks.

-- 

2. MediaPlayer makes me crazy.

This log file:
/VideoMio34xx( 1199): Vendor(34xx) Specific CloseFrameBuf

I/720p_Video_Decoder( 1199): StateSet command to 1 received

D/BufferAllocOmap34xx( 1199): BufferAllocOmap34xx::removeRef()

D/720p_Video_Decoder( 1199): Component Thread exits

D/TIOverlay( 1199):  hardware/ti/omap3/liboverlay/overlay.cpp ###### Calling
overlay_data_close() ######

D/TIOverlay( 1288): overlay_destroyOverlay:IN dev (0x124d40) and overlay
(0x3cc150)

D/TIOverlay( 1288):  hardware/ti/omap3/liboverlay/overlay.cpp ###### Calling
overlay_destroyOverlay() ######

I/TIOverlay( 1288): Destroying overlay/fd=74/obj=003cc150

D/TIOverlay( 1288): overlay_destroyOverlay:OUT

D/VideoFlyer( 1538): Start playing
/sdcard/infiniq/iqQuest/video/Wildlife.wmv

I//usr/sbin/audiomixer( 1192): ALSA lib pcm.c:7067:(snd_pcm_recover)
underrun occured

E/AvosPlayerSocket( 1199): read - ERROR: recv() failed, client disconnected

D/AvosPlayer( 1199): setError(100, 0)

E/AvosPlayerSocket( 1199): send - ERROR: send() failed: Broken pipe

E/AvosPlayer( 1199): sendControlMessage: Socket Error

E/MediaPlayerService( 1199):   error: -2147483648

E/MediaPlayer-cpp( 1538): Unable to to create media player

I/global  ( 1538): Default buffer size used in BufferedWriter constructor.
It would be better to be explicit if an 8k-char buffer is required.

E/VideoFlyer( 1538): error in media player

E/VideoFlyer( 1538): java.io.IOException: setDataSource failed.:
status=0x80000000

E/VideoFlyer( 1538):     at android.media.MediaPlayer.setDataSource(Native
Method)

E/VideoFlyer( 1538):     at
android.media.MediaPlayer.setDataSource(MediaPlayer.java:714)

E/VideoFlyer( 1538):     at
com.iqQuest.android.activities.VideoFlyer.playVideo(VideoFlyer.java:96)

E/VideoFlyer( 1538):     at
com.iqQuest.android.activities.VideoFlyer.onCompletion(VideoFlyer.java:170)

E/VideoFlyer( 1538):     at
android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1169)

E/VideoFlyer( 1538):     at
android.os.Handler.dispatchMessage(Handler.java:99)

E/VideoFlyer( 1538):     at android.os.Looper.loop(Looper.java:123)

E/VideoFlyer( 1538):     at
android.app.ActivityThread.main(ActivityThread.java:4363)

E/VideoFlyer( 1538):     at java.lang.reflect.Method.invokeNative(Native
Method)

E/VideoFlyer( 1538):     at java.lang.reflect.Method.invoke(Method.java:521)

E/VideoFlyer( 1538):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)

E/VideoFlyer( 1538):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

E/VideoFlyer( 1538):     at dalvik.system.NativeStart.main(Native Method)

D/AudioHardwareAM( 1199): release wakelock

I/AudioHardwareAM( 1199): AudioHardware pcm playback is going to standby.

W/InputManagerService( 1288): Window already focused, ignoring focus gain
of: com.android.internal.view.iinputmethodclient$stub$pr...@450a6178

-- 

3. Debug Certificate Expired

4. ImageView sometimes reponding to only double click instead of single click

5. Froyo emulator with Android 2.2.1

6. tips for implementing simple tabview

7. AVD file repository?