Android :: Forcing View To Measure Off Screen
Nov 9, 2010
I have a custom view i am writing for my drawing app but the first time i set the drawing into it i need to get the dimension for the view (using getMeasuredWidth() & getMeasuredHeight()). But until the view display these return 0. I have tried calling: requestLayout() invalidate() numDraw.measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY); but nothing seems to force the values to update.I guess the question i am asking is : does anyone have any tips on how to get view to update its measurements off screen?
View 3 Replies
Nov 24, 2010
I have a layout that has a button I would like to always be on the bottom of the scree of my phone. The problem is android:layout_gravity="bottom" only puts it at the below the rest of the layout, rather than the very bottom of the screen.Is there a way around this?
View 1 Replies
View Related
Aug 6, 2010
I would like to get access to the area covered by a finger for each touch event on an Android.Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the event. I was wondering if there is a way to get the area data which triggered the touch event e.g. size or coordinates NOT
View 2 Replies
View Related
Aug 3, 2010
Is there a way to measure frames per second? Would be helpful in evaluating perf tweaks.
View 4 Replies
View Related
May 11, 2012
I'm working with an ARM based development board running Android 2.3.3, that's connected to a monitor via a VGA cable. Due to a lack of a touchscreen I'm controlling the device via keyboard and mouse.
The main Android desktop displays fine, however when I open certain apps, the orientation is wrong. It thinks its in portrait mode when it should in fact be displayed in a landscape mode. Since the development board lacks gyroscopes, this has me craning my neck to navigate the app. It wouldn't be so bad but on top of that, the mouse cursor doesn't go down beyond about 75% of the screen, leaving the bottom 25% of the app inaccessible.
Is there any way I can force a system-wide landscape orientation, either via some settings, or some adb command?
View 2 Replies
View Related
Sep 9, 2010
Any sofware ( supports Android 2.1 )similiar to Nice track , field test measure signal ( 3g and 2g) . please advice
View 1 Replies
View Related
May 26, 2010
Is there a way in Android to force output through the phone speaker, even if a headphone is plugged into the jack? I know there has to be a way because when you are talking on the phone, you can put someone on speaker phone, even if there is headphones plugged into the jack.
View 1 Replies
View Related
Mar 19, 2010
I am trying to force the Soft Keyboard open in an Activity and grab everything that is entered as I want to handle the input myself, I don't have an EditText. Currently I have tried this but it does not work. I would like the Soft Keyboardto open below mAnswerTextView (Note: it is a TextView not EditText).
CODE:.............
How do I force the Soft Keyboard open. How do I gab everything that is entered so that I can handle each character. I would like to flush each character from the Soft Keyboard after I have handled it. ie, the user should not be able to enter whole words in the Soft Keyboard.
View 1 Replies
View Related
Aug 23, 2010
How to measure GPS signal strength?
View 2 Replies
View Related
Nov 10, 2009
I need to find out how wide a button with particular text will be before displaying a layout. Is this a valid way of doing it behind the scenes?I have other UI components that have to all be the same width in my layout, as whatever this one button is (the other widgets are placed all over the UI and I can't use any other layout methods to force them to be the same size).So I thought I could create this temporary layout, add my fake button, measure it to get its width, then use that value on all other controls. Right now I'm doing the same thing only in onWindowFocus(), but this happens after the layout has been displayed once, which I'd like to avoid.
View 2 Replies
View Related
Sep 20, 2010
Tell me that in android if i have a circle's radius and center value than how could i measure the latitude ,longitude of about 1 km. periphery of that circle.
View 3 Replies
View Related
May 5, 2010
I have a video player application and would like to display an approximate size of the running video. Is there a way to calculate the video file size from the given Video player API set?
View 2 Replies
View Related
Aug 3, 2010
Just back from a very nice vacation in Iceland, and await the data roaming bill from my phone company. I hope for the best having limited my traffic as much as possible, but I want to know in advance. I used the very nice app NetCounter but it didn't measure roaming data traffic at all.So I want to build my own app measuring just roaming data traffic. I have a few booleans to start with ( NetworkInfo.IsRoaming() & TelephonyManager. isNetworkRoaming() ), but I'm not sure how to measure the traffic if true.So the question is: How do I measure data traffic while roaming? (Something like API level 8 TrafficStats functionality is what I'm after, but for API level 3). The used SmartPhone is Samsung Galaxy i7500 (Android 1.6)
View 2 Replies
View Related
Sep 8, 2010
How can i measure length of string entered in the edittext while typing.Because i want to show a warning when the entered text length cross 100 character.
View 1 Replies
View Related
Oct 17, 2009
Anyone know if you can make part (i.e. a section which you could measure in pixels) of an image transparent? What graphics features would I need to look at?
View 4 Replies
View Related
Dec 10, 2011
I'd like to know is there some android application that can control my 2G/3G settings based on a rule (something like AutomateIt, which does not do that) so that it stops my phone from trying to connect to 3G network when signal is low or lost?
Let me explain - I go twice a week to a gym which is actually in the basement of a building, and my carrier's network is very weak there, mostly no signal at all. During those 2hrs period I've noticed that my battery drainage is larger than when I'm in the reach of the network.
Since I know that cell phones tries to log-on to the network using maximum power, and that 3G uses more juice than 2G, I concluded that my phone is trying to reconnect to 3G network when it looses signal instead of doing nothing.
Now, I don't exactly know how phones in general behave when they loose signal alltogether (I think they go from 3G down to 2G and then should go into some passive, listening-only mode, waiting for the beacon from the cell tower), but I guess that in such cases it would be better for me to force the phone to go to 2G (and keep reconnecting/listening on 2G) and later on, when it detects 3G, switch back to it.
Unfortunately, Automate It does not have radio control and I can't use it like I do at night to turn off sync and data and turn it on in the morning. Also it does not have a rule related to network signal strength/type/whatever.
I can't use some timer app that would simply turn on/off airplane mode during that period, because I might not go to the gym sometimes, or I might simply be late or leave the gym later, so I'd still have larger battery drainage, even for a short period of time.
View 1 Replies
View Related
Apr 21, 2010
I wanted to know if there is any way possible that I could use an opaque view like webView or mapView or such opaque view in some defined portion of my device screen like I want to use webView alongwith some another layout having another views. Is that possible? If yes, how? If no, where can I look to find some solution or workaround?
View 3 Replies
View Related
Feb 7, 2010
I want to optimize my game and remove the stuttering. Is there a way to measure the time-consumings of all my functions in the game without having to change all my functions?
View 3 Replies
View Related
Jun 20, 2010
Randomly the messaging app from HTC (the one that comes with the phone) forces itself to close and then deletes all my texts. It happens when I'm not using the phone or using the phone, and at any given time. Sometimes I get an error that says 'Force Close' or 'Wait' and sometimes I don't get any error.
Does anyone have some insight on whats going on here? I've reset/turned off the phone numerous times, but did not fix this issue.
View 2 Replies
View Related
Jul 18, 2010
It was thread about forcing your evo to roam on 3g data network. I was able to find threads about the hero but now the Evo. VZW works great at the cabin but sprint I have to walk out to the street and it will not roam onto VZW for some reason.....I have goggled and searched all the usual forums.
View 3 Replies
View Related
Oct 20, 2012
Ok, right now i own a Galaxy Player YP-G1, rooted it with SuperOneClick like a week ago looking for a way to make battery last for longer time. Actually i've got good results after installing SetCPU and doing some reseach about how to config it.
However i still have a problem related to the GPS radio. It keeps turning on even if i disable it in the status bar and in the device's configuration menu. I've realized this GPS thing drains battery too much and haven't found a way to force it to stay off. Always turns on by itself whatever i do.
Tried to disable autorun on all apps that used GPS localization with Gemini App Manager, still turns on...
I'd like to know if there's a rooted way to keep this off. Yesterday it turned on in the morning and even having used the music player for less than an hour the battery died extremely fast! and another days that it has stayed off battery has lasted until late night. It has to the GPS.
View 3 Replies
View Related
Mar 23, 2014
i have a moto g 16gb version. actually i want to use only 3g at my location. but my phone is set to preferred 3g mode which means that it uses 3g only when 3g signals are good. so there is no option of using only wcdma or 3g. also tried the phone testing app but no gain.
View 6 Replies
View Related
Sep 8, 2013
I've bought a THL W8S cell phone. The problem is, this cell doesn't support WCDMA 900 band. Only 850 and 2100. The phone operator (Wind) in my zone only support WCDMA900, so if I switch it in 3G the phone lost signal. If I keep it in 2G, it works fine but data navigation is slow.
I need to know if there's any way to force THL W8S to receive WCDMA900, or I will be forced to resend cell to China.
View 3 Replies
View Related
Jul 18, 2013
I have a device that since being flashed with new rom (kept original boot.img) boots up and everything is seemingly okay....... BUT.... Once the device is locked however, it stays in Negative/Inverted color mode. I was wondering if there is a way to modify a script, xml, or the UI fragments so that this won't happen any longer. The only way to return to normal colors is to reboot the device, and rebooting 12-20 times a day is too much. I will also mention, although it's on 4.1.2, there is no option for inverted display mode under Accessibility settings.
View 1 Replies
View Related
Sep 17, 2012
I would like to make an app that measures little time intervals (nanoseconds) so I need to know about time resolution and precision regarding such measures with an Android device.
In other words:
- Is it feasible to get reliable values of the current time with nanosecond resolution?
- If so, is feasible to measure such little time interavals? I mean, is there any way to tell the app/OS to focus on measuring the time interval specified in the current thread instead of allowing other processes to make the measuring task not precise?
I've tried to measure the time between the execution of two different lines in code but the results are not always the same, somehow random, then I suppose Dalvik and its process management is causing this to be unreliable and random. What I need to do is to measure distances by getting transmission and reception of audio tones of 16-20 KHz (done in [1] with iOS), thus needing resolution and precision.
View 5 Replies
View Related
May 25, 2012
Any app that measures the battery's mAh? I have tried battery monitor by 3c, but I don't think it works completely with HTC phones. Either it keeps saying measurement requires 40% or larger charging cycle or it reports something crazy..
View 9 Replies
View Related
Oct 31, 2010
I'm using the FontFitTextView that was posted in this other thread, but it isn't working exactly right for me. The measureText() call is returning a number that is obviously too small to display the string. When it runs through to find a font size that will allow the text to fit, the font size it settles on is still too big. I feel like there is some other kind of padding or margin or some other invisible that is contributing the math that makes up the width which is causing the discrepancy.For example I want to set the text of my FontFitTextView to be "10,000.25".The width of my FontFitTextView is 96 pixels, with 8px padding on both sides, so my available width is 80 pixels. The call to measureText() says that the text "10,000.25" is 64 pixels wide. This means that the current font size should be small enough to display the entire string. However, when the string is actually drawn on the TextView the last 2 characters are chopped off and all I see is "10,000." instead of "10,000.25"
View 1 Replies
View Related
Nov 22, 2010
I've checked the various forums and it appears that others have the same issue as I do. Basically, when I am connected to WiFi, I cannot send emails. When not connected to WiFi, I can send emails. This is a case for my email account with Shaw Cable (my home Internet provider). I have no problems sending emails from my Hotmail account on WiFi or not. The reason appears to be that my wireless carrier, Bell Canada, does not allow me to use my home Internet provider's (Shaw Cable) SMTP server to send emails. If I am on WiFi on my home email, I can send emails via Shaw's SMTP server. If I am not on WiFi, I have to use my wireless carrier's (Bell) SMTP server to send emails.
However, If I do this, when I use my WiFi at home, Shaw does not allow me to use Bell's SMTP server to send emails. The way I can always send emails where ever I am is if my email app only uses my wireless carrier to send emails. The email app on my phone, the Desire Z, will always use WiFi if it is available. Only if WiFi is not available will it use my wireless carrier. I cannot seem to find a way to force my email app to only use my wireless carrier. If someone figured out otherwise, please let me know. I have recently switched to an HTC Desire Z from a Nokia N97. When I had the N97 (which runs Symbian), I have always been able to send and receive email where ever I am. For web browsing, it uses WiFi if it is available and switches to my wireless carrier if not.
I am very disappointed that it appears the Desire Z is not able to do the same (unless there is a way and I just haven't figured it out). I have managed to figure out a workaround to my situation. If I send an email from my home, I will simply turn off WiFi. After sending my email, I'll turn WiFi back on. Although this works, this is just really combersome. Even though I'm at home, I do not always have my PC on to send emails and I am not going to wait several minutes for my PC to turn on so I can send an email. If it is a short email, I would rather reply via my phone rather than turn on my computer. Although manually toggling WiFi for sending emails is not too combersome, my expectation from a smartphone as advanced as the Desire Z is that I do not have to do that.
View 7 Replies
View Related
Nov 4, 2009
does anyone think the phone would force us to use mobile websites like facebook, myspace, and forums? my voyager did that all the time.
View 4 Replies
View Related
Sep 28, 2010
Every time I touch the Internet widget it says that is going to have to force a close. I have no other problems (that I know of) with any other apps or phone functions. Does anyone have any ideas on what to do?
View 2 Replies
View Related