getting up android emulator........

by Aakarsh MHM » Mon, 22 Feb 2010 15:07:26 GMT


Sponsored Links
 hi...

i am using eclipse on ubuntu.....
i want to run android emulator....

when i tried installing the software  using /help/install new software
i gave the site as  http://dl-ssl.google/com/android/eclipse/ 

it says duplicate location....

and i am not able to proceed.....

can anyone help me???

--



Other Threads

1. Dynamically enabling or disabling a widget does not work

Hi all.

We would like to enable or disable widgets via code.  When we say
"disable" we mean that a widget which is registered in an application
should not show up in the list of widgets available to the user when
they try to add a widget to their home screen.

This question has been asked, unfortunately, many times without
answer.  There was one response by Dianne Hackborn to a separate
widget question which suggested that it was possible to use the
package manager to disable widgets:

PackageManager pm = context.getPackageManager();
pm.setComponentEnabledSetting(new ComponentName(
    "com.example.android.apis",
".appwidget.ExampleBroadcastReceiver"),
    PackageManager.COMPONENT_ENABLED_STATE_ENABLED, // or DISABLED
    PackageManager.DONT_KILL_APP);

This, however, does not work.  The widget component will still appear
in the list of widgets.  It may be that the AppWidgetService (located
in the Android source's Base.git at \src\base\services\java\com\android
\server), which loads the list of available widgets, caches this list
of available widgets.  If that were the case, though, then the above
code which enables or disables the widget component would work after a
device reset because there would be no cache; it does not.

I have also tried looking into overriding some methods of the
AppWidgetProvider, such as filtering out any events.  I don't think
this will go anywhere, because the AppWidgetService, which populates
the list, uses the Package Manager to find all components which catch
the ACTION_APPWIDGET_UPDATE action on startup and when a package is
added (i.e. a new app is installed).  The only time that a provider is
removed from this list is on a ACTION_PACKAGE_REMOVED broadcast.

So given that the providers will always be there, regardless of the
enabled/disabled state of the component, I have looked into the actual
list activity which is shown from the Launcher app when the user long-
clicks the desktop and adds a widget:  AppWidgetPickActivity in
Settings.GIT in
com.android.settings.  This, unfortunately, populates the list
directly from the AppWidgetService, without any filtering for the
component's enabled status:
    void putInstalledAppWidgets(List<PickAdapter.Item> items) {
        List<AppWidgetProviderInfo> installed =
mAppWidgetManager.getInstalledProviders();
        putAppWidgetItems(installed, null, items);
    }

I would love to see if anyone has overcome this hurdle.  Perhaps I am
going about it the wrong way.  All I want is to be able to remove a
widget from the list of widgets available to the user when they try to
add a widget to their home screen.

Thanks,
-Matt

-- 

2. GMail unread mail count

Hello Forum,

most other smart phones display the unread email count as a small
number in the lower right hand corner of the email application icon. I
like that. After realizing that this is not supported by the GMail
app, I started looking around the market for a widget that achieves
this. All I found was a commercial widget, which did not satisfy me
(the count did not get instantly updated when the unread mail count
changed).

Therefore I want to develop a widget, which accomplishes exactly that.

Many of you probably have more experience in android development than
I do, so I would be happy to hear your opinions.

I see two ways to realize this:

1) Somehow hook into a content provider of the GMail app and extract
the unread mail count directly from there. Unfortunately the GMail app
is not part of the SDK and closed source. Therefore I have no idea how
to find out about the internal workings of the app and how to extract
the unread mail count directly from there.

2) The second approach is much more indirect and has more overhead,
but it will work nevertheless. I will let the user provide google
username and password and log into the google imap server directly and
find out how many unread mail there are. A port of the JavaMail
library for the android OS should make this quite simple. The question
remains when to update the mail count. What should trigger the update?
A periodic time-out? Well, my first idea would be to update it when
the widget is first started and then every time a new mail
notification comes in. However I don't know whether this is possible.
Can I tell my application to react to notifications, which where
produced by another application (GMail app in our case) ?


I really think there should be a free unread gmail widget, which
accomplishes this! I would be happy to receive feedback.


Cheers,

Christoph

-- 

3. Galley of thumbnails from the web running out of memory

4. tdk bisa login Gmail

5. Galley of thumbnails from the web running out of memory

6. Basic Emma code coverag tutorial needed

7. android.telephony.SmsManager.sendTextMessage throw exception when destination addr is email addr