Map not Displaying, Just tiles only

by MrChaz » Tue, 14 Apr 2009 02:00:04 GMT


Sponsored Links
 Have you added the INTERNET permission?



--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by Charlie Collins » Tue, 14 Apr 2009 02:04:11 GMT


 Also make sure you have a maps key, the error message you are getting
look unrelated, but just check that to make sure.

 http://code.google.com/android/maps-api-signup.html 



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Map not Displaying, Just tiles only

by Nithin » Tue, 14 Apr 2009 03:21:58 GMT


 i did both these already...

my i got map API and put all permissions in manifest

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
 <uses-library android:name="com.google.android.maps" />

still its showing his error, what may be the reason..

Thanks
Nithin

On Apr 13, 11:04pm, Charlie Collins <charlie.coll...@gmail.com>



--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by MrChaz » Tue, 14 Apr 2009 04:34:20 GMT


 You could try adding the permission for course location but to be
honest it doesn't work on my emulator so once I got it working on an
actual device I just left it.





--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by Nithin » Tue, 14 Apr 2009 09:06:49 GMT


 hanks MrChaz for your reply.

So this issue is not for me alone. Earlier I put "Coarse location"
only, and is not working, so I just changed to "Fine location", still
its not working. I am trying this for some time. Now, I will put both
and will try, want to see any difference is there.

Thanks
Nithin

On Apr 14, 1:34am, MrChaz <mrchazmob...@googlemail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by Charlie Collins » Tue, 14 Apr 2009 19:23:40 GMT


  can use maps fine in the emulator.

You have the perms right, and you are pulling in the maps application,
but you didn't say whether or not you have your key, and are using it
in the layout file. You do have the key though right? And in your
MapView layout file you have android:apiKey with that value, right?

"In order to display Google Maps data in a MapView, you must register
with the Google Maps service and obtain a Maps API Key. For
information about how to get a Maps API Key, see Obtaining a Maps API
Key.
Once you have a Maps API Key, you need to reference it from a special
attribute -- android:apiKey -- in the MapView element in the XML
layout. If you are instantiating a MapView directly from code, you
should pass the Maps API Key in the MapView constructor. "


On Apr 13, 9:06pm, Nithin <nithin.war...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by Nithin » Tue, 14 Apr 2009 19:40:48 GMT


 hanks a lot Charlie Collins,

What is the mistake I did is, I already have the MAP API key, but in
my XML, some letters of the key are missing, After you said, I again
checked and found out that. Now perfectly alright.

Thanks
Nithin

On Apr 14, 4:23pm, Charlie Collins <charlie.coll...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Map not Displaying, Just tiles only

by patrick » Wed, 15 Apr 2009 02:06:09 GMT


 Did you add the apiKey in your mapview?








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. some issue about SystemProperties.set(String key , String value)

Thanks for Mark Murphy response

for My development is not base on SDK  but all android  source code ,so I
can use this interface .

2009/8/30 Mark Murphy <mmur...@commonsware.com>




--~--~---------~--~----~------------~-------~--~----~

2. how to read values from the server using Http GET method

hi here i am sending the simple post method code

which connect to the server and read response

you can use http get in place of post method

may be this will help you

code example:

private void connectandgetresponse(final String arg_emailsStr)
{
Runnable ssr = new Runnable()
{
public void run()
{
String servResponse = "";

 // to send arguments if required
List <NameValuePair> nvps = new ArrayList <NameValuePair>();

        nvps.add(new BasicNameValuePair("arg1", Uri.encode(arg1value)));
        nvps.add(new BasicNameValuePair("arg2", Uri.encode(arg2value)));
        nvps.add(new BasicNameValuePair("arg3", Uri.encode(arg3Value))); ///
as many as wanted.....


        // connect to server and get response from server ....
     DefaultHttpClient httpclient = new DefaultHttpClient();
     HttpPost httpost   = new   HttpPost("URL to connect");
     try
        {
httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
HttpResponse response = httpclient.execute(httpost);
HttpEntity my_entity = response.getEntity();
 if(null != my_entity)
{
InputStream input_Stream = my_entity.getContent();
int len = (int)my_entity.getContentLength();
if(len > 0)
{
Log.i("Length of content..","["+len+"]");
byte[] byteresp = new byte[len];
 int st_pos =  0;
int req_sz = len;
int bytes_toRead = len;
int read_cnt = 0;
while(read_cnt < bytes_toRead)
{
int read_now = 0;
if(null != input_Stream)
{
read_now = input_Stream.read(byteresp,st_pos,req_sz);
}
if(-1 == read_now)
{
break;
}
read_cnt += read_now;
st_pos   += read_now;
req_sz = bytes_toRead - read_cnt;
}
servResponse= new String(byteresp);
Log.i(getClass().getSimpleName(),"Response = ["+servResponse+"]");
}
else
{
Log.i(getClass().getSimpleName(), "No response.....");
}
}
else
{
Log.i(getClass().getSimpleName()," my_entity = NULL ");
}
}
        catch (Exception e2)
{
         e2.printStackTrace();
}

  }
};
new Thread(ssr).start();
}






-- 
Dilli Rao. M
Software Developer
www.arijasoft.com
- a pioneer in Mobile App Development

--~--~---------~--~----~------------~-------~--~----~

3. A couple of questions ADC2

4. Urgent - Setting timed expiry for application to be submitted to adc2

5. Urgent - Setting timed expiry for application to be submitted to adc2

6. glGenTextures returning 0

7. cupcake Vs donut Vs eclairs