Is it possible to use widget in my app

by MathiasL » Fri, 10 Sep 2010 00:22:19 GMT

Sponsored Links
 I just realized i might have posted this question in the wrong group,
hence I try again.

I'm writing an app where the user should be able to enter a phone
number, or choose one from Contacts.

I've found a preference widget that does exactly what I want. The
problem is that I don't know how to use it in my app.
Is it even possible?

The widget I'm talking about is

I found it browsing the source at
in [platform/packages/apps/Phone.git] / res / xml /

<PreferenceScreen android:key="button_voicemail_setting_key"

     <!-- Note for all

    The last several attributes are for use with the EditText field
    in the dialog.  These attributes are forwarded to that field
    when the edittext is created.  The attributes include:
      1. android:singleLine
      2. android:autoText
      3. android:background -->

         android:autoText="false" />

Since I'm quite lazy I prefer to reuse existing code instead of
rewriting things myself.

Is there a way to accomplish the above without duplicating the
EditPhoneNumberPreference functionality in a custom preference?



Other Threads

1. Trying to start the Hello World tutorial - can't create an AVD. Help!

*> 'java' is not recognized as an internal or external command,*

You need to add the path to you java installations bin folder to your path
environment variable

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

On Wed, Feb 24, 2010 at 3:41 PM, Subjective Effect <


2. AudioTrack.getPlaybackHeadPosition() is buggy????

sorry. post on the wrong board -_-|||


3. udah pake manup NEXDESIRE v1.0r2...and now app2sd gue blom jalan kaenya..

4. AudioTrack.getPlaybackHeadPosition() is buggy????

5. glDeleteBuffers crashes

6. first call to setContentView taking more than 10 seconds

7. Opening main.xml causes Eclipse to crash out