andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

The Friend Finder - MapActivity using GPS - FULL SOURCE

Goto page Previous  1, 2, 3, 4, 5  Next
 
       anddev.org - Android Development Community | Android Tutorials | Index -> Map Tutorials
Author Message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Mon Dec 03, 2007 3:20 pm    Post subject: Reply with quote

Hello venkat,

it is displaying the list of your friends but you seem to have forgotten to set the "geo"-URI.

You go to the actual Map using the Menu-Button on the emulator. It starts the Map-Activity that show you (and your contacts/friends if you properly set the geo-URI to their notes, as shown in the first Part of the Tutorial)
This is the code taklen from above, that opens the MapActivity:
Java:
@Override
     public boolean onCreateOptionsMenu(Menu menu) {
          boolean supRetVal = super.onCreateOptionsMenu(menu);
          menu.add(0, 0, getString(R.string.main_menu_open_map));
          return supRetVal;
     }
     @Override
     public boolean onOptionsItemSelected(Menu.Item item) {
          switch (item.getId()) {
               case 0:
                    startSubActivity(new Intent(this, FriendFinderMap.class), 0);
                    return true;
          }
          return false;
     }


You will at least see yourself on the Map Exclamation

Please tell us if that fixed it Question

Regards,
plusminus

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
venkat
Senior Developer


Joined: 27 Nov 2007
Posts: 152
Location: India

PostPosted: Mon Dec 03, 2007 4:42 pm    Post subject: Reply with quote

dear +-,

now i can see contacts list with distance. if i click any one of the menu , i can see my name and one dot on blank map. map is blank Sad .

can u solve my problem???

regards,
venkat
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Mon Dec 03, 2007 9:13 pm    Post subject: Reply with quote

Hello venkat,

that was a bad double-post Wink Arrow answered here.

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gaojinxuan
Freshman


Joined: 04 Dec 2007
Posts: 5

PostPosted: Tue Dec 04, 2007 3:07 am    Post subject: About GPS Reply with quote

Hi.

Each phone can get it's location by it's own GPS device.
However, how can phone A get GPS position of other phone, like B, C... and track them?
Thanks a lot!
Throught Short Message?
Back to top
View user's profile Send private message
venkat
Senior Developer


Joined: 27 Nov 2007
Posts: 152
Location: India

PostPosted: Tue Dec 04, 2007 6:40 am    Post subject: Reply with quote

hi +/-, sorry for my bad post Wink

i can see only Blank Map, On Blank Map only i can see One "dot " with name "ME" and my listed name "Venkat".
when i press key 't' it's tagging the view, still it's showing blank only.

i try to run "maps" application which is give along with emulator, that is also showing "Blank map" only.

Can u tell me how to enable map on the emulaor??? Question

I have attached my screen shot of friend Finder application. let's take look.

Thanks ,
regards,
venkat



FriendFinder.png
 Description:
my Screen shot of FriendFinder Application
 Filesize:  8.63 KB
 Viewed:  3107 Time(s)

FriendFinder.png


Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Tue Dec 04, 2007 9:51 am    Post subject: Reply with quote

Hey guys,

@gaojinxuan:
Yes, it is possible with XMPP (basically nothing really different from a instant-messaging-conversation).
I'll make a tutorial on that if there is some free time between the million other things to do here Wink

@venkat:
it works, I can see "Me" and "venkat" Exclamation but you seem to have not correct connection to the internet out of the emulator Exclamation

Have a look at the proxy-issue here Arrow here

Zooming in/out works, right Question
Having zoomed in, you will see the "Me" walkign around on the map, don't you Question

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
venkat
Senior Developer


Joined: 27 Nov 2007
Posts: 152
Location: India

PostPosted: Tue Dec 04, 2007 11:41 am    Post subject: Reply with quote

sorry for the inconvenience PlusMinus. I know, you will tied up with many works. but badly i struck with map application, i can't move ahead without displaying map. i would appreciate you if you help regarding this map issue. Smile . While zoomed in, i can see the "Me" walkign around on the map(Blank map).

i can open web pages using browser application. but while opening the Web pages , application will ask authentication. anyway , i can open the web pages.
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Tue Dec 04, 2007 6:33 pm    Post subject: Reply with quote

Hello venkat,

can you explain what you mean with: "application will ask authentication" Question

Sorry but it is always hard to help on an issue I never had myself Crying or Very sad

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
venkat
Senior Developer


Joined: 27 Nov 2007
Posts: 152
Location: India

PostPosted: Wed Dec 05, 2007 6:37 am    Post subject: Reply with quote

Hi +-,
i am behind proxy server with authentication. i set the http_proxy setting and when ever i tried to open my browser i will ask me to enter user name and password. i have attached my screen shot of authentication.
Can u just tell me +-, it's necessary to set "xmpp settings" for opening map application???. if it so, can u tell me how to do it??? Smile
Thanks in advance,

Regards,
venkat.



proxy password.png
 Description:
Authentication.
 Filesize:  28.15 KB
 Viewed:  3072 Time(s)

proxy password.png


Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Wed Dec 05, 2007 10:51 pm    Post subject: Reply with quote

Hello venkat,

unfortunately i have the luck not to have problems with being behind a proxy Sad

But I will keep my eyes open of course Exclamation

Best Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
quauhtlimtz
Junior Developer


Joined: 26 Nov 2007
Posts: 13
Location: Mexico

PostPosted: Thu Dec 06, 2007 6:33 pm    Post subject: Reply with quote

venkat, make sure you typed the latitude and longitude correctly on your contacts list notes section.
Back to top
View user's profile Send private message MSN Messenger
Ramakrishna
Freshman


Joined: 10 Dec 2007
Posts: 2

PostPosted: Mon Dec 10, 2007 12:33 pm    Post subject: Reply with quote

Hi,

I am also facing similar problem I can only see Blank Map with a "dot" at the center. I am also behind the firewall and set the proxy as follows:

Code:
adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "\"INSERT INTO system VALUES(99,'http_proxy','[host]:[port]');\""


and

Code:
adb shell sqlite3 /data/data/com.google.android.browser/databases/browser.db "\"INSERT INTO passwords VALUES(99,'host','username','password');\""


I am able to browse the net through emulator but could not see the map for friend finder application.

I am attaching the error here.

Please help.

Thanks in advance
Ramakrishna

quauhtlimtz wrote:
venkat, make sure you typed the latitude and longitude correctly on your contacts list notes section.



I had verified. both latitude and longitude are correct in notes section of my contacts list..
List showing the distance is getting refreshed but When it comes to Maps nothing is shown except "dot"'s as attached. Sad



Error.PNG
 Description:
 Filesize:  6.59 KB
 Viewed:  2944 Time(s)

Error.PNG


Back to top
View user's profile Send private message
rmeph
Senior Developer


Joined: 10 Dec 2007
Posts: 109
Location: India

PostPosted: Thu Dec 13, 2007 11:18 am    Post subject: Reply with quote

i run Friend Finder application on emulator....i have problem "org.anddev.android.friendfinder unable to start activity ComponentInfo {org.anddev.android.friendfinder/org.anddev.android.friendfinder.FriendFinder}:java.lang.IndexOutofBoundsException"

How to solved it???? Rolling Eyes
Back to top
View user's profile Send private message
plusminus
Site Admin


Joined: 14 Nov 2007
Posts: 2102
Location: Germany

PostPosted: Thu Dec 13, 2007 1:53 pm    Post subject: Reply with quote

Hello guys,

@ Ramakrishna:
Some say, that the Maps-Application is only possible by port 1080....
Have a look at the following posts:
Arrow http://www.anddev.org/viewtopic.php?p=599#599
Arrow http://www.anddev.org/viewtopic.php?p=797#797

@ rmeph:
Please use the debugger, to locate the specific line Exclamation As NullPointerExceptions can occur on many of the lines Wink

Regards,
plusminus

_________________

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
quauhtlimtz
Junior Developer


Joined: 26 Nov 2007
Posts: 13
Location: Mexico

PostPosted: Thu Dec 13, 2007 8:31 pm    Post subject: Reply with quote

venkat, be sure you are not using your wireless connection. Android only support wired internet connections.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Map Tutorials All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.