You've defined a fragment of your own class type
"com.akron.maps.Bldg_Navgtion_frgmnt" (horrible name for a class, by the
way), but in your code you're trying to cast it to a SupportMapFragment.

If you want a SupportMapFragment, then define it as such in the layout.

If you want your custom class, cast it to the correct type in your code.


On Sat, Jun 7, 2014 at 9:49 PM, prudhvi p n v <[email protected]>
wrote:

>
> ​
>
>
> On Sat, Jun 7, 2014 at 10:44 PM, prudhvi p n v <[email protected]>
> wrote:
>
>>
>> ​
>>
>>
>> On Sat, Jun 7, 2014 at 10:18 PM, TreKing <[email protected]> wrote:
>>
>>>
>>> On Sat, Jun 7, 2014 at 8:49 PM, prudhvi p n v <[email protected]
>>> > wrote:
>>>
>>>> I am using SupportMapFragment instead  of  MapFragment since I am
>>>> importing android.support.v4.app.*
>>>>
>>>>
>>>>
>>>> googleMap = ((SupportMapFragment)getFragmentManager().findFragmentById(
>>>> R.id.map)).getMap();
>>>>
>>>
>>> That is not what I asked. You are attempting to find the map fragment by
>>> the id R.id.map.
>>> Where have you defined this this map fragment? In a layout? In code?
>>> Show that.
>>>
>>>
>>> -------------------------------------------------------------------------------------------------
>>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to