Friday, March 29, 2013

[android-developers] Re: null pointer on setOnInfoWindowClickListener

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/AAAAAAAAAgE/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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment