Moving a program from one computer to another

by BobG » Sun, 16 May 2010 07:02:28 GMT


Sponsored Links
 I have an eclipse workspace on my laptop, my desktop at work, and the
company server. If I go home and edit program xx on the laptop, the
only thing that changed is the java file ine the src dir, so thats all
I need to copy to the desktop and the server when I get to work? I
also want to figure out how to move an example from the samples dir in
the sdk dir into my androiddevel dir. One problem is the samples have
different package names... com.exmaples.android or something, and my
androiddevel packages are all com.aiti.xx, so there an item in eclipse
that does this, or does one edit every file in the src dir to change
the package name? Thanks. Not used to eclipse yet.

--



Moving a program from one computer to another

by Justin Anderson » Sun, 16 May 2010 14:40:49 GMT


 First, this is more of an Eclipse question than an Android question....  You
could probably get some better answers here:
 http://www.eclipse.org/home/newcomers.php 

*> I have an eclipse workspace on my laptop, my desktop at work, and the
*
Correct.  However, it seems like you are doing this the hard way...  I would
highly recommend using a source control repository, like subversion.  That
way you can keep your different copies of source code in sync.  Check out
 http://subversion.tigris.org/ 

*> One problem is the samples have
*
I may be wrong but I don't think there is an automated way to do this... I
think you have to manually change them.  Remmber, however, that package
names are based on the actual folder structure...  So you have to change not
only the package statement but the actual folders as well.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------





>


Sponsored Links


Moving a program from one computer to another

by Keith Williams » Wed, 26 May 2010 23:28:28 GMT


 I found it very difficult to transfer Eclipse workspaces between
computers. Checking in a project from one machine and out to another
through CVS (or an equivalent) however, works great.



>



Other Threads

1. Why do the Date/Time controls have "+" on the top and "-" on the bottom?

I've always thought it was strange that the Date/Time controls have
the increment and decrement buttons in the order that seems opposite
to the natural order.  Experience in user interfaces tells you that
numbers increase "down" and decrease "up", just like the entries in a
list.

If you had a Date/Time control that was synched with a list, where the
keys of the list are date or time markers, you would click the control
above the component ("+") and the marker would move down the list.  If
you clicked the control below the component ("-"), the marker would
move up the list.

-- 

2. Setting color of drawable shape in code

I am using a shape defined as a drawable as background for a TextView.
This allows me to add rounded corners and other other effects.
The shape is defined like this:

    <?xml version="1.0" encoding="utf-8"?>
    <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
        <corners android:topLeftRadius="8dp" />
    </shape>

and I am using it like this:

    <TextView
        android:id="@+id/project"
        style="@style/textView"
        android:background="@drawable/project_textview_background"
    />

Now, I need to change the color of that TextView programmatically
depending on some conditions. The conditions are note related to
button states like focuses, selected, etc... It depends on the data.
My current workaround was to create a 9-patch image for each color but
I don't like this solution because there are 12 colors and I want to
use them in other places with different shapes. I'll end up with
dozens of 9-patch images for something that could be done in code.

- I tried to do setBackgroundColor but that seems to overwrite the
background I previously defined so it doesn't show the rounded corners
anymore.
- I looked at a bunch of other API methods but got nowhere

Any help would be very much appreciated. Thank you
Any ideas?

-- 

3. [WTI] Released : SamdroidMod 2.0.1.alpha.8.3 - Froyo [AOSP] for i5700

4. AIDL aspects for memory usage and speed

5. APK file package name

6. (WTB)battery hero

7. Problem in communicating from tabActivity to Child Activity