Search default activity or apps

Put your problem here if it does not fit any of the other categories.

Search default activity or apps

Postby jaumard » Fri Sep 10, 2010 11:06 am

Hello,

I search a way to open default activity "alarms" of the phone.

For the moment I use :
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Intent intenta = new Intent();
  2. intenta.setClassName("com.android.deskclock","com.android.deskclock.AlarmClock");
  3.  
  4. PendingIntent pendingintent = PendingIntent.getActivity(context, 0,intenta, 0);
  5. updateViews.setOnClickPendingIntent(R.id.heure, pendingintent);
  6.  
  7.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


My problem is if the default apps of android (AlarmClock) was not on the phone nothing was opened.

Anyone have a idea or solution for me?

Thanks
Cheers
Jim
jaumard
Freshman
Freshman
 
Posts: 8
Joined: Sat Aug 21, 2010 1:51 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests