create the widgets?

by tangke » Tue, 09 Nov 2010 02:54:31 GMT

Sponsored Links
 hi guys.

I am a new developer in android, and I see some examples about activity,
but I don't know How can I create the widget dynamicly?

thanks in advance.


create the widgets?

by Kumar Bibek » Tue, 09 Nov 2010 02:59:46 GMT

 What exactly do you mean by "widget dynamically"? I am sure there are some
tutorials on Appwidgets if that is what you are looking for.


Sponsored Links

Other Threads

1. Solution Found: MyTouch4G ADB

Hey djb,

I was having the same problem as you were and I found a simple
Assuming that you have already download the drivers from the Android
website proceed with the following step by step instructions:

1) Plug in your device and make sure it is not set on tethering (You
will most
likely get the information that it has failed to install properly)
1) Click the "Start Button" and type "Device Manager" on the search
2) Open the "Device Manager" and locate the ADB icon. (It has a yellow
button on it).
3) Right Click on it and select "Update Driver Software".
4) Select the "Browse Option" not Automatic.
5) Select "Let me pick from a list of device drivers on my computer".
6) Select "Show All Devices".
7) Select "Have Disk..."
8) Select "Browse..."
9) Look up for the <google-usb_driver> tab, select the
"android_winusb.inf" and press "Open"
10) Select the "OK" button. At this point it will warn you that the
driver is not signed,
please proceed to ignore it by selecting the "Android ADB Interface"
and clicking "Next".
Ignore the following Warning(s) and continuing to installing the
12) And...EUREKA! You may now close the Device Manager and commence
to test your applications by using your MyTouch4G!

I hope it works as well as it did for me, best of luck!



2. isFinishing() & BadTokenException - very weird !!


I have a very weird behaviour, which I cant find its cause.
the last thing I do on onCreate() is to call a certain method.
in that method i use
**progressDialog =, null, "Registering with
Moish'd! server", true, false);**.
on the first run i get BadTokenException: Unable to add window on the
_progressDialog_ line.
the second run it passes it.
I read in forums that if the activity is in the middle of "finish"
process than it might cause such an excetion.
after a long debugging tests, i tried asking for isFinishing().
something odd accoured - before calling the method, **isFinishing()
returns false**.in the first line of the method I ask again and now
**isFinishing() returns true**.
how can it be ?!?  in the last line before entering a method its not
"finishing" and in the first line of the method its suddenly
"finishing", when NOTHING is happening in between (certainly not
calling finish()).  anyone ?!?


3. Appeal to Android users with interest in DNA programming

4. BluetoothAdapter instance issue

5. Thai language conversion

6. where in Android do audio streams get assigned paths?

7. [WTA] Galaxy 551