How to fetch phone's phone number or unique ID

by Nando Android » Sun, 27 Jun 2010 08:09:14 GMT

Sponsored Links
 Exactly, I want an unique ID to it.

How can I call it? Do I have to instantiate something?



Other Threads

1. Trackball listener

Is there a way to set a listener for a trackball event?  I've noticed
that listeners can be set for most other view events, but not the
trackball.  Is there a reason for this, or did I miss something?


2. How to redraw the list in ExpandableListViewActivity

Hi there,

Here is the situation.  In a TabbedView, one of three tabs is an
ExpandableListViewActivity.  My application is using SQL Lite to store the
data bound to the ExpandableListView.  When I change the SQL Lite data in
another activity, I need to refresh the ExpandableListView and show the new
data.  If I am drawing the tab for the first time after adding new data, the
list shows correctly after the tab switch.  If I am in the
ExpandableListViewActivity when I add new data to the list or edit existing
data, then I do not see the change.  In this case, when I exit the
application and restart, I see the modified data was stored in SQL Lite as
expected.  Can anyone suggest how I might get the tab to redraw the list?

The partially working code looks like this:
    protected void onActivityResult(int requestCode, int resultCode, Intent
intent) {
        super.onActivityResult(requestCode, resultCode, intent);
//stuff deleted
        if((requestCode == EDITOR) && resultCode==RESULT_OK) {


The constructor for the list adapter is where I execute the code to populate
the groups and children.  Do I want to drop and create a new list adapter?
That seems like a waste of perfectly good rows.  Is it something I should do
in the ExpandableListViewActivity, rather than the TabHost?  The fact that
this is an expandable list is probably irrelevant; I am stuck where an
object on the screen that has changed is not redrawn automatically.
Your help is deeply appreciated.

Best regards,

Pablo Picasso<>
- "Computers are useless. They can only give you answers."


3. Intercept home button?

4. including jar files with my android application

5. Developing specific private apps with Android

6. Draw a Circle when the user touches the screen

7. Adding view resource