Camera Flash LED flashlight - Android Software Development

Now I know this has probably been asked before and I did search but found nothing. Is there a way to programatically turn the flash LED on (at certain intensities preferably) and off, and/or for different lengths of time? This is of course for myTouch 3GS but a generic way for more compatibility would be great. Example code would be greatly helpful if you can provide some.
Sent from my ROOTED myTouch 3G Slide using XDA App

You didn't search too hard cuz there is already a thread about this in the mt3gs forum...if you search the mt3gs, well...its there...
Here ill save you the trouble...go to market and download "LED Desire Light"...
Then report this thread to the mods and have them delete it since its a useless repeat thread...you can do that by clicking the exclamation point in the top right corner of your first post...thanks.
-BMFC

I did search that forum specifically I just apparently used different terms than you. Downloading an app doesn't really help if I need code does it? Which terms did you use?
Sent from my ROOTED myTouch 3G Slide using XDA App

look for the flashlight controller device file under /sys/devices/...
from what i've seen, sending a 0, 127 or 255 to the file turns it off, on-permanently, on-for-a-short-duration respectively.
Other values may work too.
i.e echo 255 > /sys/devices/...../flashlight/brightness

Related

Galaxy Tab problems with websites

Hi everyone,
I recently got a GT but I've been having some problems using the "search" functions on websites.
For instance, here on XDA, whenever I try to use the "search this thread" the following happens:
1) the input box for entering text appears then,
2) the keyboard pops up for a second then,
3) the input box disappears, so I can't enter anything. [frustrating!]
I have tried this on multiple browsers (Stock, xScope and Dolphin HD) and on different sites and the same problem regardless of if I use the Samsung or Swype keyboards.
I have no similar issues using these browsers on my HTC Glacier (MyTouch 4G) or Nexus One.
One thing I notice, is that whenever the keyboard pops up, there are "Prev." and "Next" tabs right above the keyboard. I am not sure if those "extra" tabs are accidentally causing the browsers to resize the pages thereby shutting down the input text box.
Any ideas?
Also, why does XDA always show up jumbled in portrait view?
Thanks!~
:nudge:
Sent from my HTC Glacier using XDA App
The Tab can't handle these types of windows where they are a window within a window.
However, there is an easy solution.....
What you must do is when you click on the 'Search this Forum' or 'Search this Thread' boxes you must then click on where it says 'Advanced'.
This will then open up a new window where you can then type in your search request.
Regarding Portrait not showing correctly ~ I have no issues with the xda-devs web site in Portait mode. It must be a setting you have.
Thanks. Maybe it is a setting I have in my user cp since that's all I can thunk it might be. I will try your.suggestion.
Sent from my HTC Glacier using XDA App
Anyone else have some thoughts on this issue?
Sent from my HTC Glacier using XDA App
I have the same problem with my Galaxy S, especially with 'xda 2010' theme and the drop down search boxes, i have tried a few different keyboards (Samsung, Gingerbread, Smart keyboard pro, HTC IME mod) the only one that works with the drop down boxes is HTC IME mod, you might want to give that a try. I have just done a quick search and i am not sure if it has been modded for the Tab?
droctii said:
Thanks. Maybe it is a setting I have in my user cp since that's all I can thunk it might be. I will try your.suggestion.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
If it works could you please leave me a vote of thanks..... but I stress, only if you feel it deserves it. The Thanks votes must only be used if someone has assisted or helped an individual in some form or another.
For each vote of thanks I receive my nurses are authorized to remove £10 from my wallet to go to charity.
What version of HTC ime mod are you using. I tried v.27 hi and keep getting fc. Do you have a link to the apk?
Thanks.
**budge nudge**
I use Firefox for Android and seems to work far better on sites that all the other mentioned browsers have problems with. Including this site. Firefox is still a beta but it works well enough for me on my Tab.

List of changes after gingerbread update.

Is there an official list of what has changed, been fixed and improved?
Sent from my Desire HD using XDA App
- added an "auto enhance" feature to the camera. not sure what it does yet, looks like it boosts the contrast and saturation a tiny bit.
- added a quick settings menu to the drop down bar.
- added a "tell HTC" error reporting feature. looks much like windows error reporting. can be disabled in the settings>about phone menu.
- changed the way the app menu scrolls. now scrolls a page at a time instead of smooth. RSI inducing when you scroll fast, but easier to find stuff.
- screen looks better to me, not sure why though.
- camera quicker to focus in low light.
- gallery is faster
Im seeing a difference in camera quality for the worse.
Auto enhance seems like its a fith wheel as you can acheive the same or better quality through adjusting some of the settings.
Has the text message app been fixed?
Sent from my Desire HD using XDA App
Text message app seems to be working fine now.
Sent from my Desire HD using XDA App
also added:
new power control widgets. they look awesome! go to widgets> all htc widgets and scroll to about 50 out of 77.
I have also noticed the sound quality has improved on the video camera.. i can now actually hear things when playing back a video.. before i just got an awful low muffed sound. Anyone else noticed the improvement?.
The new scolling is a bit of a pain if you have alot of apps installed but if you change the view to list mode you can scroll down the list as before without the stopping and starting.
The speaker also seems a bit louder.
My texting has been fixed (was stuck on the buggy 1.74 for months!!)
My wifi is fine (although alot of people are reporting theirs has either got worse or no wifi connection at all)
Weather app now has sound on it
The phone seems alot more smoother too.
I'm running my HD on the stock rom and radio (unbranded on vodafone) with official update (2.36.405.8)
Not tested the GPS yet.. been raining here so i'LL wait till it clears up before giving it a whirl.
Battery on mine seems slightly better.
Improved the application management menus, seems to stop the running apps alot quicker than before.
Personally i'm loving this phone again.
In previous stock ROMs, pressing the search button on the home screen brought up the HTC Search application. Now, Google Search is used.
Not sure if this change was introduced with GB, or it was made earlier and I didn't notice, but... Gmail app now has copy/paste
However, still not possible to save attachments
Sound effects on weather widget, also clock and Facebook widget.
Sent from my Desire HD using XDA App
I noticed all the above plus better battery stats graph, and better manage apps menu. Also as stated about the Facebook widget/app they finally fixed it from before when you would load the app, click on something, and then back out, it used to make the thumbnail pictures disappear to a white box, but now they stay.
Can now enter title and middle name in People app....
And can paste number into the dialer - this is a particularly helpful addition for me.
Sent from my Desire HD using XDA App
When click on the find button on desire HD, u were able to search everything on ur phone, but now it goes too Google search? Why?
how can we search the phone now?
Sent from my Desire HD using XDA App
One other change that I'm NOT liking, is the unread count dissapears from the sms and HTC Mail widget once you have gone into the app, even if you don't read anything and come out anything. No longer displays any count.
Fame123 said:
When click on the find button on desire HD, u were able to search everything on ur phone, but now it goes too Google search? Why?
how can we search the phone now?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Google Search is used to search your phone. Just go into Menu->Search Settings->Searchable items.
Fame123 said:
When click on the find button on desire HD, u were able to search everything on ur phone, but now it goes too Google search? Why?
how can we search the phone now?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Press the Seach button
Press Menu
Press Search Settings
Press Seachable Items
Found also that with the HTC mail app, when I get Outlook meeting invites now I can see the proposed time and date etc before accepting. Sooooo needed was that as I had no idea if I could actually attend or not when clicking ok.
Can also see my Gmail IMAP account in the HTC mail app listed in accounts now whereas before the only way to get to its settings was through the mail app itself.
Don't use GMail itself due to the horrible interface. Never gotten on with it.
Found that if you want to move an icon too on a full screen you can - drag it over another icon and they swap places. Unsure if that's a new one but I remember on my Desire you had to remove an icon first to make room then re-add. Even Nokia had that one covered with crummy Symbian.
Compared to 1.72 also it doesn't crash, at all. The older version used to just reboot itself all the time, in my pocket, on the table - properly got on my t1ts. Made me regret going from 1.32 to that horrible ROM.
I've also found that videos I could not play before that I'd recorded now play. God knows what was going on there but the update seems to have sorted that.
App management is faster - gives you a list of what's installed almost straight away, icons and all whereas before it would sit there calculating for ages.
The volume is noticably louder too on ringtones and notifications. Again was much needed as it was so quiet before.
All in all I'm pleased - the only thing I've found is when the phone is fighting for signal it EATS the battery with dialer jumping right up in the usage stakes. I think it's a mobile data thing - turn that off or switch to GSM only and it's happy.
While recording the video you can zoom in or zoom out even during recording. Earlier this was not possible and you could only focus while recording.
Also after restarting the phone, the duration of being run on battery, in the Battery use does not reset, while earlier it used to reset with each phone switch off.
here are some highlights
http://developer.android.com/sdk/android-2.3-highlights.html
Fame123 said:
When click on the find button on desire HD, u were able to search everything on ur phone, but now it goes too Google search? Why?
how can we search the phone now?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Thats always been like that has it not? A little tip though, if you are search for an app then open the app drawer and then hit the search button so it specifically searches through your apps only.
So if you know whatever your looking for is only going to be in a certain area hit the search button after you get there. I don't know if that's new or not but i just found it and it is very helpful rather then searching the whole phone.

Motorola Field Utils

So has anyone used this app since the 3.2 update? From what I can see, it has more capabilities to available then I seem to remember from before(though I could be wrong) and the sim slot can read sim cards now(at least it read my T-Mobile sim card). I did change my network in the settings to GSM/UTMS/EvDO/CDMA and in the phone information test area it now says GSM/CDMA Auto PRL just like my Nexus S does on T-Mobile, even after rebooting. Sadly I don't know if this even matters, or if all the changeable settings would allow the use of GSM. Nor do I know enough to attempt to make this work. Just thought I'd share my "findings", and if they are in fact useless I'm sorry for wasting peoples time.
Sent from my Xoom using XDA App
hmm where would i get that app? sounds interesting!
Sent from my Xoom using XDA App
Hold the volume up and down buttons as you turn the xoom on. You will see cold booting linux in the top left of the screen, followed by,more text like LTE off. Once the xoom is finished booting, in the app drawer there will be a Field Utils app with the Motorola logo. The codes will be 000000
I guess I'm really wondering if we can unlocked this device like we can phones.
Sent from my Xoom using XDA App
using a wifi only model. the unit has the field utils app however the six zeroes (000000) do not work for the spc password.
Yeah i saw this in the app list but never knew what it was. Cant do anything with it and dont see the apk in the usual directories. Dont think wifi only version would be able to get the cell network working as type hardware for it should be missing. Maybe there is hardware somewhere and maybe some day there may be guide how to install it and get it working.
marctronixx said:
using a wifi only model. the unit has the field utils app however the six zeroes (000000) do not work for the spc password.
Click to expand...
Click to collapse
had the same issue myself, tried all 5's as some websites said it was, also nothing.
Were can I find this app
Sent from my Xoom using XDA App
c1808us said:
Were can I find this app
Sent from my Xoom using XDA App
Click to expand...
Click to collapse
Read post #3 in this thread......
yes when i get into the radio part it runs tests and says "CANT FIND NONE" LOL.. however there is a screen test and program (or some such) test that the wifi unit could still benefit from..
would like to know the correct SPC to at least try the other tests...
Tiger62651 said:
Dont think wifi only version would be able to get the cell network working as type hardware for it should be missing. Maybe there is hardware somewhere and maybe some day there may be guide how to install it and get it working.
Click to expand...
Click to collapse

verizon wireless

Recently, I moved into cm7 rom and 'm actually satisfied but 'm think i have some problem: on my lock screen at the upper right side, "verizon wireless" title is written , and since I'm in a different zone, which isn't use in verizon wireless, and actually i'v never seen this title before,I wonder if everything is ok? When I think about it, actually I have a problem withe phone calls (sometimes the phone is ringing when getting call n sometimes not...)
I think thats just a title the rom has.
I believe u can change it look around in the settings.
Sent from my SCH-I500 using XDA App
i looked around the settings and couldn't find it! is still show me this title on my lockscreen and still i have problems with messages sending and even with phone call from time to time
You'd have to edit eri.xml. I forget which framework file its in.
Sent from my Incredible 2 using XDA App
sry but i don't know what it is... how can i do that?
@times_infinity, it's in /data
I'll post a modded eri.xml in a minute.
edit- here:
1) extract xml and place in /data folder
2) use text editor in root explorer to edit the text "Captain Pickles" to your text.
3)save and reboot

[REQUEST] 4.3 Remove Capacitive Buttons

Hi, I'm running Slim 4.3 Build 1 (http://forum.xda-developers.com/showthread.php?t=2393971) on my lcd version nexus s and really like the on screen buttons included with the rom. Is there any way to remove the back light from the capacities buttons and stop them vibrating?
Thanks
If you download Nexus S Tools from the Play Store, you can disable the capacitive lights, and there's a file somewhere in system/usr that has the keycodes for the capacitive buttons (you'll know what file it is when you see it, there's like 4 lines for back, home, search, and menu). What you gotta do is put a # in front of each line and reboot, then the capacitive buttons will be disabled.
Sent from my M470BSA using xda app-developers app
Thanks for the response
Do you mean NS tools?
https://play.google.com/store/apps/details?id=mobi.cyann.nstools&hl=en
I couldn't find anything called "Nexus S" tools.
Bit of a noob mate , how do I find the system/user and edit it?
continuum51 said:
Thanks for the response
Do you mean NS tools?
https://play.google.com/store/apps/details?id=mobi.cyann.nstools&hl=en
I couldn't find anything called "Nexus S" tools.
Bit of a noob mate , how do I find the system/user and edit it?
Click to expand...
Click to collapse
Yes, ns tools, but others support bln as well...
Sent from my Nexus S using xda premium
continuum51 said:
Thanks for the response
Do you mean NS tools?
https://play.google.com/store/apps/details?id=mobi.cyann.nstools&hl=en
I couldn't find anything called "Nexus S" tools.
Bit of a noob mate , how do I find the system/user and edit it?
Click to expand...
Click to collapse
To edit the file, download a file explorer (ES File Explorer is what I use) and enable "root explorer" then go into settings and make sure /system is set to "R/W" (there's a little check box somewhere).
From there go into /system/usr/keylayout/cypress-touchkey.kl and open it as text. Then put a # in front of every line that doesn't have one and then reboot
Sent from my Nexus S 4G using xda app-developers app
beneath-a-burning-turtle said:
To edit the file, download a file explorer (ES File Explorer is what I use) and enable "root explorer" then go into settings and make sure /system is set to "R/W" (there's a little check box somewhere).
From there go into /system/usr/keylayout/cypress-touchkey.kl and open it as text. Then put a # in front of every line that doesn't have one and then reboot
Sent from my Nexus S 4G using xda app-developers app
Click to expand...
Click to collapse
Do you know if there's a similar procedure to remove also the backlight??
I'd like to keep them always off without changing kernel or rom, i'm on 4.1.2 stock.
MarkRain said:
Do you know if there's a similar procedure to remove also the backlight??
I'd like to keep them always off without changing kernel or rom, i'm on 4.1.2 stock.
Click to expand...
Click to collapse
As long as you have root, NSTools is always my go-to option since its designed for this phone specifically, so I'd give that a whirl. I don't know exactly what file controls the backlight so I can't help you there
Sent from my M470BSA using xda app-developers app
beneath-a-burning-turtle said:
As long as you have root, NSTools is always my go-to option since its designed for this phone specifically, so I'd give that a whirl. I don't know exactly what file controls the backlight so I can't help you there
Sent from my M470BSA using xda app-developers app
Click to expand...
Click to collapse
I already tried NStools, but it require a modified kernel to edit the capacitive keys backlight.
Thank you anyway
^Same, I'm trying NStools but I don't thin the kernal is letting me do much. Any recommendations on a good krnal to flash with slim?
Marmite that comes with slim rom is good. I have disabled the back lights using that and nstools in the past. But often they would flicker if you touched them which bugs me.
In the settings somewhere you should be able to disable the hardware keys without altering any system files. I am not on that rom anymore so I can't tell you exactly where!
Ended up using nstools + disabling vibration
esexplorer is pretty complicated
Thanks for the help everybody

Categories

Resources