¡@

Home 

2014/10/16 ¤W¤È 08:13:24

android Programming Glossary: extra

Application Skeleton to support multiple screen

http://stackoverflow.com/questions/12242111/application-skeleton-to-support-multiple-screen

medium density 160 ppi hdpi high density 240 ppi xhdpi extra high density 320 ppi Typically screen size has most impact on..

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

received by the device. The intent will have the following extra values pdus An Object od byte s containing the PDUs that make.. byte s containing the PDUs that make up the message. The extra values can be extracted using getMessagesFromIntent android.content.Intent.. the PDUs that make up the message. The extra values can be extracted using getMessagesFromIntent android.content.Intent . If..

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small Bitmap image. However if we putExtra EXTRA_OUTPUT..

Get/pick an image from Android's built-in Gallery app programmatically

http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically

and it's better to have information gathered. Set an extra parameter EXTRA_ALLOW_MULTIPLE on the intent intent.putExtra..

Declaring a custom android UI element using XML

http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml

name android text attr name android textColor attr name extraInformation format string declare styleable resources Notice.. styleable tag. Non standard android attributes like extraInformation need to have their type declared. Tags declared in.. Log.i test a.getString R.styleable.MyCustomView_extraInformation Don't forget this a.recycle R.styleable.MyCustomView..

How to pass object from one activity to another in Android

http://stackoverflow.com/questions/2736389/how-to-pass-object-from-one-activity-to-another-in-android

interface and then you can pass object instances in intent extra using putExtra Serializable.. variant of the Intent#putExtra..

How to send image via MMS in Android?

http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android

a htttp post request. You should perform the request using extra network feature final ConnectivityManager connMgr ConnectivityManager.. SendReq final EncodedStringValue sub EncodedStringValue.extract subject if sub null sub.length 0 sendRequest.setSubject sub.. final EncodedStringValue phoneNumbers EncodedStringValue .extract recipient if phoneNumbers null phoneNumbers.length 0 sendRequest.addTo..

How to get extra data from intent in android?

http://stackoverflow.com/questions/4233873/how-to-get-extra-data-from-intent-in-android

to get extra data from intent in android How can I send data from one activity.. using the getIntent method Intent intent getIntent If your extra data is represented as strings then you can use intent.getStringExtra..

Android Min SDK Version vs. Target SDK Version

http://stackoverflow.com/questions/4568267/android-min-sdk-version-vs-target-sdk-version

the target version and the platform should not perform any extra work to maintain forward compatibility with the target version...

Trying to attach a file from SD Card to email

http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email

comp android com.android.internal.app.ChooserActivity has extras I ActivityManager 56 Starting activity Intent action android.intent.action.SEND.. com.google.android.gm.ComposeActivityGmail has extras I ActivityManager 56 Starting activity Intent action android.intent.action.SEND.. com.google.android.gm.ComposeActivity has extras D gmail ls 120 MailProvider.query content gmail ls labels me@gmail.com..

how to use LocalBroadcastManager?

http://stackoverflow.com/questions/8802157/how-to-use-localbroadcastmanager

public void onReceive Context context Intent intent Get extra data included in the Intent String message intent.getStringExtra.. new Intent custom event name You can also include some extra data. intent.putExtra message This is my message LocalBroadcastManager.getInstance..

Do fragments really need an empty constructor?

http://stackoverflow.com/questions/10450348/do-fragments-really-need-an-empty-constructor

arguments. Much like bundles attached to Intents. Reason Extra reading I thought I would explain why for people wondering why...

How to send parameters from a notification-click to an activity?

http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity

my activity in a special mode. I have tried to use putExtra on my intent but cant seem to extract it so i think im doing.. new Intent context Main.class notificationIntent.putExtra item_id 1001 HERE I PUT THE EXTRA VALUE PendingIntent contentIntent.. setContentView R.layout.main Bundle extras getIntent .getExtras if extras null Log.i dd Extra extras.getString item_id The..

Application Skeleton to support multiple screen

http://stackoverflow.com/questions/12242111/application-skeleton-to-support-multiple-screen

Galaxy Tab is classified as large larger than 4 inches Extra large applies to large devices for example large tablets Android..

MediaPlayer error (1, -1004) aka MEDIA_ERROR_IO trying to stream music on Samsung S3

http://stackoverflow.com/questions/16672568/mediaplayer-error-1-1004-aka-media-error-io-trying-to-stream-music-on-samsun

mp int what int extra Log.d TAG OnError Error code what Extra code extra switch what case 1004 Log.d Streaming Media MEDIA_ERROR_IO.. 1 110 05 21 16 26 23.725 D MAIN 3921 OnError Error code 1 Extra code 110 05 21 16 26 23.725 D Streaming Media 3921 MEDIA_ERROR_UNKNOWN..

Android listview row delete animation

http://stackoverflow.com/questions/17857775/android-listview-row-delete-animation

Olde York Olivet au Foin Olivet Bleu Olivet Cendre Orkney Extra Mature Cheddar Orla Oschtjepka Ossau Fermier Ossau Iraty Oszczypek..

How to start an Intent by passing some parameters to it?

http://stackoverflow.com/questions/2405120/how-to-start-an-intent-by-passing-some-parameters-to-it

new Intent this NewActivityClassName.class myIntent.putExtra firstKeyName FirstKeyValue myIntent.putExtra secondKeyName SecondKeyValue.. myIntent.putExtra firstKeyName FirstKeyValue myIntent.putExtra secondKeyName SecondKeyValue startActivity myIntent In order.. to get the parameters values you must call the get type Extra on the same intent Intent myIntent getIntent gets the previously..

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

Log.d ZeeReceiver intent.toString Bundle extras intent.getExtras for String k extras.keySet Log.d ZeeReceiver Extra extras.get.. for String k extras.keySet Log.d ZeeReceiver Extra extras.get k .toString private BluetoothSocket sock @Override.. has extras 04 19 22 06 39.108 DEBUG ZeeReceiver 7986 Extra 00 1C 4D 02 A6 55 04 19 22 06 39.538 INFO ActivityManager 4029..

How do I get multiple icons to launch different activities in one application?

http://stackoverflow.com/questions/3270409/how-do-i-get-multiple-icons-to-launch-different-activities-in-one-application

Get temperature of battery on android

http://stackoverflow.com/questions/3997289/get-temperature-of-battery-on-android

public static final String EXTRA_TEMPERATURE Extra for ACTION_BATTERY_CHANGED integer containing the current battery..

How do I display the current value of an Android Preference in the Preference summary?

http://stackoverflow.com/questions/531427/how-do-i-display-the-current-value-of-an-android-preference-in-the-preference-su

x days summary where x is the current Preference value Extra credit make this reusable so I can easily apply it to all my..

Set icon for android application

http://stackoverflow.com/questions/5350624/set-icon-for-android-application

dpi High density screen 72px x 72px drawable xhdpi 320 dpi Extra high density screen 96px x 96px drawable xxhdpi 480 dpi Extra.. high density screen 96px x 96px drawable xxhdpi 480 dpi Extra Extra high density screen 144px x 144px You may then define.. density screen 96px x 96px drawable xxhdpi 480 dpi Extra Extra high density screen 144px x 144px You may then define the icon..

Android HttpClient OOM on 4G/LTE (HTC Thunderbolt)

http://stackoverflow.com/questions/5358014/android-httpclient-oom-on-4g-lte-htc-thunderbolt

23142KB Bitmap Size 59KB Limit 21884KB E dalvikvm 11639 Extra info Footprint 24327KB Allowed Footprint 24519KB Trimmed 348KB..

android AlarmManager not waking phone up

http://stackoverflow.com/questions/6864712/android-alarmmanager-not-waking-phone-up

intent new Intent ctxt AlarmReceiver.class intent.putExtra alarm alarm PendingIntent sender PendingIntent.getBroadcast.. Context context Intent intent try Bundle bundle intent.getExtras final Alarm alarm Alarm bundle.getSerializable alarm Intent.. else throw new Exception Unknown alarm type newIntent.putExtra alarm alarm newIntent.addFlags Intent.FLAG_ACTIVITY_NEW_TASK..

Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices

http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or

mediaCursor.moveToNext long size mediaCursor.getLong 1 Extra check to make sure that we are getting the orientation from.. mediaFile is where the image will be saved intent.putExtra MediaStore.EXTRA_OUTPUT Uri.fromFile mediaFile startActivityForResult..

How to send parameters from a notification-click to an activity?

http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity

notificationIntent.putExtra item_id 1001 HERE I PUT THE EXTRA VALUE PendingIntent contentIntent PendingIntent.getActivity..

Android cannot pass intent extras though AlarmManager

http://stackoverflow.com/questions/18649728/android-cannot-pass-intent-extras-though-alarmmanager

new Intent this ActionReceiver.class intent.putExtra EXTRA extra PendingIntent pendingIntent PendingIntent.getBroadcast.. extras intent.getExtras String message extras.getString EXTRA empty if message RINGER_OFF AudioManager am AudioManager context.getSystemService.. extras intent.getExtras String message extras.getString EXTRA after replace code String message intent.getStringExtra EXTRA..

Android Viewpager saving data and views

http://stackoverflow.com/questions/8891968/android-viewpager-saving-data-and-views

arg1 @Override public Parcelable saveState return null EXTRA INFO the viewpager is being used in public Object instantiateItem..

Application Skeleton to support multiple screen

http://stackoverflow.com/questions/12242111/application-skeleton-to-support-multiple-screen

Description Nominal value ldpi low density 120 ppi mdpi medium density 160 ppi hdpi high density 240 ppi xhdpi extra high density 320 ppi Typically screen size has most impact on your app layouts screen density has most impact on your image..

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

Broadcast Action A new text based SMS message has been received by the device. The intent will have the following extra values pdus An Object od byte s containing the PDUs that make up the message. The extra values can be extracted using getMessagesFromIntent.. intent will have the following extra values pdus An Object od byte s containing the PDUs that make up the message. The extra values can be extracted using getMessagesFromIntent android.content.Intent . If a BroadcastReceiver encounters an error.. following extra values pdus An Object od byte s containing the PDUs that make up the message. The extra values can be extracted using getMessagesFromIntent android.content.Intent . If a BroadcastReceiver encounters an error while processing this..

Android ACTION_IMAGE_CAPTURE Intent

http://stackoverflow.com/questions/1910608/android-action-image-capture-intent

to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small Bitmap image. However if we putExtra EXTRA_OUTPUT ... on the intent before starting it everything..

Get/pick an image from Android's built-in Gallery app programmatically

http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically

Pictures Since someone requested that information in a comment and it's better to have information gathered. Set an extra parameter EXTRA_ALLOW_MULTIPLE on the intent intent.putExtra Intent.EXTRA_ALLOW_MULTIPLE true And in the Result handling..

Declaring a custom android UI element using XML

http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml

utf 8 resources declare styleable name MyCustomView attr name android text attr name android textColor attr name extraInformation format string declare styleable resources Notice the use of an unqualified name in the declare styleable tag... resources Notice the use of an unqualified name in the declare styleable tag. Non standard android attributes like extraInformation need to have their type declared. Tags declared in the superclass will be available in subclasses without having.. test a.getColor R.styleable.MyCustomView_android_textColor Color.BLACK Log.i test a.getString R.styleable.MyCustomView_extraInformation Don't forget this a.recycle R.styleable.MyCustomView is an autogenerated int resource where each element is the..

How to pass object from one activity to another in Android

http://stackoverflow.com/questions/2736389/how-to-pass-object-from-one-activity-to-another-in-android

could be letting your custom class implement Serializable interface and then you can pass object instances in intent extra using putExtra Serializable.. variant of the Intent#putExtra method. PSEUDO code to pass intent.putExtra MyClass obj to..

How to send image via MMS in Android?

http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android

messaging mms share improve this question MMS is just a htttp post request. You should perform the request using extra network feature final ConnectivityManager connMgr ConnectivityManager context.getSystemService Context.CONNECTIVITY_SERVICE.. internal code please use this final SendReq sendRequest new SendReq final EncodedStringValue sub EncodedStringValue.extract subject if sub null sub.length 0 sendRequest.setSubject sub 0 final EncodedStringValue phoneNumbers EncodedStringValue.. if sub null sub.length 0 sendRequest.setSubject sub 0 final EncodedStringValue phoneNumbers EncodedStringValue .extract recipient if phoneNumbers null phoneNumbers.length 0 sendRequest.addTo phoneNumbers 0 final PduBody pduBody new PduBody..

How to get extra data from intent in android?

http://stackoverflow.com/questions/4233873/how-to-get-extra-data-from-intent-in-android

to get extra data from intent in android How can I send data from one activity intent to another I use this code to send data Intent.. First get the intent which has started your activity using the getIntent method Intent intent getIntent If your extra data is represented as strings then you can use intent.getStringExtra String name method. In your case String id intent.getStringExtra..

Android Min SDK Version vs. Target SDK Version

http://stackoverflow.com/questions/4568267/android-min-sdk-version-vs-target-sdk-version

”it simply informs the platform that you have tested against the target version and the platform should not perform any extra work to maintain forward compatibility with the target version. For more information refer this URL http developer.android.com..

Trying to attach a file from SD Card to email

http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email

activity Intent action android.intent.action.CHOOSER comp android com.android.internal.app.ChooserActivity has extras I ActivityManager 56 Starting activity Intent action android.intent.action.SEND type jpeg image flags 0x3000000 comp com.google.android.gm.. type jpeg image flags 0x3000000 comp com.google.android.gm com.google.android.gm.ComposeActivityGmail has extras I ActivityManager 56 Starting activity Intent action android.intent.action.SEND type jpeg image flags 0x2800000 comp com.google.android.gm.. type jpeg image flags 0x2800000 comp com.google.android.gm com.google.android.gm.ComposeActivity has extras D gmail ls 120 MailProvider.query content gmail ls labels me@gmail.com null null D Gmail 2507 URI FOUND file sdcard DumbDumpers..

how to use LocalBroadcastManager?

http://stackoverflow.com/questions/8802157/how-to-use-localbroadcastmanager

mMessageReceiver new BroadcastReceiver @Override public void onReceive Context context Intent intent Get extra data included in the Intent String message intent.getStringExtra message Log.d receiver Got message message @Override protected.. sendMessage Log.d sender Broadcasting message Intent intent new Intent custom event name You can also include some extra data. intent.putExtra message This is my message LocalBroadcastManager.getInstance this .sendBroadcast intent With the code..

Do fragments really need an empty constructor?

http://stackoverflow.com/questions/10450348/do-fragments-really-need-an-empty-constructor

and re attached the object state can be stored through the arguments. Much like bundles attached to Intents. Reason Extra reading I thought I would explain why for people wondering why. If you check https android.googlesource.com platform frameworks..

How to send parameters from a notification-click to an activity?

http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity

the notification to have an intent that when clicked it opens my activity in a special mode. I have tried to use putExtra on my intent but cant seem to extract it so i think im doing it wrong. Code from my service that creates the Notification.. 0 false notif.contentView contentView Intent notificationIntent new Intent context Main.class notificationIntent.putExtra item_id 1001 HERE I PUT THE EXTRA VALUE PendingIntent contentIntent PendingIntent.getActivity context 0 notificationIntent.. Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main Bundle extras getIntent .getExtras if extras null Log.i dd Extra extras.getString item_id The extras is always null and I never gets anything into my log...

Application Skeleton to support multiple screen

http://stackoverflow.com/questions/12242111/application-skeleton-to-support-multiple-screen

as Galaxy S4 HTC One Xperia Z A small tablet like the Samsung Galaxy Tab is classified as large larger than 4 inches Extra large applies to large devices for example large tablets Android defines four generalised screen densities Qualifier Description..

MediaPlayer error (1, -1004) aka MEDIA_ERROR_IO trying to stream music on Samsung S3

http://stackoverflow.com/questions/16672568/mediaplayer-error-1-1004-aka-media-error-io-trying-to-stream-music-on-samsun

@Override public boolean onError MediaPlayer mp int what int extra Log.d TAG OnError Error code what Extra code extra switch what case 1004 Log.d Streaming Media MEDIA_ERROR_IO break case 1007 Log.d Streaming Media MEDIA_ERROR_MALFORMED.. Render columns 05 21 16 26 23.725 E MediaPlayer 3921 Error 1 110 05 21 16 26 23.725 D MAIN 3921 OnError Error code 1 Extra code 110 05 21 16 26 23.725 D Streaming Media 3921 MEDIA_ERROR_UNKNOWN 05 21 16 26 23.725 D Streaming Media 3921 Reset media..

Android listview row delete animation

http://stackoverflow.com/questions/17857775/android-listview-row-delete-animation

Australian Niolo Nokkelost Northumberland Oaxaca Olde York Olivet au Foin Olivet Bleu Olivet Cendre Orkney Extra Mature Cheddar Orla Oschtjepka Ossau Fermier Ossau Iraty Oszczypek Oxford Blue P'tit Berrichon Palet de Babligny Paneer..

How to start an Intent by passing some parameters to it?

http://stackoverflow.com/questions/2405120/how-to-start-an-intent-by-passing-some-parameters-to-it

you create new intent and put a parameter map Intent myIntent new Intent this NewActivityClassName.class myIntent.putExtra firstKeyName FirstKeyValue myIntent.putExtra secondKeyName SecondKeyValue startActivity myIntent In order to get the parameters.. Intent myIntent new Intent this NewActivityClassName.class myIntent.putExtra firstKeyName FirstKeyValue myIntent.putExtra secondKeyName SecondKeyValue startActivity myIntent In order to get the parameters values you must call the get type Extra.. secondKeyName SecondKeyValue startActivity myIntent In order to get the parameters values you must call the get type Extra on the same intent Intent myIntent getIntent gets the previously created intent String firstKeyName myIntent.getStringExtra..

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

public void onReceive Context context Intent intent Log.d ZeeReceiver intent.toString Bundle extras intent.getExtras for String k extras.keySet Log.d ZeeReceiver Extra extras.get k .toString private BluetoothSocket sock @Override public.. Log.d ZeeReceiver intent.toString Bundle extras intent.getExtras for String k extras.keySet Log.d ZeeReceiver Extra extras.get k .toString private BluetoothSocket sock @Override public void onDestroy getApplicationContext .unregisterReceiver.. 7986 Intent act android.bluetooth.device.action.ACL_CONNECTED has extras 04 19 22 06 39.108 DEBUG ZeeReceiver 7986 Extra 00 1C 4D 02 A6 55 04 19 22 06 39.538 INFO ActivityManager 4029 Displayed activity zee.test .ZeeTest 5178 ms total 5178 ms..

How do I get multiple icons to launch different activities in one application?

http://stackoverflow.com/questions/3270409/how-do-i-get-multiple-icons-to-launch-different-activities-in-one-application

Get temperature of battery on android

http://stackoverflow.com/questions/3997289/get-temperature-of-battery-on-android

How do I display the current value of an Android Preference in the Preference summary?

http://stackoverflow.com/questions/531427/how-do-i-display-the-current-value-of-an-android-preference-in-the-preference-su

user to see Discard old messages title Clean up messages after x days summary where x is the current Preference value Extra credit make this reusable so I can easily apply it to all my preferences regardless of their type so that it work with EditTextPreference..

Set icon for android application

http://stackoverflow.com/questions/5350624/set-icon-for-android-application

160 dpi Medium density screen 48px x 48px drawable hdpi 240 dpi High density screen 72px x 72px drawable xhdpi 320 dpi Extra high density screen 96px x 96px drawable xxhdpi 480 dpi Extra Extra high density screen 144px x 144px You may then define.. High density screen 72px x 72px drawable xhdpi 320 dpi Extra high density screen 96px x 96px drawable xxhdpi 480 dpi Extra Extra high density screen 144px x 144px You may then define the icon in your AndroidManifest.xml file as such application.. density screen 72px x 72px drawable xhdpi 320 dpi Extra high density screen 96px x 96px drawable xxhdpi 480 dpi Extra Extra high density screen 144px x 144px You may then define the icon in your AndroidManifest.xml file as such application android..

Android HttpClient OOM on 4G/LTE (HTC Thunderbolt)

http://stackoverflow.com/questions/5358014/android-httpclient-oom-on-4g-lte-htc-thunderbolt

E dalvikvm 11639 Out of memory Heap Size 24171KB Allocated 23142KB Bitmap Size 59KB Limit 21884KB E dalvikvm 11639 Extra info Footprint 24327KB Allowed Footprint 24519KB Trimmed 348KB W dalvikvm 11639 threadid 9 thread exiting with uncaught..

android AlarmManager not waking phone up

http://stackoverflow.com/questions/6864712/android-alarmmanager-not-waking-phone-up

alarmTime.before now alarmTime.add Calendar.DAY_OF_MONTH 1 Intent intent new Intent ctxt AlarmReceiver.class intent.putExtra alarm alarm PendingIntent sender PendingIntent.getBroadcast ctxt alarm.id intent PendingIntent.FLAG_UPDATE_CURRENT alarmManager.set.. sender My broadcast receiver @Override public void onReceive Context context Intent intent try Bundle bundle intent.getExtras final Alarm alarm Alarm bundle.getSerializable alarm Intent newIntent if alarm.type.equals regular newIntent new Intent.. newIntent new Intent context MovementAlarmActivity.class else throw new Exception Unknown alarm type newIntent.putExtra alarm alarm newIntent.addFlags Intent.FLAG_ACTIVITY_NEW_TASK context.startActivity newIntent catch Exception e Toast.makeText..

Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices

http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or

mediaCursor null captureTime 0 mediaCursor.getCount 0 while mediaCursor.moveToNext long size mediaCursor.getLong 1 Extra check to make sure that we are getting the orientation from the proper file if size fileSize rotation mediaCursor.getInt..

How to send parameters from a notification-click to an activity?

http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity

Intent notificationIntent new Intent context Main.class notificationIntent.putExtra item_id 1001 HERE I PUT THE EXTRA VALUE PendingIntent contentIntent PendingIntent.getActivity context 0 notificationIntent 0 notif.contentIntent contentIntent..

Android cannot pass intent extras though AlarmManager

http://stackoverflow.com/questions/18649728/android-cannot-pass-intent-extras-though-alarmmanager

getPendingIntent int uniqueRequestCode String extra Intent intent new Intent this ActionReceiver.class intent.putExtra EXTRA extra PendingIntent pendingIntent PendingIntent.getBroadcast this uniqueRequestCode intent 0 return pendingIntent public.. public void onReceive Context context Intent intent Bundle extras intent.getExtras String message extras.getString EXTRA empty if message RINGER_OFF AudioManager am AudioManager context.getSystemService Context.AUDIO_SERVICE am.setRingerMode.. share improve this question before replace code Bundle extras intent.getExtras String message extras.getString EXTRA after replace code String message intent.getStringExtra EXTRA OR before replace code Intent intent new Intent this ActionReceiver.class..

Android Viewpager saving data and views

http://stackoverflow.com/questions/8891968/android-viewpager-saving-data-and-views

@Override public void restoreState Parcelable arg0 ClassLoader arg1 @Override public Parcelable saveState return null EXTRA INFO the viewpager is being used in public Object instantiateItem View collection int position ....etc the complete list..