The Friend Finder - MapActivity using GPS - Part: II / II

Tutorials that use the MapActivity. Many using GPS functionality.

Postby plusminus » Tue Feb 05, 2008 11:33 pm

Hello crayder,

crayder wrote:Wau )))
May be you are cheating? I think you are not a student - you are a teacher! ))))))
Thank you for very good explanation!


I am a student @ 3[sup]rd[/sup] semester :P

But I like the teaching/tutorial stuff... :roll:

[Edit]
I started writing a book about learning android.(Just the introduction yet ^^, because of my exams) Probably will be open/free and downloadable as pdf, already while I'm writing it.
[/Edit]

Best Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby crayder » Sat Feb 09, 2008 8:14 pm

By the way... Are you planning (or may be I missed such examples here) to write smth about service organizing? I mean operations that require time (network interaction) and as a result special architecture. It would be interesting to learn...

P.S. How are your exams? ))
crayder
Freshman
Freshman
 
Posts: 9
Joined: Mon Feb 04, 2008 12:35 am

Postby plusminus » Sun Feb 10, 2008 1:29 pm

Hello crayder,

paller wrote 3(?) articles about Services. You'll find them under "Advanced Tutorials".

Exams were fine up to now, A+ with 2 of 4 already :D

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Friends Dont Show Up

Postby bholaday » Wed Apr 09, 2008 5:40 pm

Hi,

I've adapted the source a bit for m5, but my friends don't show up on the map. I get a real-time view of myself driving around San Fran and a distance between my friends and I, but they dont show up on the map view.

Any idea why?

-Blake
bholaday
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Apr 09, 2008 5:37 pm

problem using the tutorial with M5 sdk

Postby chintan153 » Thu May 08, 2008 3:29 am

the M5 emulator does nto have "Notes" field in it. So i could not use the People.Notes to get the location information for the person. Can you tell me a workaround for this problem?
I created a custom Notes field in the Contacts based on previous post, but I am not getting how to use the Notes field that i created or any other custom field to get the location information.

Thanks in advance
chintan153
Once Poster
Once Poster
 
Posts: 1
Joined: Thu May 08, 2008 2:51 am

Postby buster » Thu May 08, 2008 3:15 pm

oh, just posted the exact same problem in the part I -> http://www.anddev.org/viewtopic.php?p=7829#7829
(can be deleted/merged/moved i guess) :)
buster
Junior Developer
Junior Developer
 
Posts: 23
Joined: Tue Apr 22, 2008 4:14 pm
Location: Berlin, Germany

Top

How to run on my m5 version

Postby zsimplicityz » Tue May 13, 2008 7:24 am

I've error running on my m5 .
Is there anyway I can make it run ?

Apart from that , how do I download a map to android so as to make full use of it on my next project .
Thanks for all the help , really need all of them as I just started learning about android with basic java skills .
zsimplicityz
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Apr 23, 2008 8:19 am

Postby zsimplicityz » Fri May 16, 2008 4:41 am

any help to my previous post ?

need help badly !
zsimplicityz
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Apr 23, 2008 8:19 am

Postby plusminus » Fri May 16, 2008 11:53 am

Providing the actual error would push the solving-process further. :)

Are you talking of caching the map-tiles :?:
The MapView currently does not do that (only during the lifetime of the particular MapView, but not when it is destroyed once).

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby zsimplicityz » Mon May 19, 2008 6:36 am

I tried using another computer to run your application .
However I can't even start as the Andriod Manifest.xml is missing . Download the full source code from e thread but still , sigh :? it doesn't work .
How can i resolve it ?
Ive also paste a screenshot to my prob .

P.s I tried importing by creating a new project , however there's much more error than I expect . :?
So what should I do now guru , didn't want to take things on my own hand for now .
Attachments
untitled_resize.JPG
untitled_resize.JPG (164.23 KiB) Viewed 5668 times
zsimplicityz
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Apr 23, 2008 8:19 am

Postby plusminus » Fri May 23, 2008 9:07 am

Hello zsimplicityz,

I just checked it, the [font=Courier New]AndroidManifest.xml[/font] is included in the project. Maybe try importing the project instead of creating a new one with existing resources.

The last option is to create a clean project and copy all the source-files by hand ;)

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby zsimplicityz » Mon May 26, 2008 3:01 am

under FriendFinderMap.java ,

line 117
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. canvas.drawText(getString(R.string.map_overlay_own_name),
  2.  
  3.                                                         myScreenCoords[0] +9, myScreenCoords[1], paint);
Parsed in 0.035 seconds, using GeSHi 1.0.8.4


and especially from line 246 to 249

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public boolean onCreateOptionsMenu(Menu menu) {
  2.  
  3.                 boolean supRetVal = super.onCreateOptionsMenu(menu);
  4.  
  5.                 menu.add(0, 0, getString(R.string.map_menu_zoom_in));                       // Line   246
  6.  
  7.                 menu.add(0, 1, getString(R.string.map_menu_zoom_out));                 // Line   247
  8.  
  9.                 menu.add(0, 2, getString(R.string.map_menu_toggle_street_satellite));   // Line   248
  10.  
  11.                 menu.add(0, 3, getString(R.string.map_menu_back_to_list));            // Line   249
  12.  
  13.                 return supRetVal;
  14.  
  15.         }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4





need sum help over at here .
zsimplicityz
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Apr 23, 2008 8:19 am

Postby plusminus » Tue May 27, 2008 9:27 pm

Hello zsimplicityz,

the things you mentioned are simple String-Resources which are placed under "[font=Lucida Console]/res/values/mystringfile.xml[/font]"

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <resources>
  4.  
  5.     <string name="main_title">FriendFinder - anddev.org</string>
  6.  
  7.     <string name="main_menu_open_map">Open visual FriendTracker</string>
  8.  
  9.     <string name="main_list_format">$name ($distance km)</string>
  10.  
  11.     <string name="main_list_geo_not_set">not set</string>
  12.  
  13.     <string name="map_title">FriendFinder - anddev.org</string>
  14.  
  15.     <string name="map_menu_zoom_in">Zoom in (Key: I)</string>
  16.  
  17.     <string name="map_menu_zoom_out">Zoom out (Key: O)</string>
  18.  
  19.     <string name="map_menu_back_to_list">Back to list</string>
  20.  
  21.     <string name="map_menu_toggle_street_satellite">Toggle View: Street / Satellite (Key: T)</string>
  22.  
  23.     <string name="map_overlay_own_name">Me</string>
  24.  
  25. </resources>
Parsed in 0.004 seconds, using GeSHi 1.0.8.4


Anyway this file is also included in the file you downloaded :arrow: http://www.anddev.org/the_friend_...t87.html

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby zsimplicityz » Thu May 29, 2008 3:39 am

Under FriendFinder @ line 252 , ive got this error .


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.         if(this.getListAdapter() != null)
  2.  
  3.                         beforeIndex = this.getSelectionRowID();
Parsed in 0.034 seconds, using GeSHi 1.0.8.4



Missing method , didn't want to edit as im afraid i mite screw things up .

pls advice thanks .



and lastly , do i need to connect to a Database or something ?
zsimplicityz
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed Apr 23, 2008 8:19 am

Postby java.padawan » Mon Oct 27, 2008 7:10 pm

venkat wrote:Sorry, my attachment is here...


This is just an apikey problem.

http://www.androidph.com/2008/10/androi ... iewer.html
java.padawan
Freshman
Freshman
 
Posts: 6
Joined: Mon Oct 27, 2008 7:07 pm

Top
PreviousNext

Return to Map Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests