Mobile GMaps Home Page
 FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups   RegisterRegister  
 ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in 

public interface Const

 
Post new topic   Reply to topic   printer-friendly view    MGMaps Forum Index -> Developer Forum
View previous topic :: View next topic  
Author Message
m1k0
Junior


Joined: 03 Jul 2008
Posts: 7

Phone Type: Unknown

PostPosted: Sat Apr 04, 2009 6:40 pm    Post subject: public interface Const Reply with quote

WOW, I found interface without any defined method
Code:
public interface Const

There are only static constans and one Array of String
Code:
  ...
public static final String MGMAPS_C2C_URL = "http://www.mgmaps.com/c2c.php";
  public static final String[] C2C_BASE_URL = {
    "http://www.connect2car.com/web/tracking",
    "http://www.connect2cardev.com/web/tracking"
  };
 
  // common colors
  public static final int colorWhite = 0xFFFFFF;
...


Unfortunetly, we have a problem with C2C_BASE_URL witch are not initialized, but code trying to get value from Array - Motorola E1000 and NetBeans under debuging.

Const should be a class - not interface. This is my opinion
Why you using interface for this?



Z23.png
 Description:
screenshot from NetBeans
 Filesize:  26.04 KB
 Viewed:  7693 Time(s)

Z23.png


Back to top
View user's profile Send private message
m1k0
Junior


Joined: 03 Jul 2008
Posts: 7

Phone Type: Unknown

PostPosted: Sat Apr 04, 2009 7:25 pm    Post subject: Reply with quote

ugly, but working code
Code:
Downloader.removeCookies(Tools.extractDomain("http://www.connect2car.com/web/tracking"));
Back to top
View user's profile Send private message
Cristian Streng
Founder


Joined: 28 Oct 2005
Posts: 4585

Phone Type: (many)

PostPosted: Sat Apr 11, 2009 7:12 am    Post subject: Re: public interface Const Reply with quote

m1k0 wrote:
WOW, I found interface without any defined method
Code:
public interface Const

Yeah, this was defined to have other classes implement it (and gain access to its constants without specifying the class).

m1k0 wrote:
There are only static constans and one Array of String
Code:
  ...
public static final String MGMAPS_C2C_URL = "http://www.mgmaps.com/c2c.php";
  public static final String[] C2C_BASE_URL = {
    "http://www.connect2car.com/web/tracking",
    "http://www.connect2cardev.com/web/tracking"
  };
 
  // common colors
  public static final int colorWhite = 0xFFFFFF;
...


Unfortunetly, we have a problem with C2C_BASE_URL witch are not initialized, but code trying to get value from Array - Motorola E1000 and NetBeans under debuging.

Connect2Car was supported but will be removed in the future... it was designed to work with products at connect2car.com, but there are too few users to justify for keeping it.
Back to top
View user's profile Send private message Visit poster's website
Cristian Streng
Founder


Joined: 28 Oct 2005
Posts: 4585

Phone Type: (many)

PostPosted: Sat Apr 11, 2009 7:29 am    Post subject: Re: public interface Const Reply with quote

m1k0 wrote:
Unfortunetly, we have a problem with C2C_BASE_URL witch are not initialized, but code trying to get value from Array - Motorola E1000 and NetBeans under debuging.

I understand what you're saying here, it would probably be better to use a class instead of an interface, and we already have a class for that (Props)... Anyway your point was that Motorola has a bug and it doesn't initialize the array of strings in the interface, right?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MGMaps Forum Index -> Developer Forum All times are GMT
Page 1 of 1

 
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
MGMaps topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group