| Author |
Message |
theseum Once Poster
Joined: 23 Feb 2008 Posts: 1
|
Posted: Sat Feb 23, 2008 12:36 am Post subject: |
|
|
Why is the custom intent reciever / filter in the java sources instead of in manifest.xml? I'm not sure I quite understand how manifest.xml works...
Thanks!
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
Posted: Sat Feb 23, 2008 12:00 pm Post subject: |
|
|
Hello theseum,
it is placed inside the java-code because we are listening for "internal events" only.
One usually creates an IntentReceiver-Class and places it to the AndroidManifest.xml, if we need to listen for anything else than our own app.
Regards,
plusminus
_________________
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
crayder Freshman
Joined: 04 Feb 2008 Posts: 9
|
Posted: Sat Feb 23, 2008 10:32 pm Post subject: |
|
|
Hey, guys!
I have one question... according the working of this application on the real devices. Don't you think that attempt to retrieve device location can last much time (gps turning on, satellite communication and so on..). This can lead to the situation that GUI process will be blocked and that user will receive message with prompt to kill this process. What do you think about this?
|
|
| Back to top |
|
 |
zoe11 Freshman
Joined: 25 Feb 2008 Posts: 5 Location: Indonesia
|
Posted: Mon Feb 25, 2008 7:33 am Post subject: can't run friendfinder with m5 for windows xp |
|
|
plusminus please help..!!!i can't run friendfinder program with new android sdk for windows xp, i use eclipse.
R.java won't auto update and there is many error
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
Posted: Mon Feb 25, 2008 9:47 am Post subject: |
|
|
Hello zoe,
what exactly is your problem (are you sure it is just updating?).
I know, a non updating R.java can freak one out!
Some succeed in turning off "Build Automatically" and Build manually.
Regards,
plusminus
_________________
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
zoe11 Freshman
Joined: 25 Feb 2008 Posts: 5 Location: Indonesia
|
Posted: Mon Feb 25, 2008 5:03 pm Post subject: already solve the problem |
|
|
many thanks for your hint plusminus!!now i alrweady solve the R.java problem and the error on xml file
plusminus i need your help on how to push my nmea into android emulator??so i can have my own mock-providers in jakarta coz SF is to far.
i already have my $GPRMC route but i'm clueless on how to make it work in android emulator so i can change the ME location in friendfinder app
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
Posted: Tue Feb 26, 2008 7:55 pm Post subject: |
|
|
Hello zoe,
Its probably not more than exchanging the "nmea"-file on the emulator.
Regards,
plusminus
_________________
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
kleach Freshman
Joined: 16 Jan 2008 Posts: 3
|
Posted: Wed Feb 27, 2008 12:54 am Post subject: |
|
|
I get an error in AndroidManifest.xml in M5? on this line...
| XML: | <activity class=".FriendFinder" android:label="@string/main_title"> |
Error is: Tag <activity> missing required attribute name.
I used the .zip file and added
| XML: | <uses-permission android:name="android.permission.ACCESS_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_GPS"/> |
to the file
I don't get it...
suggestions?
-Ken
|
|
| Back to top |
|
 |
gvkreddyvamsi Developer
Joined: 21 Jan 2008 Posts: 43 Location: INDIA
|
Posted: Wed Feb 27, 2008 6:02 am Post subject: Security Exception |
|
|
HI,
I have loaded friend finder application.
Rectified errors in it.
But i got security Exception....
These permissions already added in manifest file..
| XML: |
<uses-permission id="android.permission.READ_CONTACTS"/>
<uses-permission id="android.permission.CALL_PHONE"/> |
Screen shot is loaded
by
vamsi
| Description: |
|
| Filesize: |
46.58 KB |
| Viewed: |
1500 Time(s) |

|
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
|
| Back to top |
|
 |
Ramakrishna Freshman
Joined: 10 Dec 2007 Posts: 2
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
Posted: Tue Mar 04, 2008 7:14 pm Post subject: |
|
|
Hello Ramakrishna,
it would be helpful, if you debug and post the line, where the exception is thrown.
Regards,
plusminus
_________________
| Android Development Community / Tutorials |
|
| Back to top |
|
 |
aaronsu Once Poster

Joined: 06 Mar 2008 Posts: 1 Location: Taiwan
|
|
| Back to top |
|
 |
plusminus Site Admin

Joined: 14 Nov 2007 Posts: 2102 Location: Germany
|
|
| Back to top |
|
 |
pavanch Freshman
Joined: 07 Mar 2008 Posts: 2
|
Posted: Fri Mar 07, 2008 7:44 pm Post subject: |
|
|
hello
I am running on the new emulator/sdk. Everything works from the code you pasted above with the
changes suggested in the comments section. But it still doesnt show me the distance in my display.
It says, 'distance not set'. I think i know the reason partly..as in the new emulator and GUI it doesnt give
me an option to add notes directly for a contact or more clearly there is no field called 'Notes' for
a contact.
To add something like a 'Notes' field, i need to add a new label and name it to 'Notes'.
So there is not direct URI/(constant like People.NAME etc) from which i can extract the geo string from a contact.
Have you played around with the new emulator and tried out this app?.
Like i said, i am only guessing..so if there is something i missed here, do let me know.
Thanks
Pavan
| Description: |
| New GUI for adding a contact on new emulator. I didnt find a notes field here |
|
| Filesize: |
36.26 KB |
| Viewed: |
1271 Time(s) |

|
| Description: |
| This is where i created a custom label called 'Notes' and added the geo string |
|
| Filesize: |
34.35 KB |
| Viewed: |
1271 Time(s) |

|
|
|
| Back to top |
|
 |
|