TelephonyManager

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

TelephonyManager

Postby bobcat » Sun May 10, 2009 7:29 pm

hi i have a class that extends mapActivity and i use the map of google but i want make this:

TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
location = (GsmCellLocation) tm.getCellLocation();

when i use the tm i have a exception how can resolve?where is the problem?
bobcat
Freshman
Freshman
 
Posts: 6
Joined: Wed Apr 22, 2009 6:45 pm

Top

Postby padde » Sun May 10, 2009 8:38 pm

i guess you need the right permissions to touch telephony manager and cell id stuff
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Postby bobcat » Mon May 11, 2009 11:07 am

Yes is exactly i have wrong this line :
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</application>
the correctly line is :
</application>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

thank you very much!!
bobcat
Freshman
Freshman
 
Posts: 6
Joined: Wed Apr 22, 2009 6:45 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests