Separating Widget from main Application

by rycerz1411 » Fri, 31 Jul 2009 00:02:21 GMT


Sponsored Links
 Hello,
I have a existing application and I added a Widget to it, so now I
have app and widget in this same apk.
When I launch the main app the widget onUpdate gets executes whitch is
not what I want  is there any way to separate this two.
--~--~---------~--~----~------------~-------~--~----~



Separating Widget from main Application

by Michael Elsd枚rfer » Fri, 31 Jul 2009 02:31:25 GMT


 Make sure this doesn't just happen when you launch from Eclipse - this 
is actually a pretty useful feature for development.

Michael

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


Sponsored Links


Separating Widget from main Application

by rycerz1411 » Fri, 31 Jul 2009 03:21:08 GMT


 It does only happen from Eclipse a, but I am not sure if this behavior
would be identical when someones installs the app and launches it the
first time.

Thanks

On Jul 30, 11:31am, Michael Elsdrfer <mich...@elsdoerfer.info>


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



Other Threads

1. how to use a Cancel button to clear data in an edittext

In my app I have two edittext boxes and two buttons.
If you type something in ether edittext and then press the cancel
button.  I need the data cleared out of the edittext


(Main Layout doc)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:fitsSystemWindows="true"
        android:layout_height="fill_parent"
        android:background="@drawable/adti_300px"
        android:fadingEdge="none">


    <EditText android:id="@+id/skymsg"
              android:layout_width="fill_parent"
              android:background="@android:drawable/
editbox_background"
              android:layout_below="@id/label"
              android:width="100px"
              android:layout_height="40px"
              android:layout_gravity="center"/>


    <EditText android:id="@+id/skyid"
              android:background="@android:drawable/
editbox_background"
              android:layout_below="@id/label"
              android:layout_width="wrap_content"
              android:width="100px"
              android:layout_height="40px"
              android:layout_gravity="left"/>

    <Button android:id="@+id/ok"
            android:layout_below="@id/skymsg"
            android:text="OK"
            android:layout_height="50px"
            android:layout_width="100px"
            android:onClick="ClickedOKButton"
            android:layout_gravity="right"
            android:layout_marginTop="-50px"/>

    <Button android:id="@+id/cancel"
                android:layout_below="@id/ok"
            android:text="Cancel"
            android:layout_height="50px"
            android:layout_width="100px"
            android:layout_gravity="right"
            android:onClick="ClickedCancelButton" />

</LinearLayout>


(my java file) - it's empty because i don't know what to do.

 /** Run When the Cancel button is clicked **/
    public void ClickedCancelButton(View v)
        {

        }
    /** End Run When the OK button is clicked **/

-- 

2. Problem with the deployment of an application

Hello,
I have a new problem with my android application...
My application works on the emulator thus I try to test her on the
telephone (samsung galaxy). The application is installed well but when
she is launched it stays permanently on my welcome screen, in fact she
dashes but realizes no operation...
How to know where from comes the problem??
Thank you in advance for your answers!

-- 

3. Cannot download the sdk

4. Persistent external libraries across reboot

5. Fwd: View this page "Downloads"

6. onContextItemSelected is not working; window already focused warning message

7. Setting up command line development on Ubuntu