¡@

Home 

2014/10/16 ¤W¤È 08:19:34

android Programming Glossary: more

How to get screen dimensions

http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions

Slow Android emulator

http://stackoverflow.com/questions/1554099/slow-android-emulator

very fast emulator. Refer the given below screenshots for more information. Creating a new AVD with the save snapshot feature...

Sending Email in Android using JavaMail API without using the default/built-in app

http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a

to the Apache Software Foundation ASF under one or more contributor license agreements. See the NOTICE file distributed..

Difference between px, dp, dip and sp in Android?

http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android

Note The compiler accepts both dip and dp though dp is more consistent with sp . sp Scale independent Pixels this is like..

Quitting an application - is that frowned upon?

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon

simply don't think about terminating the Android app any more than they think about terminating a Web page or terminating.. need anything else for properly written applications any more than they need a quit option for using Web apps. No two application.. a lesser extent iPhone and possibly WebOS . This requires more emphasis on application design focusing on business goals and..

How do I pass data between activities in Android?

http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android

sessionId startActivity intent The docs for Intents has more information look at the section titled Extras . share improve..

What is the simplest and most robust way to get the user's current location in Android?

http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a

don't stop listeners but continue waiting. GPS gives more accurate data so it's worth waiting for it. If timer elapses.. from GPS then you can use value provided from Network. One more approach is to use LocationClient http developer.android.com..

Strange out of memory issue while loading an image to a Bitmap object

http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object

handler to relaunch my new activity which is nothing more than an image widget. The image preview on the list view is..

How do I do a lazy load of images in ListView

http://stackoverflow.com/questions/541966/how-do-i-do-a-lazy-load-of-images-in-listview

to the Apache Software Foundation ASF under one or more contributor license agreements. See the NOTICE file distributed..

Android: How to declare global variables?

http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables

Application. Read it at your own risk. ORIGINAL ANSWER The more general problem you are encountering is how to save state across.. Java way of achieving this. I have found however that a more elegant way in Android is to associate your state with the Application.. in the manifest file. Again see the Android docs for more info. An example application android name my.application.MyApp..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

implements View.OnClickListener . It seems infinitely more complicated to implement something that recognizes a fling...

Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)

http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4

phoneNumber null message piSent piDelivered More methods of MainActivity ... SMSReceiver.java public class SMSReceiver.. intent filter activity activity Activity 2 ... activity More acitivies ... SMS Receiver receiver android name com.myexample.receivers.SMSReceiver..

Android PendingIntent extras, not received by BroadcastReceiver

http://stackoverflow.com/questions/14571564/android-pendingintent-extras-not-received-by-broadcastreceiver

phoneNumber null message piSent piDelivered More methods of MainActivity ... android sms broadcastreceiver android.. intent filter activity activity Activity 2 ... activity More acitivies ... Send Receiver receiver android name com.sendit.receivers.SendBroadcastReceiver..

How to run a Runnable thread in Android?

http://stackoverflow.com/questions/1921514/how-to-run-a-runnable-thread-in-android

handler as just a helper object used to send that command. More details are here http developer.android.com reference android..

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

permission android name android.permission.GET_ACCOUNTS More on using AccountManager can be found at the Contact Manager..

How to implement my very own URI scheme on Android

http://stackoverflow.com/questions/2448213/how-to-implement-my-very-own-uri-scheme-on-android

filled out and you'll be able to create your own scheme. More on intent filters and intent resolution here . Here's a short..

How to open “front camera” on android platform?

http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform

to open &ldquo front camera&rdquo on android platform More generally If a device has more than one camera is there any..

get contact info from android contact picker

http://stackoverflow.com/questions/3044545/get-contact-info-from-android-contact-picker

be stored loop through the records returned in the Cursor. More tutorials here This method requires Android API version 5 or..

How to enable LogCat/Console in Eclipse for Android?

http://stackoverflow.com/questions/3280051/how-to-enable-logcat-console-in-eclipse-for-android

in Android. So you have to handle every thing in Logcat. More Info Look out this Documentation . Edit 1 System.out.println..

set the absolute position of a view in Android

http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android

50 params.topMargin 60 rl.addView iv params More examples Places two 30x40 ImageViews one yellow one red at 50..

Developing cross platform mobile application [closed]

http://stackoverflow.com/questions/3369413/developing-cross-platform-mobile-application

cross platform mobile application closed More and more mobile platforms are being launched and sdk's are available..

Android: java.lang.SecurityException: Permission Denial: start Intent

http://stackoverflow.com/questions/4162447/android-java-lang-securityexception-permission-denial-start-intent

Remove the second one and you should be good to go. More Explanation You may be declared the activity 2 times in the..

How to add a footer in ListView?

http://stackoverflow.com/questions/4265228/how-to-add-a-footer-in-listview

imgae2.I mention footer in red rectangle Fig1 Footer like More News Fig2 Add additional 10 record added in listview android..

Embed Zxing library without using Barcode Scanner app

http://stackoverflow.com/questions/4854442/embed-zxing-library-without-using-barcode-scanner-app

It's really easier to just integrate via Intent . More reliable and you get updates automatically. While I don't advise..

Difference between “@id/” and “@+id/” in Android

http://stackoverflow.com/questions/5025910/difference-between-id-and-id-in-android

you have defined created in your project you use @id .. More Info As per your clarifications in the chat you said you have.. so parser links this to the already created id in R.java . More Info Again As you said in your chat note that android layout_below..

How to display progress dialog before starting an activity in Android?

http://stackoverflow.com/questions/5202158/how-to-display-progress-dialog-before-starting-an-activity-in-android

a new activity in your AsyncTask's onPostExecute method. More specifically you will need a new class that extends AsyncTask..

Tablet or Phone - Android

http://stackoverflow.com/questions/5832368/tablet-or-phone-android

the eye they are to be used at thus the idea of a tablet . More info http groups.google.com group android developers browse_thread..

How to set a reminder in Android?

http://stackoverflow.com/questions/5976098/how-to-set-a-reminder-in-android

new android versions you should use CalendarContract . More infos about this can be found at this blog post . share improve..

Why not use always android:configChanges=“keyboardHidden|orientation”?

http://stackoverflow.com/questions/7818717/why-not-use-always-androidconfigchanges-keyboardhiddenorientation

a list of all the different types of config changes . Edit More importantly though as hackbod points out in the comments your..

Cannot Resolve @style/Theme.Sherlock

http://stackoverflow.com/questions/10352628/cannot-resolve-style-theme-sherlock

super.onCreate savedInstanceState ... MORE CODE .... This fixed up the crash under ICS the theme style..

How to get Facebook user photo albums using graph api?

http://stackoverflow.com/questions/12384717/how-to-get-facebook-user-photo-albums-using-graph-api

Void doInBackground Void... params CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING.. THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL.. TO THE LISTVIEW lv.setAdapter adapter CHANGE THE LOADING MORE STATUS loadingMore false HIDE THE PROGRESS BAR SPINNER AFTER..

how to show progress bar(circle) in an activity having a listview before loading the listview with data

http://stackoverflow.com/questions/12559461/how-to-show-progress-barcircle-in-an-activity-having-a-listview-before-loading

TO THE LISTVIEW lv.setAdapter adapter CHANGE THE LOADINGMORE STATUS TO PERMIT FETCHING MORE DATA loadingMore false HIDE THE.. adapter CHANGE THE LOADINGMORE STATUS TO PERMIT FETCHING MORE DATA loadingMore false HIDE THE SPINNER AFTER LOADING FEEDS..

Lazy download images into gridView

http://stackoverflow.com/questions/13265457/lazy-download-images-into-gridview

Void doInBackground Void... arg0 CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING.. THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL.. gridOfPhotos.setAdapter adapter CHANGE THE LOADING MORE STATUS loadingMore false This is to detect when the user has..

Send HTML email with Gmail 4.2.1

http://stackoverflow.com/questions/13756200/send-html-email-with-gmail-4-2-1

that the additional detail here may warrant another look. MORE INFORMATION Upon further research this problem is way bigger..

How to set icon to title bar for each Activity in TabLayout

http://stackoverflow.com/questions/4533830/how-to-set-icon-to-title-bar-for-each-activity-in-tablayout

A and B public class ActivityA extends Activity LOST MORE CODE ABOVE @Override protected void onResume super.onResume..

Should I comment my log calls when creating my final package?

http://stackoverflow.com/questions/4958860/should-i-comment-my-log-calls-when-creating-my-final-package

property reasons. This structure allows me to add a lot MORE logging to the application which makes debugging problems much..

License problem using sectioned ListView with J. Sharkey's SeparatedListAdapter

http://stackoverflow.com/questions/5684002/license-problem-using-sectioned-listview-with-j-sharkeys-separatedlistadapter

String.valueOf R.drawable.ic_level07 MORE .adds HERE List Map String controlB new LinkedList Map String.. String.valueOf R.drawable.ic_level07 MORE .adds HERE SeparatedListAdapter adapter new SeparatedListAdapter..

How to get screen dimensions

http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions

Slow Android emulator

http://stackoverflow.com/questions/1554099/slow-android-emulator

have increased the Device RAM Size to 1024 which results in very fast emulator. Refer the given below screenshots for more information. Creating a new AVD with the save snapshot feature. Launching the emulator from the snapshot. share improve..

Sending Email in Android using JavaMail API without using the default/built-in app

http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a

throw new IOException Not Supported JSSE Provider Licensed to the Apache Software Foundation ASF under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright..

Difference between px, dp, dip and sp in Android?

http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android

the screen density but not necessarily in direct proportion. Note The compiler accepts both dip and dp though dp is more consistent with sp . sp Scale independent Pixels this is like the dp unit but it is also scaled by the user's font size..

Quitting an application - is that frowned upon?

http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon

environment closes up the application as needed. Those users simply don't think about terminating the Android app any more than they think about terminating a Web page or terminating a thermostat. iPhone users are much the same way in that pressing.. up your currently running activity. Users generally don't need anything else for properly written applications any more than they need a quit option for using Web apps. No two application environments are the same by definition. This means.. after a period of inactivity. Same thing with Android and to a lesser extent iPhone and possibly WebOS . This requires more emphasis on application design focusing on business goals and not sticking with an implementation model tied to a previous..

How do I pass data between activities in Android?

http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android

What is the simplest and most robust way to get the user's current location in Android?

http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a

my logic. For example if you get update from Network provider don't stop listeners but continue waiting. GPS gives more accurate data so it's worth waiting for it. If timer elapses and you've got update from Network but not from GPS then you.. If timer elapses and you've got update from Network but not from GPS then you can use value provided from Network. One more approach is to use LocationClient http developer.android.com training location retrieve current.html . But it requires Google..

Strange out of memory issue while loading an image to a Bitmap object

http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object

from the activity back to the listview activity to the result handler to relaunch my new activity which is nothing more than an image widget. The image preview on the list view is being done with the cursor and ListAdapter . This makes it pretty..

How do I do a lazy load of images in ListView

http://stackoverflow.com/questions/541966/how-do-i-do-a-lazy-load-of-images-in-listview

class inside Android. package com.wilson.android.library Licensed to the Apache Software Foundation ASF under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright..

Android: How to declare global variables?

http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables

who encourage the use of Singletons rather than subclassing Application. Read it at your own risk. ORIGINAL ANSWER The more general problem you are encountering is how to save state across several Activities and all parts of your application. A.. A static variable for instance a singleton is a common Java way of achieving this. I have found however that a more elegant way in Android is to associate your state with the Application context. As you know each Activity is also a Context.. your Application override to your application a tag is necessary in the manifest file. Again see the Android docs for more info. An example application android name my.application.MyApp android icon ... android label ... application NOTE 2 user608578..

Android - basic gesture detection

http://stackoverflow.com/questions/937313/android-basic-gesture-detection

for each ImageView I add to be the main activity which implements View.OnClickListener . It seems infinitely more complicated to implement something that recognizes a fling. I presume this is because it may span views If my activity implements..

Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)

http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4

phoneNumber null messagelist null null else smsManager.sendTextMessage phoneNumber null message piSent piDelivered More methods of MainActivity ... SMSReceiver.java public class SMSReceiver extends BroadcastReceiver private final String DEBUG_TAG.. category android name android.intent.category.LAUNCHER intent filter activity activity Activity 2 ... activity More acitivies ... SMS Receiver receiver android name com.myexample.receivers.SMSReceiver intent filter action android name..

Android PendingIntent extras, not received by BroadcastReceiver

http://stackoverflow.com/questions/14571564/android-pendingintent-extras-not-received-by-broadcastreceiver

phoneNumber null messagelist null null else smsManager.sendTextMessage phoneNumber null message piSent piDelivered More methods of MainActivity ... android sms broadcastreceiver android pendingintent share improve this question I guess.. category android name android.intent.category.LAUNCHER intent filter activity activity Activity 2 ... activity More acitivies ... Send Receiver receiver android name com.sendit.receivers.SendBroadcastReceiver intent filter action android..

How to run a Runnable thread in Android?

http://stackoverflow.com/questions/1921514/how-to-run-a-runnable-thread-in-android

How to get the Android device's primary e-mail address

http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address

... Note that this requires the GET_ACCOUNTS permission uses permission android name android.permission.GET_ACCOUNTS More on using AccountManager can be found at the Contact Manager sample code in the SDK. Method B. Use ContactsContract.Profile..

How to implement my very own URI scheme on Android

http://stackoverflow.com/questions/2448213/how-to-implement-my-very-own-uri-scheme-on-android

element. You setup an intent filter with the data element filled out and you'll be able to create your own scheme. More on intent filters and intent resolution here . Here's a short example activity android name .MyUriActivity intent filter..

How to open “front camera” on android platform?

http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform

to open &ldquo front camera&rdquo on android platform More generally If a device has more than one camera is there any way to initializing it I didn't find it in android reference..

get contact info from android contact picker

http://stackoverflow.com/questions/3044545/get-contact-info-from-android-contact-picker

How to enable LogCat/Console in Eclipse for Android?

http://stackoverflow.com/questions/3280051/how-to-enable-logcat-console-in-eclipse-for-android

of your Emulator or Device. System.out println not works in Android. So you have to handle every thing in Logcat. More Info Look out this Documentation . Edit 1 System.out.println is working on Logcat.If you use that the Tag will be like System.out..

set the absolute position of a view in Android

http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android

params new RelativeLayout.LayoutParams 30 40 params.leftMargin 50 params.topMargin 60 rl.addView iv params More examples Places two 30x40 ImageViews one yellow one red at 50 60 and 80 90 respectively RelativeLayout rl RelativeLayout..

Developing cross platform mobile application [closed]

http://stackoverflow.com/questions/3369413/developing-cross-platform-mobile-application

cross platform mobile application closed More and more mobile platforms are being launched and sdk's are available to developers. There are various mobile platform are..

Android: java.lang.SecurityException: Permission Denial: start Intent

http://stackoverflow.com/questions/4162447/android-java-lang-securityexception-permission-denial-start-intent

is because you may enter two entries pointing to same activity. Remove the second one and you should be good to go. More Explanation You may be declared the activity 2 times in the manifest with different properties like activity android name..

How to add a footer in ListView?

http://stackoverflow.com/questions/4265228/how-to-add-a-footer-in-listview

i would like that design and process please refer image1 and imgae2.I mention footer in red rectangle Fig1 Footer like More News Fig2 Add additional 10 record added in listview android android listview footer share improve this question Create..

Embed Zxing library without using Barcode Scanner app

http://stackoverflow.com/questions/4854442/embed-zxing-library-without-using-barcode-scanner-app

iPhone src works . android zxing share improve this question It's really easier to just integrate via Intent . More reliable and you get updates automatically. While I don't advise it... The complete source code is available from the ZXing..

Difference between “@id/” and “@+id/” in Android

http://stackoverflow.com/questions/5025910/difference-between-id-and-id-in-android

system with @android id .. while to access resources that you have defined created in your project you use @id .. More Info As per your clarifications in the chat you said you have a problem like this If we use android id @id layout_item_id.. you're referring to an id that has already been created so parser links this to the already created id in R.java . More Info Again As you said in your chat note that android layout_below @id myTextView won't recognize an element with id myTextView..

How to display progress dialog before starting an activity in Android?

http://stackoverflow.com/questions/5202158/how-to-display-progress-dialog-before-starting-an-activity-in-android

when the data finishes loading. You could even start a new activity in your AsyncTask's onPostExecute method. More specifically you will need a new class that extends AsyncTask public class MyTask extends AsyncTask Void Void Void public..

Tablet or Phone - Android

http://stackoverflow.com/questions/5832368/tablet-or-phone-android

How to set a reminder in Android?

http://stackoverflow.com/questions/5976098/how-to-set-a-reminder-in-android

Why not use always android:configChanges=“keyboardHidden|orientation”?

http://stackoverflow.com/questions/7818717/why-not-use-always-androidconfigchanges-keyboardhiddenorientation

it does by an orientation change. If you want you can view a list of all the different types of config changes . Edit More importantly though as hackbod points out in the comments your activity will also be restarted when your app is in the background..

Cannot Resolve @style/Theme.Sherlock

http://stackoverflow.com/questions/10352628/cannot-resolve-style-theme-sherlock

this.setTheme com.actionbarsherlock.R.style.Theme_Sherlock super.onCreate savedInstanceState ... MORE CODE .... This fixed up the crash under ICS the theme style is not liked by ICS but it works fine for both versions less..

How to get Facebook user photo albums using graph api?

http://stackoverflow.com/questions/12384717/how-to-get-facebook-user-photo-albums-using-graph-api

View.VISIBLE @Override protected Void doInBackground Void... params CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL URL TO GET THE FIRST.. @Override protected Void doInBackground Void... params CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL URL TO GET THE FIRST LOT OF ALBUMS URL https graph.facebook.com.. protected void onPostExecute Void result SET THE ADAPTER TO THE LISTVIEW lv.setAdapter adapter CHANGE THE LOADING MORE STATUS loadingMore false HIDE THE PROGRESS BAR SPINNER AFTER LOADING ALBUMS linlaHeaderProgress.setVisibility View.GONE..

how to show progress bar(circle) in an activity having a listview before loading the listview with data

http://stackoverflow.com/questions/12559461/how-to-show-progress-barcircle-in-an-activity-having-a-listview-before-loading

protected void onPostExecute Void result SET THE ADAPTER TO THE LISTVIEW lv.setAdapter adapter CHANGE THE LOADINGMORE STATUS TO PERMIT FETCHING MORE DATA loadingMore false HIDE THE SPINNER AFTER LOADING FEEDS linlaHeaderProgress.setVisibility.. Void result SET THE ADAPTER TO THE LISTVIEW lv.setAdapter adapter CHANGE THE LOADINGMORE STATUS TO PERMIT FETCHING MORE DATA loadingMore false HIDE THE SPINNER AFTER LOADING FEEDS linlaHeaderProgress.setVisibility View.GONE EDIT This is how..

Lazy download images into gridView

http://stackoverflow.com/questions/13265457/lazy-download-images-into-gridview

getPhotosData extends AsyncTask Void Void Void @Override protected Void doInBackground Void... arg0 CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL URL TO GET THE FIRST.. @Override protected Void doInBackground Void... arg0 CHANGE THE LOADING MORE STATUS TO PREVENT DUPLICATE CALLS FOR MORE DATA WHILE LOADING A BATCH loadingMore true SET THE INITIAL URL TO GET THE FIRST LOT OF ALBUMS URL https graph.facebook.com.. void onPostExecute Void result SET THE ADAPTER TO THE GRIDVIEW gridOfPhotos.setAdapter adapter CHANGE THE LOADING MORE STATUS loadingMore false This is to detect when the user has scrolled to the end and fetch new set of images ONSCROLLLISTENER..

Send HTML email with Gmail 4.2.1

http://stackoverflow.com/questions/13756200/send-html-email-with-gmail-4-2-1

I think that maybe it was closed prematurely and am hoping that the additional detail here may warrant another look. MORE INFORMATION Upon further research this problem is way bigger than just sending HTML email via intents. If one creates a..

How to set icon to title bar for each Activity in TabLayout

http://stackoverflow.com/questions/4533830/how-to-set-icon-to-title-bar-for-each-activity-in-tablayout

R.layout.my_title REST CODE REMAINS SAME Now for your Activity A and B public class ActivityA extends Activity LOST MORE CODE ABOVE @Override protected void onResume super.onResume SET FEATURE FROM INSIDE ACTIVITY TabLayoutDemo.TabLayoutDemoInstance.getWindow..

Should I comment my log calls when creating my final package?

http://stackoverflow.com/questions/4958860/should-i-comment-my-log-calls-when-creating-my-final-package

production application for performance secure and intellectual property reasons. This structure allows me to add a lot MORE logging to the application which makes debugging problems much easier but with no impact whatsoever on the production APK..

License problem using sectioned ListView with J. Sharkey's SeparatedListAdapter

http://stackoverflow.com/questions/5684002/license-problem-using-sectioned-listview-with-j-sharkeys-separatedlistadapter

27 String.valueOf R.drawable.ic_up String.valueOf R.drawable.ic_down_off String.valueOf R.drawable.ic_level07 MORE .adds HERE List Map String controlB new LinkedList Map String controlB.add createItem Monitor 003CK Functional 29 String.valueOf.. 29 String.valueOf R.drawable.ic_up String.valueOf R.drawable.ic_down_off String.valueOf R.drawable.ic_level07 MORE .adds HERE SeparatedListAdapter adapter new SeparatedListAdapter this adapter.addSection Control 1 new SimpleAdapter this..