EditText in widget

by chris price » Thu, 25 Feb 2010 19:24:35 GMT


Sponsored Links
 Hi,

Is it possible to have a EditText or TextView in a widget and when its
selected show the softkeyboard to allow entry?

I got the TextView to show and set editable to true and when its
selected the keyboard did not show

Thanks

--



Other Threads

1. java.net.SocketException: unknown error - and yes, I have got permission.INTERNET set

[Right! I've fixed this myself, solution at the bottom - but I'm
posting anyway in case anyone else is struggling with the same
thing...]
OK, I admit I'm new to Android, and could be making silly mistakes.

I'm trying to do a simple XML remote procedure call using the
org.xmlrpc.android library. When I tried this first I did not have
android.permission.INTERNET set, but I now do; my manifest is now:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="uk.co.cygnets.ov.android"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name" android:permission="android.permission.INTERNET">
        <activity android:name=".OVAndroid"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

However, when in the emulator I open Settings -> Applications ->
Manage Applications -> OV Android (my application), the panel
'Permissions' still says 'No permissions required'. I'm guessing that
the emulator is holding onto stale data, but I'm not certain why. I
have deleted my application from the emulator, and reinstalled it,
several times.

"android.permission.INTERNET" is not present in the auto-generated
file 'R.java'; I don't know whether it should be. I've deleted this
and regenerated it several times, too.

OK, nw the fix

http://code.google.com/android/devel/bblocks-manifest.html I guessed
that I needed a 'uses-permissions' element so I experimentally tried

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="uk.co.cygnets.ov.android"
      android:versionCode="1"
      android:versionName="1.0.0">
    <uses-permission android:name="android.permission.INTERNET"/>
    <application android:icon="@drawable/icon" android:label="@string/
app_name" android:permission="android.permission.INTERNET"
android:enabled="true" android:debuggable="true">
        <activity android:name=".OVAndroid"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

This works! Whether I also need the 'android:permission' attribute on
the application tag I don't know, but it doesn't seem to do any harm.




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

2. simulating gps

hi all

well i was trying to use the location based service based apis to feel
how gps works on emulator. though we do have a provider in the data/
location/gps but when i give this provider location as a param to the
method getLastKnownLocation("gps") , it returns NULL
how can we get this method to take a provider of our location.

bbye

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

3. ContentProvider idea

4. linux/string.h

5. LOCAL_CERTIFICATE

6. Porting JMF - Native source code to android based

7. android: building for dream fails