how to give effects to livewallpaper?

by Hitendrasinh Gohil » Fri, 20 May 2011 13:51:26 GMT

Sponsored Links

can anybody tell me how can we give effects to live wallpaper like in
"city at night" lights on/off etc.


Other Threads

1. Activity, I got CalledFromWrongThreadException

Hello all!
I'm going to implement a simple chat application. I designed to
introduce an interface called TextReceiveListener that expose just one
     void receive(String message)
Doing so, I wrote this:

public class SChat extends Activity implements TextReceiveListener {
    public void receive(String message) {
        String s = txtChatHistory.getText().toString();
        s += message + "\n";

Essentially, receive() method is called by a listener thread whenever
a message arrives, but... I obtain the following exception stacktrace:

android.view.ViewRoot$CalledFromWrongThreadException: Only the
original thread that created a view hierarchy can touch its views.
      at android.view.ViewRoot.checkThread(
      at android.view.ViewRoot.clearChildFocus(
      at android.view.ViewGroup.clearChildFocus(
      at android.view.ViewGroup.clearChildFocus(
      at android.view.ViewGroup.clearChildFocus(
      at android.view.ViewGroup.removeAllViewsInLayout(
      at android.view.ViewGroup.removeAllViews(
      at it.unitn.schat.SChat.receive(
      at it.unitn.schat.core.impl.NetworkInterfaceImpl$

Do I miss something? O_o Why my thread is "wrong"?
Thank you in advance!


2. slow drawLine

I'm putting together an app that collects locations which then lets
the user map them out later.  The problem I am running into is when
the app is running for a long time it will have stored a good number
of locations.  I can call drawLine in the draw event of the Overlay,
but moving around in the MapActivity is painfully slow because of the
number of lines drawn.  I've tried using the drawPath method, but for
some reason that is also just as slow to move/scroll around the
MapActivity.  Both of these methods are quick to draw the lines, but
once the lines are there it is slow to move the map around.

For some reason the driving directions built into the maps is very
fast no matter how many lines they've got, so my question is, how can
I get my app to be more responsive?

Thanks in advance for any help!


3. -http-proxy option can't work in emulator with 1.5 sdk

4. Button in Custom View

5. Fwd: Hello World Tutorial Error Message

6. Storm Trooper being arrested for carrying a loaded firearm view!

7. Issue in booting with new Android 1.5 (API level 3)