> @Dianne: If you define some standard intent for the calculator, please
> make it accept some number extra that appears in the display :-)
and return the final result in onActivityResult() :-)
Peli
>
> Peli
>
> On 2 Jul., 20:01, schwiz wrote:
>
>
>
> > well the widget I am making most likely
@schwiz: Logcat would work with both, emulator and device:
http://developer.android.com/guide/developing/tools/adb.html#logcat
@Dianne: If you define some standard intent for the calculator, please
make it accept some number extra that appears in the display :-)
Peli
On 2 Jul., 20:01, schwiz w
well the widget I am making most likely wont be released on the market
but I had intended to just do a try catch, and if it doesn't find the
app it would just throw up a little message saying that toggle
settings wasn't found on the system.. Will the logcat catch the name I
need to launch the appl
I believe the calculator has an action defined for launching with a value.
But still... it is not a part of the standard platform, so you would be in
trouble if you were relying on it being there -- I wouldn't count on it
being on every device, and certainly if we do define some intent action for
So what would be the best way to write, e.g., a restaurant bill widget
that launches the built-in calculator?
It does not have any other intent filters except MAIN LAUNCHER:
http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=blob;f=AndroidManifest.xml;h=ce9063f14287377cb31ff
The launcher doesn't have any hard-coded component names; it does a query of
the system for all activities implementing MAIN LAUNCHER.
On Thu, Jul 2, 2009 at 9:52 AM, Peli wrote:
>
> Sorry, my mistake. Of course for settings it is better to use the
> appropriate intent action.
>
> But for many a
Sorry, my mistake. Of course for settings it is better to use the
appropriate intent action.
But for many applications, the launcher intent is simply MAIN (in
category LAUNCHER), so there is no way to differentiate between
different applications, except by their component - right? (or is it
easil
Please don't hard-code component names of other packages. Those are
implementation details, and you can very well break at some point in the
future. The Settings class has a number of intent actions to launch
standard settings panels; for other things, you should figure out the right
intent proto
If you are only interested in a specific application, you can study
the logcat output while launching that application. It will tell you
the component that is necessary to launch it.
Looking at the Settings manifest:
http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=An
well there a ton of battery life widgets out there but I just want a
battery % widget that launches toggle settings for my convenience. I
just want to basically save a slot on my home screen. thanks for the
link I'll take a look into it hopefully it will get me where I need to
be.
On Jul 2, 10:
First of all - what is the point of that widget? A user could simply
drag and drop the icon of the application they want to launch to the
home screen.
If you are still convinced you need it, you probably also want to
include an activity picker:
http://www.openintents.org/en/node/263
On that page
Actually I can't even seem to find out how to do this with one of my
own apps can anyone give me a code sample or point to some good
documentation. Ive read the actual android reference on intents and
startActivity but I still can't figure it out.
On Jul 1, 11:08 pm, schwiz wrote:
> I'm wanting
12 matches
Mail list logo