1): Create a file in /etc/udev/rules.d called 51-android.rules
2): Fill that file with the following:
SUBSYSTEM==”usb”, ATTR{idVendor}==”04e8″, ATTR{idProduct}==”6860″, MODE=”0666″, OWNER=”your_user_name”
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e42″, MODE=”0666″, OWNER=”your_user_name”
restart the udev service
Showing posts with label android. Show all posts
Showing posts with label android. Show all posts
Wednesday, February 20, 2013
Saturday, August 27, 2011
Another Note to Self
In Android, to get things to center properly, use the android:gravity tag in the Layout surrounding it....
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center">
<Button android:text="Add"
android:id="@+id/button_dialog_set"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
</Button>
<Button android:text="Cancel"
android:id="@+id/button_dialog_cancel"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
</Button>
</LinearLayout>
Produces two buttons, centered, next to each other
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center">
<Button android:text="Add"
android:id="@+id/button_dialog_set"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
</Button>
<Button android:text="Cancel"
android:id="@+id/button_dialog_cancel"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
</Button>
</LinearLayout>
Produces two buttons, centered, next to each other
Subscribe to:
Posts (Atom)