Re: [android-developers] Calling an external application problem.

2010-11-15 Thread Diego Queiroz
tyvm! look, tried to modify my code to accomplish what u said (didn't get it very clear) so here's the final solution i got by trying your tip out: try { Intent mainIntent = new Intent(Intent.ACTION_MAIN); ComponentName batteryUseComponent = new ComponentName( "com.android.s

Re: [android-developers] Calling an external application problem.

2010-11-14 Thread Kostya Vasilyev
You need to use fully qualified class name, not the leading dot shorthand notation. Also, this may not be part of the SDK (check), and as such may not work on all phones. Wrap your code in a try catch block, and handle ActivityNotFoundException. -- Kostya Vasilyev -- http://kmansoft.wordpress.co

[android-developers] Calling an external application problem.

2010-11-14 Thread Diego Queiroz
Hi there! I'm having some trouble linking my app to another. What i want to do is call the battery use app from android settings. So i have to know the action and the component called to start this app, ok? Here's my code: ComponentName cn = new ComponentName("com.android.settings", ".fuelgauge.P