Aug 3, 2011 Replies: 42 How to set Airplane mode ON e OFF? I see this: anddev.org • View topic - How to set airplane mode on/off How I can traduce it, with B4A? Click to expand...
How to set Airplane mode ON e OFF? I see this: anddev.org • View topic - How to set airplane mode on/off How I can traduce it, with B4A?
D Deleted member 103 Guest Jul 18, 2012 #21 how can you catch the sense version? Then I could disable the function in my app.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2012 #22 I'm sorry but I don't know.
Informatix Expert Licensed User Longtime User Jan 27, 2013 #23 Since JellyBean 4.2, it is no longer possible to toggle the Airplane mode. I love Android more and more Some day, they will decide for you which app you must launch...
Since JellyBean 4.2, it is no longer possible to toggle the Airplane mode. I love Android more and more Some day, they will decide for you which app you must launch...
B Bardill Member Licensed User Longtime User May 31, 2013 #24 Airplane Mode on off Since JellyBean 4.2 We can only Read the AirplaneMode Here ist the Link Android 4.2 APIs | Android Developers We need Edit the manifest <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> We can Write with this // To Write Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); // To Read String result = Settings.Global.getString(getContentResolver(), Settings.Global.AIRPLANE_MODE_ON); My Question. How ist he Code for Write (i am a Beginner) Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); can i have some help?
Airplane Mode on off Since JellyBean 4.2 We can only Read the AirplaneMode Here ist the Link Android 4.2 APIs | Android Developers We need Edit the manifest <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> We can Write with this // To Write Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); // To Read String result = Settings.Global.getString(getContentResolver(), Settings.Global.AIRPLANE_MODE_ON); My Question. How ist he Code for Write (i am a Beginner) Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); can i have some help?
Informatix Expert Licensed User Longtime User May 31, 2013 #25 If I resume your post: Bardill said: We can only Read the AirplaneMode How ist he Code for Write (i am a Beginner) Click to expand... My answer is simple: if we can only read, then we can't write. Or your question is not clear at all.
If I resume your post: Bardill said: We can only Read the AirplaneMode How ist he Code for Write (i am a Beginner) Click to expand... My answer is simple: if we can only read, then we can't write. Or your question is not clear at all.
B Bardill Member Licensed User Longtime User May 31, 2013 #26 I think we can write over this Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1");
I think we can write over this Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1");
Informatix Expert Licensed User Longtime User May 31, 2013 #27 Bardill said: I think we can write over this Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); Click to expand... Excuse me but I don't know whether you have read your own post. If you follow the link that you provided, it is said explicitely that you cannot do this since JB 4.2. Airplane mode is now a secure setting.
Bardill said: I think we can write over this Settings.Global.putString(getContentResolver(), "airplane_mode_on", "1"); Click to expand... Excuse me but I don't know whether you have read your own post. If you follow the link that you provided, it is said explicitely that you cannot do this since JB 4.2. Airplane mode is now a secure setting.
C chrjak Active Member Licensed User Longtime User May 3, 2014 #28 I am getting a access denied error- but i have this manifest edited!
Erel B4X founder Staff member Licensed User Longtime User May 4, 2014 #29 How did you add these permissions?
C chrjak Active Member Licensed User Longtime User May 4, 2014 #30 I added it under the first orange(or red) line edit: why permissions? isn't it only 1?
Erel B4X founder Staff member Licensed User Longtime User May 4, 2014 #31 It should be: Code: AddPermission(android.permission.WRITE_SETTINGS) AddPermission(android.permission.WRITE_SECURE_SETTINGS)
It should be: Code: AddPermission(android.permission.WRITE_SETTINGS) AddPermission(android.permission.WRITE_SECURE_SETTINGS)
C chrjak Active Member Licensed User Longtime User May 4, 2014 #32 The Error is still here. And now i have this lines in Manifest and i removed the red code before. your code is blue
The Error is still here. And now i have this lines in Manifest and i removed the red code before. your code is blue
Erel B4X founder Staff member Licensed User Longtime User May 5, 2014 #33 See post #27. It is no longer possible to programmatically change the airplane mode.
C chrjak Active Member Licensed User Longtime User May 5, 2014 #34 So you can only set Wifi on or off?
Erel B4X founder Staff member Licensed User Longtime User May 6, 2014 #35 This thread is about airplane mode. As written above Android no longer allows non-system apps to change this mode. If you have other questions then please start a new thread.
This thread is about airplane mode. As written above Android no longer allows non-system apps to change this mode. If you have other questions then please start a new thread.
F FabioG Active Member Licensed User Longtime User Nov 29, 2014 #36 Hi, I have this problem Code: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE from pid=3177, uid=10193 in manifest editor Code: AddPermission(android.permission.WRITE_SETTINGS) AddPermission(android.permission.WRITE_SECURE_SETTINGS) how can I solve?
Hi, I have this problem Code: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE from pid=3177, uid=10193 in manifest editor Code: AddPermission(android.permission.WRITE_SETTINGS) AddPermission(android.permission.WRITE_SECURE_SETTINGS) how can I solve?
Informatix Expert Licensed User Longtime User Nov 29, 2014 #37 FabioG said: how can I solve? Click to expand... Start by reading messages just before yours.
shb777 Active Member Licensed User Longtime User Sep 6, 2017 #38 I got an error. java.lang.security.exception permission denial not allowed to send broadcast android.intent.action Airplane_mode from pid=14318 uid = 10060 here's what i added to the manifest AddPermission(android.permission.READ_PHONE_STATE) AddPermission(android.permission.WRITE_SETTINGS) added this AddManifestText(
I got an error. java.lang.security.exception permission denial not allowed to send broadcast android.intent.action Airplane_mode from pid=14318 uid = 10060 here's what i added to the manifest AddPermission(android.permission.READ_PHONE_STATE) AddPermission(android.permission.WRITE_SETTINGS) added this AddManifestText(
DonManfred Expert Licensed User Longtime User Sep 6, 2017 #39 https://www.google.de/search?source=hp&q=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&oq=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&gs_l=psy-ab.3..0i22i30k1.505.505.0.913.2.1.0.0.0.0.91.91.1.1.0.foo%2Cersl%3D1%2Cfett%3D1%2Cewh%3D0%2Cnso-enksa%3D0%2Cnso-enfk%3D0.1..0...1.1.64.psy-ab..1.1.91.0.njDtQcRPpzM https://stackoverflow.com/questions...send-broadcast-android-intent-action-airplane Note that only apps installed on the system partition (e.g., by rooted device users) or by apps signed by the signing key that signed the firmware. Ordinary SDK apps cannot modify the state of airplane mode. Click to expand... Last edited: Sep 6, 2017
https://www.google.de/search?source=hp&q=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&oq=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&gs_l=psy-ab.3..0i22i30k1.505.505.0.913.2.1.0.0.0.0.91.91.1.1.0.foo%2Cersl%3D1%2Cfett%3D1%2Cewh%3D0%2Cnso-enksa%3D0%2Cnso-enfk%3D0.1..0...1.1.64.psy-ab..1.1.91.0.njDtQcRPpzM https://stackoverflow.com/questions...send-broadcast-android-intent-action-airplane Note that only apps installed on the system partition (e.g., by rooted device users) or by apps signed by the signing key that signed the firmware. Ordinary SDK apps cannot modify the state of airplane mode. Click to expand...
shb777 Active Member Licensed User Longtime User Sep 6, 2017 #40 DonManfred said: https://www.google.de/search?source=hp&q=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&oq=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&gs_l=psy-ab.3..0i22i30k1.505.505.0.913.2.1.0.0.0.0.91.91.1.1.0.foo%2Cersl%3D1%2Cfett%3D1%2Cewh%3D0%2Cnso-enksa%3D0%2Cnso-enfk%3D0.1..0...1.1.64.psy-ab..1.1.91.0.njDtQcRPpzM https://stackoverflow.com/questions...send-broadcast-android-intent-action-airplane Click to expand... why wasn't this mentioned in the first place?
DonManfred said: https://www.google.de/search?source=hp&q=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&oq=not+allowed+to+send+broadcast+android.intent.action+Airplane_mode&gs_l=psy-ab.3..0i22i30k1.505.505.0.913.2.1.0.0.0.0.91.91.1.1.0.foo%2Cersl%3D1%2Cfett%3D1%2Cewh%3D0%2Cnso-enksa%3D0%2Cnso-enfk%3D0.1..0...1.1.64.psy-ab..1.1.91.0.njDtQcRPpzM https://stackoverflow.com/questions...send-broadcast-android-intent-action-airplane Click to expand... why wasn't this mentioned in the first place?