Discussion Forums  >  Uncategorized

Replies: 2    Views: 361

koopakid08
Aspiring developer
Profile
Posts: 74
Reg: Jun 14, 2011
earth
1,540
07/24/11 07:19 PM (14 years ago)

READ PHONE STATE permission.

Would removing the READ PHONE STATE permission in my app make the app laggy and unstable? I removed both GPS and this premission because I thought that there was no need but now it is looking like most of the crashes are caused by this missing permission or is it because I have over 300 pdf in my app?
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
07/24/11 11:43 PM (14 years ago)
Adding content to your app (assuming it is a supported file type) shouldn't make it unstable. Any lag would depend on the size file being accessed by a particular screen as it loads. Also, this lag can increase if the file is being accessed from a remote URL - how strong is the end users internet connection? By remove do you mean you are going in to the source code and deleting sections of code?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/25/11 12:22 AM (14 years ago)
@ koopakid08: I think you're asking about removing this permssion from the AndroidManifest.xml file. You didn't mention Android or iOS or what version you're running ;-) The phone state permission is only used a few times in the code, this means you can safely remove it from the manifest but will also need to adjust the places it's used. I think the only place it's used is in the Device.java class (going from memory here). Do this... a) remove the permission in the manifest. b) Comment out the code in the Device class where it's getting the devices screen size, and other details. Not sure if that's going to help or not but for sure a place to get started.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.