[android-developers] Defining a class at runtime

2010-06-28 Thread Ashutosh Sharma
Hi, I'm trying to achieve the following: - class A (in application A) derives from class B. - application A loads a dex dynamically (using DexClassLoader). - application A wants to have the *definition* of class B to come from this newly loaded dex. Something similar does happen for the Google

[android-developers] Re: How to detect presence of camera on an Android device.

2010-06-28 Thread Ashutosh Sharma
I too am trying to figure this out - is there a reliable way to know whether a device has camera hardware at all? Thanks, Ashutosh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] DisplayMetrics xdpi and ydpi returning incorrect values

2010-01-25 Thread Ashutosh Sharma
Hi, xdpi and ydpi are currently returning 96 on a Motodola Droid device. screenDPI returns a stepped value of 240, which still isn't the correct value. This issue was also present much earlier (pre-cupcake) - http://groups.google.com/group/android-developers/browse_thread/thread/72ad6ba7683a6b80

[android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2010-01-25 Thread Ashutosh Sharma
wrote: This is a known bug. Although screenDPI=240 is the correct value (it's not the real density of the display, but the density used by the OS for that screen.) On Mon, Jan 25, 2010 at 1:37 AM, Ashutosh Sharma ashusha...@gmail.com wrote: Hi, xdpi and ydpi are currently returning 96

[android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2010-01-25 Thread Ashutosh Sharma
screenDPI=240 is the correct value (it's not the real density of the display, but the density used by the OS for that screen.) On Mon, Jan 25, 2010 at 1:37 AM, Ashutosh Sharma ashusha...@gmail.com wrote: Hi, xdpi and ydpi are currently returning 96 on a Motodola Droid device

[android-developers] Re: Adding a shortcut to Programs (launchers) programmatically

2009-08-03 Thread Ashutosh Sharma
there is no way to do this.  The all apps list is populated based on a query on the package manager, which is generated only by data in the installed .apk's AndroidManifest.xml files. On Sun, Aug 2, 2009 at 2:08 AM, Ashutosh Sharma ashusha...@gmail.comwrote: Hi, I'd like to programmatically add

[android-developers] Enabling/Disabling activities at run time

2009-08-03 Thread Ashutosh Sharma
Hi, I have an application that has multiple activities with the intent action.MAIN (category LAUNCHER), so that multiple shortcuts appear in the Applications list. Is it possible to disable some of these activities at run-time (so that the corresponding shortcuts disappear from the Applications

[android-developers] Re: Enabling/Disabling activities at run time

2009-08-03 Thread Ashutosh Sharma
Thanks - That seems to be exactly what I was loooking for! Thanks again, Ashutosh On Aug 3, 7:09 pm, Mark Murphy mmur...@commonsware.com wrote: Ashutosh Sharma wrote: Hi, I have an application that has multiple activities with the intent action.MAIN (category LAUNCHER), so that multiple

[android-developers] Adding a shortcut to Programs (launchers) programmatically

2009-08-02 Thread Ashutosh Sharma
Hi, I'd like to programmatically add shortcuts to Applications (list of launchers) - typically these are added automatically when an application is installed. The shortcuts could be to native executables or to regular application launchers/classes. Is this possible at all? If so, could someone

[android-developers] Updating a built-in application - data preserved?

2009-04-09 Thread Ashutosh Sharma
Hi, There was a discussion on this earlier (http://groups.google.com/group/ android-developers/msg/59f5c1ad46e6b94c) - could someone confirm whether the functionality of updating a built-in/system application with a app published on the Android Market will be available in cupcake? If I have an