The name of the contacts group

by Emil » Wed, 29 Apr 2009 15:04:18 GMT


Sponsored Links
 I found the name of the contacts group can not contain a slash "/"
character. Otherwise, Android can't sync correctly(It says "The XXXX
group is empty"). Is it a bug or a rule?

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



Other Threads

1. layout_gravity

OK, I'm obviously missing something fundamentally simple here.
I have a LinearLayout containing 2 buttons.
I've coloured the layout background red so I can see that it has
expanded to fill its parent.
I wanted the {*filter*}utton to center horizontally within the layout and
the OtherButton to be right justified.
But both buttons are on the left of the layout.

What have I done wrong?

<LinearLayout android:id="@+id/buttonBlock"
   android:orientation="horizontal"
   android:background="#ff0000"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content">

  <Button android:id="@+id/{*filter*}utton"
       android:text="Boo"
       android:layout_gravity="center_horizontal"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"/>

  <Button android:id="@+id/otherButton"
       android:text="Other"
       android:layout_gravity="right"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"/>
 </LinearLayout>

-- 

2. How to set screen bright "immediate" in "service"(not in activity)?

Hi everybody.

I use Android SDK 1.5

I want to set system screen bright but not activity because I run as
service.

I tried

android.provider.Settings.System.putInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS,0);

but it's not working
the screen bright has no any change

and I tried

 WindowManager.LayoutParams lp = getWindow().getAttributes();
    lp.screenBrightness = 1.0f;
    getWindow().setAttributes(lp);

it can work in avtivity but in service there's no getWindow() function
so I can't use this method

so how can i adjust screen bright immediate in service?(i want to
adjust screen bright for all system not only in activity)

By the way , in PowerManager Class there's a goToSleep() function but
when i call this function,it happen SecurityException ,but i already
add    <uses-permission android:name="android.permission.DEVICE_POWER"/
I have search in android develop group and  there has same issues ,
but i don't know how to solve.
Thanks.

-- 

3. BONDI in Andorid

4. Linking external libraries (JJIL)

5. How to capture long press of menu button

6. Drag and drop an image from a Gridview

7. Failed to create memory map of /dev/graphics/fb0