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. Creating an Android VN

I am looking for an example of how to setup a screen with a
background, an overlay image (my character), and over that a frame
that sometimes has text, and sometimes has menu options.

To make myself clearer, as I suggest in the title I'm trying to create
a Visual Novel for Android. Something like I've done in Flash and
using RenPy, but with mobile sensibilities (make the buttons more
touch friendly, use the accelerator for certain inputs, etc).

Any good, publicly available source code I should check out? I have
written one previous Android Program (Mars Lander which I gather is
still floating about), but this is different enough I think I need a
bit of help.

Thanks in advance!


2. my own app store ?

I have a requirement where either a browser based application will
have hrefs to already existing google market apps, so that on click of
that link my application opens up android market with particular

can it be done from a native app ?

can i myself download a signed apk from other web site and
independently install it to be shown up in launcher and run ?



3. Relation data in Contacts app

4. How to kill application

5. Could not initialize class sun.awt.X11.XToolkit in Eclipse on ubuntu

6. Published app not showing up on HTC Evo or Droid Incredible

7. Send Data to a running app