Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Edit Label of a GPS-Point

Edit Label of a GPS-Point

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Edit Label of a GPS-Point

Postby bavarol » Tue Jan 29, 2008 1:42 pm

How can I edit the Label of a point?
I.e. In FriendFinder the Label calls "Me" and it's defined in a XML, how can I edit/change this value dinamicly?

Thx
bavarol
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Dec 10, 2007 9:19 pm

Top

Postby plusminus » Tue Jan 29, 2008 5:12 pm

Hello bavarol,

search for the line in FriendFinderMap.java, where map_overlay_own_name is used and replace it with any 'dynamic function' you want to.

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 bavarol » Wed Jan 30, 2008 9:44 am

plusminus wrote:Hello bavarol,

search for the line in FriendFinderMap.java, where map_overlay_own_name is used and replace it with any 'dynamic function' you want to.

Regards,
plusminus

Thx PlusMinus for all

What do you suggest, if you want to change/edit this value, a flotant Dialog(Dialog with Map on background) or a new Screen(View)(->No Map until we click a button)?

What would it be such code?

Thx
bavarol
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Mon Dec 10, 2007 9:19 pm

Postby plusminus » Wed Jan 30, 2008 11:49 am

Hello bavarol,

Just to change the name, I wold prefer a Dialog-box, what is principally a Activity with half-transparent background done like this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. // Called in the OnCreate() of the Sub-Activity
  2. this.setTheme(android.R.style.Theme_Dialog);
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


Would finally look similar to this:
Image


For passing/receiving data to SubActivities have a look at this tutorial: :src: viewtopic.php?t=305

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

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests