How to access and change settings for the phone and email accounts

by Nando Android » Wed, 02 Jun 2010 03:03:56 GMT


Sponsored Links
 Hello,

How can I get and connect to the internet Database of the device so that I
can:

- Obtain the phone number and other carrier information associated with the
device?
- Obtain email settings of the device?

Is it possible to change the email settings via an app on the device?

Thanks.

--



Other Threads

1. How to change background on a Spinner?

I'm trying to figure out how to change the default white background
from a spinner. I've tried a couple of things and looked around on
this newsgroup and elsewhere online. There have been a few related
questions, but I haven't deduced the answer yet (maybe I just didn't
understand what I've read). Am I on the right track or waay off?

Here is what I've got so far:

spinner = (Spinner)findViewById(R.id.spinner);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
R.layout.spinner_item, data);
adapter.setDropDownViewResource(R.layout.spinner_dropdown);
spinner.setBackgroundDrawable(null);
spinner.setAdapter(adapter);

This does what you would expect - it hooks up the Spinner and
spinner.setBackgroundDrawable(null) removes the background from the
unfocused view.

However, I can't figure out how to remove the white background shown
when you click on the Spinner and it to "pops up".

I figured this might be possible by setting the background of the
spinner_dropdown TextView by using an empty/transparent PNG as a
background:

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:singleLine="true"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/empty"/>

This does set the background of an individual row, but it seems there
is another View wrapping all the rows that is drawing the white
background.

How can I eliminate or replace the default white background from the
wrapping view?

Or... have I misinterpreted the situation? Is there a preferred way to
style a Spinner?

Thanks!




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

2. Relationships among apps, tasks, and activities

The behavior you are describing is not how things work.  What do you mean
you don't see another task?  How are you telling?  "adb shell dumpsys
activity" will show you the current activity state with the exact task
organization (in the first part of the output).






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

3. Devs: Give your thumbs up on these missing Market features

4. Porting 1.5 to Nokia N810

5. How to publish application to own device without Android Market?

6. Sending SMS messages between AVDs (in Eclips)

7. android.bat -> NullPointerException for making AVD file !