How to play three images as an animation on Widget?

by D.Y » Mon, 19 Apr 2010 21:11:48 GMT


Sponsored Links
 Dear All,

 

         I want to star an animation with three images on an app widget, and
It should be pause, resume and stop.

 

         Any suggestion will be grateful.

 

Best Regards,

D.Y

 

--



How to play three images as an animation on Widget?

by a a » Wed, 21 Apr 2010 09:14:23 GMT


 Yes, I think there should be a solution too,
may be the Gallery can help.

Best regards
Harvey

2010/4/20 Mark Murphy <mmur...@commonsware.com>:


>


Sponsored Links


Other Threads

1. Compile and port Android os in MS104-SH4AG board

Any English information, I cannot read japanese.

I've never worked with SH4, and I don't know if android stands for that

But anyway you can start here:

http://android.git.kernel.org/
http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/
http://www.mail-archive.com/android-disc...@googlegroups.com/msg10640.html
https://review.source.android.com/#dashboard,1001893




> 

2. how to use jmdns

HI!
My goal is to find network printers using jmdns

Following is the code I have written which does not work. I am new to
all this Pls. help me.
What exactly I want to do is to list all printers in list
box...Currently I am not filtering printers..

I am always getting exception... Here is my code


public class ListPrinters extends ListActivity {
        public static JmDNS jmdns;
        public static JmDNSImpl impl;
        protected ServiceListener listener;
        protected ServiceInfo info;

        public ListView lv;
        public ArrayList<String> PrinterList;
        public int cancel =0;

        public final static String TAG = "ListPrinter";


        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.list_printers);

        showAllPrinters();
        PrinterList = new  ArrayList<String>();
        PrinterList.add("First Node");   /// just for checking
                setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1 , PrinterList));
                lv = getListView();
                lv.setTextFilterEnabled(true);
                 lv.setOnItemClickListener(new OnItemClickListener()
                 {
                         public void onItemClick(AdapterView<?> parent, View 
view,
                                         int position, long id)
                         {
                                 // When clicked, show a toast with the 
TextView text
                                 Toast.makeText(getApplicationContext(), 
((TextView)
view).getText(),
                                                 Toast.LENGTH_SHORT).show();

                                 if (jmdns != null)
                                 {

                                         
ListPrinters.jmdns.removeServiceListener("_http._tcp.local.",
listener);
                                         ListPrinters.jmdns.close();
                                         ListPrinters.jmdns = null;
                                         ListPrinters.impl = null;


                                 }
                         }
                 });

        this.listener = new ServiceListener() {

                                public void serviceAdded(ServiceEvent event) {

                                        PrinterList.add("Service added   : " + 
event.getName() + "." +
event.getType());
                                        Log.v(TAG,"Service added   : " + 
event.getName() + "." +
event.getType());
                                }

                                public void serviceRemoved(ServiceEvent event) {
                                        PrinterList.add("Service removed : " + 
event.getName() + "." +
event.getType());
                                        Log.v(TAG,"Service removed : " + 
event.getName() + "." +
event.getType());
                                }

                                public void serviceResolved(ServiceEvent event) 
{
                                        PrinterList.add("Service resolved: " + 
event.getInfo());
                                        Log.v(TAG,"Service resolved: " + 
event.getInfo());
                                }

                        };



        }


        public void showAllPrinters()
        {
        try
        {
            ListPrinters.jmdns = JmDNS.create();
            ListPrinters.jmdns.addServiceListener("_http._tcp.local.",
listener);
            ListPrinters.impl = (JmDNSImpl)jmdns;

        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
    }



}

-- 

3. Broadcast receivers

4. Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

5. Could anyone with an HTC Desire/Droid help me

6. Modify strings.xml dynamically

7. Weird: It appears as if sometimes my Activity will be resumed but previously set instance variables are null