Select0r, You can access these from android.R.drawable. EDIT: Wait, I think I see what you're saying. The link you provided seems to conflict with this list of available system drawables: developer.android.com/reference/android/....
Android.R. Drawable is exactly the way it does not work :) – Select0r Feb 3 at 21:12.
I've found another link with information that not all drawables are public. It doesn't say why some drawables would be private, but I guess I'll have to live with the fact and copy the needed images to my app. androiddrawableexplorer.appspot.com/ NOTE: Some of the images in the Android jar are not public and therefore cannot be directly used (you can copy them to you own application, but can't reference them via the "android" package namespace).
1 glad you found an answer to this. I ran into this problem before and put it off to the fact I was keeping a 1.6 compatible build environment. – willtate Feb 3 at 21:18.
There actually seems to be a way to access the system icons, but it's not really working as stated in the documentation, but I'll add it in case somebody is interested: intent. GetIntExtra(BatteryManager. EXTRA_ICON_SMALL, -1) Will get you the resource-ID of the icon that matches the current battery-status:developer.android.com/reference/android/... Extra for ACTION_BATTERY_CHANGED: integer containing the resource ID of a small status bar icon indicating the current battery state.
However, it always returns the same icon, no matter what the actual battery level is. Finding the icon by just trying random numbers may work, but I don't know if the IDs are consistent throughout the SKD-levels as well as different machines, so I'd rather not rely in that.
Hope this is what you were looking for: private BroadcastReceiver mBatInfoReceiver = new BroadcastReceiver(){ @Override public void onReceive(Context arg0, Intent intent) { int level = intent. GetIntExtra("level", 0); int batteryIconId = intent. GetIntExtra("icon-small", 0); Button toolBarBattery = (Button) findViewById(R.id.
ToolBarButton); LevelListDrawable batteryLevel = (LevelListDrawable) getResources(). GetDrawable(batteryIconId); batteryLevel. SetLevel(level); toolBarBattery.
SetBackgroundDrawable(batteryLevel); } }.
This is actually almost the same as my (accepted) solution from two weeks earlier. The only difference is that you're using "icon-small" and I'm using BatteryManager. EXTRA_ICON_SMALL.
– Select0r Mar 5 at 21:12 "However, it always returns the same icon, no matter what the actual battery level is..." the use of the LevelListDrawable object solves that issue, try it out if you want ;) – rttn Mar 11 at 15:02.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.