Active wallpaper

by VA » Fri, 20 Feb 2009 11:41:43 GMT


Sponsored Links
 I am interested in a feature on Android phone where the wallpaper on
the phone is made active. It should be able to display things like
pending RSS feeds, unread messages etc. Does anybody know of any work
that has been going on this area.

Also any pointers that people may have on what I should look into will
be welcome. BTW, I am not really looking for widgets, I was a text/
image layer to be rendered on top of the wallpaper before the rest of
the home screen is painted.
--~--~---------~--~----~------------~-------~--~----~



Active wallpaper

by Romain Guy » Fri, 20 Feb 2009 13:53:41 GMT


 Such a feature is not planned. The biggest issue is the impact on
battery life and security. Home has quite a few permissions and you
don't know random apks to be able to do random things inside Home.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Sponsored Links


Other Threads

1. List view scroll issue

Hi All,

I have developed an android application which is having list views.
Here i have two different pages (list view), which is having 6 and 150
list items. Right now i am in second page. It is having the 150 items.
Now i am scrolling the page, at the same time i am trying to navigate
different or previous page using the button action. That time I am
getting the crash. That means ArrayIndexOutOfBoundsException i am
getting. I am using the custom adapter to create list menu. Here is my
code,

private class CustomListAdapter extends BaseAdapter {
                Context context;
                public CustomListAdapter(Context context) {
                        this.context = context;
                }
                public int getCount() {
                        return toDisplay.length;
                }
                public Object getItem(int arg0) {
                        return toDisplay[arg0];
                }
                public long getItemId(int position) {
                        return 0;
                }
                public View getView(int position, View convertView, ViewGroup
parent) {
                        CustomListView view = null;

                        /*
                         My code here...
                         */
                        view = new CustomListView(context, sType, bmImg, 
position);
                        view.setGravity(Gravity.CENTER);
                        }
                        return view;
                }
        }

While coming navigating i am getting the problem in the following line
"public View getView(int position, View convertView, ViewGroup
parent)"
because I am getting the position value as greater than 6. So can any
one tell me how to resolve this.
I think the problem in list view scrolling. So before navigating to
other screen i have to stop the scrolling. How to do that?
Please let me know your suggestions.

Thanks in Advance,
Muthu Kumar K.
--~--~---------~--~----~------------~-------~--~----~

2. has leaked service connection in activity that was originally bound here

when I bind service when activity on create:




04-29 16:20:27.797: ERROR/ActivityThread(11629): Activity
com.maweis.ToggleSilentActivity has leaked ServiceConnection
com.maweis.togglesilentactivit...@434fffa0 that was originally bound
here
04-29 16:20:27.797: ERROR/ActivityThread(11629):
android.app.ServiceConnectionLeaked: Activity
com.maweis.ToggleSilentActivity has leaked ServiceConnection
com.maweis.togglesilentactivit...@434fffa0 that was originally bound
here
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread$PackageInfo$ServiceDispatcher.<init>
(ActivityThread.java:886)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread$PackageInfo.getServiceDispatcher
(ActivityThread.java:781)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ApplicationContext.bindService(ApplicationContext.java:
820)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.content.ContextWrapper.bindService(ContextWrapper.java:307)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
com.maweis.ToggleSilentActivity.onCreate(ToggleSilentActivity.java:
153)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.os.Handler.dispatchMessage(Handler.java:99)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.os.Looper.loop(Looper.java:123)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
java.lang.reflect.Method.invokeNative(Native Method)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
java.lang.reflect.Method.invoke(Method.java:521)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
04-29 16:20:27.797: ERROR/ActivityThread(11629):     at
dalvik.system.NativeStart.main(Native Method)




code:

   private ToggleSilentService serviceBinder;

        private ServiceConnection mConnection = new ServiceConnection() {
                public void onServiceConnected(ComponentName className, IBinder
service) {
                        serviceBinder = ((ToggleSilentService.MyBinder) service)
                                        .getService();
                }

                public void onServiceDisconnected(ComponentName className) {
                        serviceBinder = null;
                }
        };

        @Override
        protected void onCreate(Bundle icicle) {
                super.onCreate(icicle);
                mSensorManager = (SensorManager) getSystemService
(Context.SENSOR_SERVICE);
                setContentView(R.layout.main);

                mView = (SilentView) findViewById(R.id.silentView);

                soundUtil = new SoundUtil(this);

                Intent bindIntent = new Intent(ToggleSilentActivity.this,
                                ToggleSilentService.class);
                bindService(bindIntent, mConnection, Context.BIND_DEBUG_UNBIND);

        }


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

3. text alignment in edit text

4. How to programable send multi-attachment in an email

5. Launch android emulator on mingw/msys, but failed

6. how to get the string from a listview item

7. Can any Body Help me ?