[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-04-02 Thread Guglielmo Buzzulini
i think because you are using a wrog name  

bye 



Il giorno mercoledì 27 marzo 2013 08:33:10 UTC+1, Pratama Nur Wijaya ha 
scritto:

 Hi,,, 

 I got some error when i am running Google maps api v2..

 i have tested my application on 3 device.. 
 but i got null pointer on setOnInfoWindowClickListener in my tablet.. not 
 on my phone... running well 

 my tablet is google nexus 7 running android 4.0
 my phone is samsung galaxy ace.. S5830,, 

 so what wrong with google api v2..?? anyone can help me..?? please 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Jonathan S
GoogleMap  is still NULL after setupMapIfNeeded().  I hope you able to 
improve your coding ability. 

On Friday, March 29, 2013 12:27:45 AM UTC-4, Pratama Nur Wijaya wrote:


 https://lh3.googleusercontent.com/-EAF7YkcXBpg/UVUYLGGlBkI/Af0/CaAjJY8l4X8/s1600/Untitled.png
 here are my code  http://pastebin.com/df972ei6

 and screenshot logcat 



 On Thursday, 28 March 2013 00:46:32 UTC+7, RichardC wrote:

 Post the code with the problem and the LogCat when the error happens - 
 then we might have a chance at helping you.

 On Wednesday, March 27, 2013 7:33:10 AM UTC, Pratama Nur Wijaya wrote:

 Hi,,, 

 I got some error when i am running Google maps api v2..

 i have tested my application on 3 device.. 
 but i got null pointer on setOnInfoWindowClickListener in my tablet.. 
 not on my phone... running well 

 my tablet is google nexus 7 running android 4.0
 my phone is samsung galaxy ace.. S5830,, 

 so what wrong with google api v2..?? anyone can help me..?? please 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
if my GoogleMap still null.. why my program running in my phone.. and get 
force close on my tablet..

can u give me some advice 

On Friday, 29 March 2013 13:11:30 UTC+7, Jonathan S wrote:

 GoogleMap  is still NULL after setupMapIfNeeded().  I hope you able to 
 improve your coding ability. 

 On Friday, March 29, 2013 12:27:45 AM UTC-4, Pratama Nur Wijaya wrote:


 https://lh3.googleusercontent.com/-EAF7YkcXBpg/UVUYLGGlBkI/Af0/CaAjJY8l4X8/s1600/Untitled.png
 here are my code  http://pastebin.com/df972ei6

 and screenshot logcat 



 On Thursday, 28 March 2013 00:46:32 UTC+7, RichardC wrote:

 Post the code with the problem and the LogCat when the error happens - 
 then we might have a chance at helping you.

 On Wednesday, March 27, 2013 7:33:10 AM UTC, Pratama Nur Wijaya wrote:

 Hi,,, 

 I got some error when i am running Google maps api v2..

 i have tested my application on 3 device.. 
 but i got null pointer on setOnInfoWindowClickListener in my tablet.. 
 not on my phone... running well 

 my tablet is google nexus 7 running android 4.0
 my phone is samsung galaxy ace.. S5830,, 

 so what wrong with google api v2..?? anyone can help me..?? please 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread skink


Pratama Nur Wijaya wrote:
 if my GoogleMap still null.. why my program running in my phone.. and get
 force close on my tablet..

 can u give me some advice



see 
http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()

it reads:

Returns
the GoogleMap. Null if the view of the fragment is not yet ready. This
can happen
if the fragment lifecyle have not gone through
onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also
happen if Google Play services is not
available.

pskink

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
thanks for your advice.. 

On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:



 Pratama Nur Wijaya wrote: 
  if my GoogleMap still null.. why my program running in my phone.. and 
 get 
  force close on my tablet.. 
  
  can u give me some advice 
  
  

 see 
 http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
  

 it reads: 

 Returns 
 the GoogleMap. Null if the view of the fragment is not yet ready. This 
 can happen 
 if the fragment lifecyle have not gone through 
 onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
 happen if Google Play services is not 
 available. 

 pskink 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya


https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
i have change my code become like these one..

http://pastebin.com/FRrpeDAM

but i still got nullpointer..

map = mapFragment.getMap();

i'm tested my apps on Emulator api level 17


On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:



 Pratama Nur Wijaya wrote: 
  if my GoogleMap still null.. why my program running in my phone.. and 
 get 
  force close on my tablet.. 
  
  can u give me some advice 
  
  

 see 
 http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
  

 it reads: 

 Returns 
 the GoogleMap. Null if the view of the fragment is not yet ready. This 
 can happen 
 if the fragment lifecyle have not gone through 
 onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
 happen if Google Play services is not 
 available. 

 pskink 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread skink


Pratama Nur Wijaya wrote:
 https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
 i have change my code become like these one..

 http://pastebin.com/FRrpeDAM

 but i still got nullpointer..

 map = mapFragment.getMap();

 i'm tested my apps on Emulator api level 17




post your activity_
bank_location.xml layout file

pskink

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
here http://pastebin.com/DpWSTnr9

On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote:



 Pratama Nur Wijaya wrote: 
  
 https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
  

  i have change my code become like these one.. 
  
  http://pastebin.com/FRrpeDAM 
  
  but i still got nullpointer.. 
  
  map = mapFragment.getMap(); 
  
  i'm tested my apps on Emulator api level 17 
  
  
  

 post your activity_ 
 bank_location.xml layout file 

 pskink 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Jonathan S
Looks like Google Play services is not available in your tablet. 

On Friday, March 29, 2013 11:11:49 AM UTC-4, Pratama Nur Wijaya wrote:


 https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
 i have change my code become like these one..

 http://pastebin.com/FRrpeDAM

 but i still got nullpointer..

 map = mapFragment.getMap();

 i'm tested my apps on Emulator api level 17


 On Friday, 29 March 2013 13:49:56 UTC+7, skink wrote:



 Pratama Nur Wijaya wrote: 
  if my GoogleMap still null.. why my program running in my phone.. and 
 get 
  force close on my tablet.. 
  
  can u give me some advice 
  
  

 see 
 http://developer.android.com/reference/com/google/android/gms/maps/SupportMapFragment.html#getMap()
  

 it reads: 

 Returns 
 the GoogleMap. Null if the view of the fragment is not yet ready. This 
 can happen 
 if the fragment lifecyle have not gone through 
 onCreateView(LayoutInflater, ViewGroup, Bundle) yet. This can also 
 happen if Google Play services is not 
 available. 

 pskink 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread skink


Pratama Nur Wijaya wrote:
 here http://pastebin.com/DpWSTnr9

 On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote:
 
 
 
  Pratama Nur Wijaya wrote:
   
  https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
 
   i have change my code become like these one..
  
   http://pastebin.com/FRrpeDAM
  
   but i still got nullpointer..
  
   map = mapFragment.getMap();
  
   i'm tested my apps on Emulator api level 17
  
  
  
 
  post your activity_
  bank_location.xml layout file
 
  pskink
 

did you tryto call this

http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context)

pskink

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-29 Thread Pratama Nur Wijaya
thanks for everyone here.. ^_^

now its work on my tablet..
i have change my code like these  http://pastebin.com/hS0tKLEY

i think i have got some logic error on these..

if (map == null)
{
Utils.TRACE(API  + Build.VERSION.SDK_INT);
FragmentManager fragmentManager = getSupportFragmentManager();
SupportMapFragment supportMapFragment = (SupportMapFragment) 
fragmentManager.findFragmentById(R.id.map);
map = supportMapFragment.getMap();

if (map != null)
{
setupMap();
}
}

On Friday, 29 March 2013 23:30:55 UTC+7, skink wrote:



 Pratama Nur Wijaya wrote: 
  here http://pastebin.com/DpWSTnr9 
  
  On Friday, 29 March 2013 22:35:38 UTC+7, skink wrote: 
   
   
   
   Pratama Nur Wijaya wrote: 
 
   
 https://lh5.googleusercontent.com/-o4SyZfDxWvI/UVWvKvkpfLI/AgE/bj65FJ_evaY/s1600/Image+1.png
  

   
i have change my code become like these one.. 

http://pastebin.com/FRrpeDAM 

but i still got nullpointer.. 

map = mapFragment.getMap(); 

i'm tested my apps on Emulator api level 17 



   
   post your activity_ 
   bank_location.xml layout file 
   
   pskink 
   

 did you tryto call this 


 http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context)
  

 pskink 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-28 Thread Pratama Nur Wijaya


https://lh3.googleusercontent.com/-EAF7YkcXBpg/UVUYLGGlBkI/Af0/CaAjJY8l4X8/s1600/Untitled.png
here are my code  http://pastebin.com/df972ei6

and screenshot logcat 



On Thursday, 28 March 2013 00:46:32 UTC+7, RichardC wrote:

 Post the code with the problem and the LogCat when the error happens - 
 then we might have a chance at helping you.

 On Wednesday, March 27, 2013 7:33:10 AM UTC, Pratama Nur Wijaya wrote:

 Hi,,, 

 I got some error when i am running Google maps api v2..

 i have tested my application on 3 device.. 
 but i got null pointer on setOnInfoWindowClickListener in my tablet.. not 
 on my phone... running well 

 my tablet is google nexus 7 running android 4.0
 my phone is samsung galaxy ace.. S5830,, 

 so what wrong with google api v2..?? anyone can help me..?? please 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: null pointer on setOnInfoWindowClickListener

2013-03-27 Thread RichardC
Post the code with the problem and the LogCat when the error happens - then 
we might have a chance at helping you.

On Wednesday, March 27, 2013 7:33:10 AM UTC, Pratama Nur Wijaya wrote:

 Hi,,, 

 I got some error when i am running Google maps api v2..

 i have tested my application on 3 device.. 
 but i got null pointer on setOnInfoWindowClickListener in my tablet.. not 
 on my phone... running well 

 my tablet is google nexus 7 running android 4.0
 my phone is samsung galaxy ace.. S5830,, 

 so what wrong with google api v2..?? anyone can help me..?? please 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.