Using Intents

by Georgy » Sun, 07 Jun 2009 23:28:19 GMT

Sponsored Links
 How can use intents in the following:

I want to use the RADAR function  in the package:

I got that I need to input the following:

Intent i = new Intent("");
    i.putExtra("latitude", 37.422f);
    i.putExtra("longitude", -122.084f);

but that throws and exception error.... is there anything I need to
know more?


Using Intents

by Marco Nelissen » Mon, 08 Jun 2009 00:08:57 GMT


What's the exception?


Sponsored Links

Using Intents

by Georgy » Mon, 08 Jun 2009 00:35:21 GMT

 "Unable to start activity ... no activity found to handle intent
{ action: (has extras) } "

You see I am trying to embed the radar functionality in my map
application. Since I only need to show a radar that has only one
destination point it's not worth writing a whole other radar program.
I was thinking to use intent and take from from another open source
app like this: #svn/trunk/Radar

is this possible?


PS: I didn't copy the source code to my files.


Using Intents

by Mark Murphy » Mon, 08 Jun 2009 01:05:29 GMT


That would suggest that either you do not have the Radar application
installed, or the one you have installed does not match the
AndroidManifest.xml from the open source tree.

If you think you have it installed, did you compile from source, or
install it off the Market, or get it via some other means?

Mark Murphy (a Commons Guy)  | 

Looking for Android opportunties? 


Using Intents

by Georgy » Mon, 08 Jun 2009 01:34:02 GMT

 You are right... for some reason I thought that I could simply point
to an external package without installing it. So now, I got Radar from
the market and pointed to it.

the issue now is that I am getting a black screen..

After looking at LogCat the activity ran without any problems... just
a black screen..



Using Intents

by Georgy » Mon, 08 Jun 2009 23:45:46 GMT

 Oh sorry I was jsut in an area without reception.

thanks guys


Using Intents

by Georgy » Tue, 09 Jun 2009 02:58:26 GMT

 Does anyone have any idea why the distance could be wrong? actually
it's not changing...

if my code is this:

 Intent i = new Intent("");
            i.putExtra("latitude", locode.getLatitudeE6()/1E6);
            i.putExtra("longitude", locode.getLongitudeE6()/1E6);

is that enough for the radar to pickup my own location and compare it
to the one I attached to the putExtra???

If so, why is the distance not changing?


Using Intents

by Georgy » Wed, 10 Jun 2009 21:14:18 GMT

 Solved. As Locode was my GeoPoint:

            Intent i = new Intent
            i.putExtra("latitude",  (float)(locode.getLatitudeE6() /
            i.putExtra("longitude", (float)(locode.getLongitudeE6() /


I still wonder what kind of unit does the intent RADAR takes, I
thought it was Long/latitude.


Other Threads

1. Build-in SMS service - how does it work


I am in the process of creating an app that is similar to the build-in
SMS app.

Here is what the app should work like:
- a background service should call a web service every 5 min.
- if certain conditions are right, a notification should be activated
- when the notification is clicked, the app should open
- when the app is closed the service should continue to run
- when the phone is re-booted the service should be started

I have tried to create a service which works fine until android
decides to kill it.
I have tried to create an alarm manager to trigger the service, but
can not get it to work.
I am using eclipse, osx and magic (1.6)

How should I attack this challenge?



2. Reg: Does android support languages like Telugu and Tamil.

Right now, no. You would also not find such fonts as well on the
phone. You might be hopeful for the future.

Thanks and Regards,
Kumar Bibek


3. Javascript Extension

4. Button inside a TextView???

5. Androiders jaksel

6. Tubedroid error download

7. Wareseeker[dot]com leaching apps from the Market