When call mWifiManager.isWifiEnabled , it crash. thanks in advance.

by zz zt1082 » Fri, 18 Dec 2009 08:30:06 GMT


Sponsored Links
 ooooooh~ , It 's true . No permission that :
    <uses-permission
android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
    <uses-permission
android:name="android.permission.UPDATE_DEVICE_STATS"></uses-permission>
    <uses-permission
android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
    <uses-permission
android:name="android.permission.WAKE_LOCK"></uses-permission>

Thanks again.

--



Other Threads

1. button placement problem

Hey guys,

I am trying to get a button at bottom of a screen having a list view.
This button is non-scrollable and the list view slips below the button
if it is larger than the size of the button. Could someone please help
me get the right xml properties. Tried layout_gravity and other things
but it doesnt seems to be displaying.

Here is the main.xml file


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

<TextView
          android:id="@+id/textViewHello"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal">
 <Button
android:id="@+id/Button1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentLeft="true"
android:textSize="15sp"
android:typeface="monospace"
android:textColor="#ffFFffFF"
android:text="@string/Button1"
</Button>
<Button

android:id="@+id/Button2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:textSize="15sp"
android:typeface="monospace"
android:textColor="#ffFFffFF"
android:text="@string/Button2"
</Button>
<Button

android:id="@+id/Button3"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:textSize="15sp"
android:typeface="monospace"
android:textColor="#ffFFffFF"
android:text="@string/Button3"
</Button>
<Button
android:id="@+id/Button4"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:textSize="15sp"
android:typeface="monospace"
android:textColor="#ffFFffFF"
android:text="@string/Button4"
</Button>
</LinearLayout>
<ListView
        android:id="@android:id/list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:drawSelectorOnTop="false"
        />
 <Button android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/Button4"
        android:text="@string/hello"
        android:layout_gravity="bottom"
        android:isScrollContainer="false" />
</LinearLayout>


Here is the list xml file.


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=
       "http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <ImageView
                android:id="@+id/icon"
                android:layout_width="22px"
                android:paddingLeft="2px"
                android:paddingRight="2px"
                android:paddingTop="2px"
                android:layout_height="wrap_content"
                android:src="@drawable/icon"/>

        <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
        <TextView
                android:id="@+id/label1"
                android:layout_width="100px"
                android:layout_height="wrap_content"
                android:textSize="10sp"/>
        <TextView
                android:id="@+id/label2"
                android:layout_width="100px"
                android:layout_height="wrap_content"
                android:textSize="10sp"/>


        </LinearLayout>
        <TextView
                android:id="@+id/label3"
                android:layout_width="100px"
                android:layout_height="wrap_content"
                android:layout_marginLeft="40px"
                android:textSize="15sp"
                android:text="hello"
                />
        <ImageView
                android:id="@+id/icon"
                android:layout_width="22px"
                android:paddingLeft="2px"
                android:paddingRight="2px"
                android:paddingTop="2px"
                android:layout_height="wrap_content"
                android:src="@drawable/icon" android:layout_gravity="right"/>



</LinearLayout>

Thank you,
Varun

-- 

2. Undetectable Android Service

Hi,
Is it possible to write a background service in android which is
undetectable ? it should not me present is app manager also.

Thankyou

-- 

3. Goo Market Frustration(s) -- a request to experienced app developers

4. 2.2 apk does not install in 2.1 droid

5. 3D Model Loading Problem

6. javax.sound alternative

7. How usb hot plugin message pass to android desktop?