Geting Activity from package

by Ali Murtaza » Wed, 02 Jun 2010 02:08:06 GMT


Sponsored Links
 Hi All

I want to get activity from a package

like

          final PackageManager packageManager = getPackageManager();
        Intent intent =
packageManager.getLaunchIntentForPackage("com.android.alarmclock");

But infact i want the activity in which i send the time and that will set
the alarm
pleae help me

thanks
-- 
Ali Murtaza

BCSF06M021
Research Assistant
Data Virtulization Ware House
PUCIT, Lahore, Pakistan
ali.murt...@pucit.edu.pk

--



Other Threads

1. Android GPS implement

Hi All~~

I am porting GPS to Android now. I have been look for many web site
relate to Android GPS porting include this group. However, I also feel
confused about that.

I have some questions. Can anyone give me some suggestions and I will
appreciate about that.

1.There are 3 files : Android.mk, gps.cpp and gps_qemu.c in hardware/
libhardware_legacy/gps. What is the functionality about the 3 files in
directory gps. Should I modify the 3 files to implement GPS.

2.In this web site 
http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/gps.html,
it shows that anyone that want to integate GPS with Android should
create a shared library named libgps.so refer to gps.h. My question is
how to create a shared library libgps.so.If the libgps.so is created,
where can I find it. What is the relation between libgps.so and
libhardware_legacy.so.

3.How to test GPS if gps is implemented successfully. I know there is
a gpstest tool in Android but I don't know how to use it. Can someone
tell me the detail about gpstest tool provided by Android.

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

2. Handling Resolutions with the Canvas

I'm currently working on a 2D application using the canvas, and I
curious how other developers would handle this issue.

The application has a background that then has bitmaps drawn on top of
it in very specific locations.  Obviously with screen resolutions this
becomes a bit problematic.  First, I'm assuming I'll need to create a
new background for each phone resolution I want to support (or I can
allow the SDK to resize it for me?)

The bigger question is I have 5-10 bitmaps I need to place on very
specific locations on top of the background, they will animate and do
various things so they are not part of the background..  Since the
resolution changes affect the placement of these items, I'm curious on
the best way to handle the placement?

I know with certain assets you can append -320x240 for instance to the
filename and the sdk will pull the asset that fits the resolutions.  I
thought maybe i could create an array asset in the xml folder, but was
unsure if this would work with the extension method.. then I could
just create an xml file of positions per screen resolution.

The other option is just to code a object of some sort to store all
the positions at each resolutions... I have a feeling I'm missing
something to make this far easier so hoping someone here might have
some insight?  Since the scaling of the background will change both
the x and y position of the items on top of it, I'm not sure I can
just easily compute their placement?

Thanks.
--~--~---------~--~----~------------~-------~--~----~

3. Anyone else notice more frequent GC in 1.6?

4. setColorFilter() not working

5. Menu button goes to Preferences - Cool?

6. Runtime annotations in Android 1.5?

7. Question about LocationServices issue (3453): has this been solved in Donut (1.6)?