General :: Framework Code - Enabling Rotation
Aug 20, 2012
What are the codes in framework that affects rotation? Basically, the problem I face here is, even after enabling in Settings>Display>Rotation>0 degree and 90 degree, the display does not go to landscape even after I rotate my phone.
I am running Android 4.1.1
View 1 Replies
Aug 18, 2010
I need to enable a MenuItem when a previous screen (Activity) returns. I tried this code:
...
((MenuItem)findViewById(R.id.menu_how)).setEnabled(true);
...
but a null pointer exception is launched. BTW, the menu_how is set to false in xml; and the code is part of onActivityResult(int requestCode, int resultCode, Intent data) call.
View 1 Replies
View Related
Mar 14, 2010
Under the 2.1 SDK, is there a way to test for the phone's OS version within the app, and to enable or disable features based on this OS version? In other words, I'd like to do the moral equivalent of this...
if (os_level < 1.6) {// code goes here}
View 2 Replies
View Related
Jan 24, 2010
Seems to me that Lock 2.0 is the best Screen Lock I've found. Only Issue is, even with the security code enabled, all one has to do is power on/off the phone and your in with no need for the code. What I am looking for is a locking app that doesn't get disabled when powering the phone off/on. Looking for something secure much like every BB has where no matter what you do, to proceed into the phone you need to type in the Lock Code.
View 1 Replies
View Related
Nov 11, 2010
I am new to android.I have Downloaded the android-sdk and i have installed it.it is working good.now I what to now where we can locate the android Frame work code.I searched all through the android sdk I am not adle to find it.Can any one help me where the android framework code is located in my system.
View 1 Replies
View Related
Feb 5, 2012
I have just got CM9 on my Xperia Play and I was just wondering if it was possible to enable the soft keys especially enabling them on when the phone is in portrait. The soft keys from ice cream sandwich for my phone since the menu key doesn't work very well and for some reason I have to push it down very hard to get it too work.
View 3 Replies
View Related
Apr 28, 2013
I flashed a ROM this morning and it failed. One thing leading to the next I ended up with no OS on my phone and USB Debugging turned off. Now I want to turn on USB Debugging but the only menus I can access from the phone are "Recovery" and "Bootloader." Is there anyway to turn it on or am I screwed. Also, messing with all of these ROMs and rooting my phone so looking for link to a ROM that doesn't make any major changes to your phone. Or the original ROM that came with the phone would be good.
View 2 Replies
View Related
Nov 23, 2012
I've set Latitude to be updated manually (location set manually) and I update it with Latify.
Every once in a while, I notice my battery draining faster than usual and I check my Latitude settings and there it is. Latitude has changed it's location update settings to "automatically update".
I swap sim cards out quite often as I travel between a few countries for work. Is that the cause?
View 1 Replies
View Related
Apr 24, 2012
will enabling 2G (Edge) only to check for MMS drain battery? i want it enabled all day but only to check for MMS.. so will this drain battery?
View 1 Replies
View Related
Nov 18, 2011
My Android based (Gingerbread) smartphone has a number of contacts with several phone numbers (home, work, mobile etc.) for each. When I call a contact the call goes through the mobile operator and I'm charged for the call by him.
I also have an an Asterisk-based PBX with a FCT (Fixed Cellular Terminal, or GSM Dialer or Fixed Wireless Terminal) connected to a VOIP provider that charges much less. If I prefix a phone number in Contacts with a fixed string (containing the mobile number to the SIM card in the FCT, plus some pause, plus the password to access the PBX's dial tone plus a bit more of pause) it works fine.
What I'm looking for is a way to have this standard prefix string stored somewhere and it be automatically padded at the beginning of each number dialed. Ideally, when dialing a contact I would be asked if I wanted to call with or without the standard prefix. Is that doable?
View 3 Replies
View Related
Feb 24, 2012
As the subject asks, why does it drain the phone so much? On my nokia symbian phone, it is connected to my asterisk box 24/7 over wifi and will last for days.
My galaxy nexus will drain out in hours if connected via wifi to my asterisk box. The SIP qualifys are every 60 seconds.
How to get decent battery life for incoming SIP on ICS?
A somewhat related question I have; does any app that will enable incoming SIP only when on wireless?
View 1 Replies
View Related
Feb 11, 2012
How to implement ICS rotation animation to a 2.3.4 stock rom?
View 8 Replies
View Related
Aug 18, 2012
I bought a generic tablet. A Boxchip A13@ 1.2Ghz, GPU Mali400,, 512Ram.. etc.
The thing is I flashed it with a compatible rom, but some configurations are wrong.I got wrong button mapping, and aI solved it, but Not the strangest thing happens... it seems the configuration of rotation is allways a step behind.
having 4 possible positons (Portrait, Upside down portrait, Landscape and Upside down landscape),When I put it n the poision of landscape, the screen rotates to upside down portrait. In upside down portrait to upside down landscape, in upside down landsacpe goes to portrait, and in portrait it goes to landscape. It's driving me nuts! haha I temporarily disabled rotation, but It's a nice thing to have enabled.. In conclusion, It seems the configuration somehow maps the position +90 degrees clockwise more than it should. Where is it maped?
View 3 Replies
View Related
Feb 21, 2013
it is possible to use auto-rotate in this rom, or if the developer is working on it? Really nice ROM, and it will fill the bill for my new A210, but would like to use auto-rotate and hopefully be able to use a Trebuchet style launcher.
View 1 Replies
View Related
Feb 7, 2012
I'm just wondering if there is currently an app out there that allows certain applications to use the rotation sensor on our phones, but not other applications.
For instance i like to text message in landscape mode sometimes but when i go to my home screen and tilt my phone at all, the home screen will go to landscape which i don't like because it takes a long time to switch back and forth between portrait and landscape and seems to be overly sensitive to the axis of my phone.
Does this application exist? If not, how hard would it be to create?
View 5 Replies
View Related
Apr 19, 2013
Is there a trick to use the gyroscope instead accelerometer to rotate the screen? Or, is there any "Hack" to improve rotating speed? iPad have a very nice rotation.
Btw, I have Galaxy S2.
View 1 Replies
View Related
Jan 28, 2012
Is there a way to only have an android device, specifically Acer Iconia A500 running 3.2.1, to only rotate horizontally and not vertically.
View 1 Replies
View Related
Nov 15, 2012
I've got a Samsung Galaxy III and have problems trying to view images in my gallery using the auto-rotate screen option and rather then having to manuallly press the rotate screen "icon" which does gets annoying. I just want to tilt my phone so the images can automatically change to portrait or landscape on its own depending what angle the phone tilts. I've ensure the auto-rotate screen is checked from Settings under Display and even tried unchecking it and checking it again as well as switching my phone on/off.
NOTE: That the auto-rotate screen option does work fine for me with everything else like watching videos, texting, internet browsing, music and even viewing the overall images in the gallery but when going in and viewing the pictures individually from either the Gallery or the Camera. All I've got is a rotate screen "icon" to press on manually each time I'd like the picture to be portrait and if I want landscape I have to press on the screen rotate icon again. I noticed the auto-rotate screen option doesn't work on my Home Screen and Lock Screen as well but that isn't the main issue.
I've been reading around and tried pulling out my battery on "Odin" mode, wait 30sec-1min then turn my phone on again and that didn't work. I've also did the same procedure and ensure I unchecked the auto-rotate screen option and checked it again after I turned on the phone. I tried the Gyroscope Caliberation option and calibrated it and that didn't work either. My sister has the same phone as me with the same version installed but she doesn't have this problem and I'm wondering if it's something to do with how my phone software's set up?
View 2 Replies
View Related
Feb 29, 2012
I tried to install ics on an Thinkpad x61 of my possession. Everything it's amazing, but one thing: screen auto rotation. is there ANY way to prevent ANY app to rotate the screen for whatever reason and fix it in landscape mode?
View 2 Replies
View Related
Mar 2, 2013
How to make Android's screen rotation faster (like iPhone)?
View 6 Replies
View Related
Dec 13, 2012
Just got it, flashed it and now screen rotation is incorrect,Vol - does not work, Vol+ is Vol - and touch screen does not work i can't tell you the specs till i get back home to read the box.
View 2 Replies
View Related
Oct 13, 2013
How to make screen mirror like as apsis coordinate...???
I tried:
Code:
persist.hwc.mirroring.enabled=1
persist.hwc.mirroring.transform=1
For example:
< | >
I found how to rotate manually:
Code:
Set in build.prob -> ro.sf.hwrotation = 0 for 0, 1 for 90, 2 for 180, 3 for 270 which you want...
But I need to mirror effect on all based android system
View 1 Replies
View Related
Nov 26, 2012
Somedays back My phone just got stuck at the boot animation... So I restored it to its factory rom: upai_n9880I stock rom: 20120804_e1811_v75_jbaol1_g88. But when I went using the camera, the camera was inverted and if I turn in to lanscape, it would rotate but get inverted like in portrait mode. Now the games were also working flipped... The guy in Temple run now turns right if I tilt to the left and so forth.
So I tried flashing the phone with Taiwan upai N9880_ICS_V.01... but the issue remains. I tried reformat the flash and re-installed Taiwan Rom... the issue remians.
View 3 Replies
View Related
May 7, 2012
If I want to change the sms icon displayed at the top, could I add a pic to framework or do I actually have to change the mms.apk pic?
View 1 Replies
View Related
May 7, 2012
I wanna port Samsung's framework to HTC....
View 5 Replies
View Related
Sep 26, 2013
I have a Motorola Razr D3 (XT920) Dual SIM and I want to port a CyanogenMod ROM to it, but the device is Dual SIM, and CM don't support it.
How to modify AOSP (or CM) Framework to Dual SIM! The kernel code of my device is available?
View 1 Replies
View Related
Apr 18, 2014
I'm very familiar with using APKTool and Compiling/Decompiling Apps. I've run into a problem with the framework-res and SystemUI apps.
Current ROM/App info:
Samsung Galaxy Tab 3 8.0
Android 4.2.2 (Samsung Touchwiz)
Framework Installed in APKTool: framework-res.apk, twframework-res.apk and SystemUI.apk
APKTool Version: 2.0 (I've tried almost every version of APKTool and AAPT)
Java Version: 1.7 (as required by APKTool 2.0)
OS: Windows and Linux (same results on each OS)
The framework and SystemUI apps decompile fine. No errors and all the XML/Smali files are perfect. The problem is that I can not recompile either of them. Each time I attempt, I get the same error regarding the Android Manifest file....
Code:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: c
rut_util_Jar_8264547236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --
me, 4.2.2-T310UEUAMH2, -F, C:UsersAdamAppDataLocalTempAPKTOOL3953045592385201216.tmp, -0
:UsersAdamDesktopProject_Tab3_4.15OriginalFilesSystemUI
es, -M, C:UsersAdamDesktopP
xml]
[code]...
I know some dev's have been able to sucessfully compile these apps .
FYI - I have even tried compiling the stock apps without any mods and I get the same errors.
View 9 Replies
View Related
May 26, 2012
I would like to port a ROM, but the resolution of the device is too large for my HDPI (480x800) phone (HTC Glacier). The resolution of the ROM I want to port is qHD (540x960) and is the HTC Sensation. I want to port is OrDroid. Is it just /system/framework, or both /system/framework and /system/app? I can easily port it, I just need it resized.
View 5 Replies
View Related
Oct 6, 2013
I have a problem while porting rom, I port from qHD (960x540) to HDPI (800x480) but..., how to resize it ??
View 1 Replies
View Related
Apr 20, 2013
I got my son a Karbonn A30 yesterday, and so far, the auto rotation as well as acceleration stopped working twice. I tried formatting cache but it did not work. the only workaroud is to open the phone, remove battery and restart again. I could not get any solution except the battery removal one.
View 4 Replies
View Related