[Q] Use flash as torch - Android Q&A, Help & Troubleshooting

First of all I'm sorry if this has been asked & answered, but I think it wasn't.
I have a ZTE Skate(aka Orange/Optimus Monte Carlo) and it has flash led, the thing is I would like to use it as a flashlight.
Please don't point me to any app or anything cuz they won't work.
Looking at Torch.apk you find this, which I think is what the app uses to control the flash led:
Code:
public class FlashDevice
{
public static final int DEATH_RAY = 3;
private static final String DEVICE = "/sys/devices/platform/flashlight.0/leds/flashlight/brightness";
private static final String DEVICE_SHOLES = "/sys/class/leds/spotlight/brightness";
The problem is that ZTE Skate doesn't have these files: /sys/devices/platform/flashlight.0/leds/flashlight/brightness nor /sys/class/leds/spotlight/brightness
I don't know if those files are generated at boot, when using camera but the thing is that with any ROM available for this device those files don't exist.
What I'm asking is if it is possible to create them, how and if they'll work.
Or a workaround to use led as flashlight.
Thank you all in advance.

Anyone?

I know for my past phones (evo 4g and droid x) I hade to try atleast 5 diferent apps/ widgets to find a working one, I guess it depends what phone you have or what device the app supports and then MAYBE it will work. ...hope I helped.
Sent from my DROID3 using XDA App

anyone found the solution?

Related

Factory

Hello!
I am just receive Nook Tablet.
I follow hxxp://nookdevs.com/NookColor_Factory_Mode/Skip_Out_of_Box_Experience and get Factory Mode.
There is interesting information on the screen
Public key modules=108342652296433033527751572104361125
On the Nook Color this string is 000000000000000000000000.
Is it different number for different NT? May be a key?
Excuse me for my English. (I am Ukrainian)
Unrelated to development
Where's the "10 posts before you can post in the dev sections" check?
Kuzma30 said:
Hello!
I am just receive Nook Tablet.
I follow hxxp://nookdevs.com/NookColor_Factory_Mode/Skip_Out_of_Box_Experience and get Factory Mode.
There is interesting information on the screen
Public key modules=108342652296433033527751572104361125
On the Nook Color this string is 000000000000000000000000.
Is it different number for different NT? May be a key?
Excuse me for my English. (I am Ukrainian)
Click to expand...
Click to collapse
Please post items like this in the "Nook General" forum.
I can be mistaken.
I think this is related to development. Idea is the try use this Public key as key for boot-loader.
The question is this Public key (from Factory mode screen) unique for each BT or no? Anybody can post this number for his/her NT?
If this number unique for others NT then I mistaken(
Kuzma30 said:
Hello!
I am just receive Nook Tablet.
I follow hxxp://nookdevs.com/NookColor_Factory_Mode/Skip_Out_of_Box_Experience and get Factory Mode.
There is interesting information on the screen
Public key modules=108342652296433033527751572104361125
On the Nook Color this string is 000000000000000000000000.
Is it different number for different NT? May be a key?
Excuse me for my English. (I am Ukrainian)
Click to expand...
Click to collapse
In /rom/devconf there is a private and a public key hash. I was asking about this some last week. Hopefully we can get someone that knows what they are doing to take a look and see if we are on to something or if it's nothing.
Sent from my Nook Tablet using Tapatalk
For example here's my hash of private key.
iuskGXrjymF5S8K4g426XB37KUA=
Sent from my DROID BIONIC using Tapatalk
You have to know what the issues are
THESE PRIVATE KEYS HAVE NOTHING TO DO WITH SIGNING THE BOOT-LOADER.
Please understand the issues.
Delete/Close thread please

[APP][2.3.3+][NFC] NFC ReTAG --> re-use write protected NFC tags (HTC)

Bored of the NFC features of your devices?
Every NFC tag you tried (hotel keycards, lift passes, price tags, merchandising key fobs etc.) is write protected?
Don´t want to buy plain tags for playing around?
Try "NFC ReTAG"!
https://market.android.com/details?id=com.widgapp.NFC_ReTAG_FREE
--> Reads the ID of the (write protected) NFC tag and connects theses tags via a app internal database to various functions (e.g. Toggle Wlan/ Bluetooth, launch installed apps, set ringer mode , navigation, browser etc.)
also have a look at:
http://forum.xda-developers.com/showthread.php?t=1477138
---------------------------------------------------------------------------------
Features:
UPDATE 1.4: (-> 1.4.x = bugfixes)
* TexttoSpeech
* On/Off/Toggle auto sync
* On/Off/Toggle auto rotate
* Write a special NFC ReTAG for pre-ICS devices (BETA!!!)
* Some minor improvements (e.g launcher list is now sorted)
* Some minor bugfixes
UPDATE 1.3:
* Improved tag dispatching
* Possibility to write special NFC ReTAG tag ->nice for those with writeable tags
* “Do not show“ feature (→ Settings)
* Save tag as template + Manage templates
* Set Music Volume (Parameter = integer 0 - 100)
* Set Ringer Volume (Parameter = integer 0 - 100)
* Bluetooth ON without pop-up (as addition to the toggle option)
* Import/Export database (→ Settings)
* Auto Backup (→ Settings)
* Improved UI and some minor tweaks
UPDATE 1.2:
* Toggle Bluetooth without Pop-up
* Mute 'Tag detected' Pop-up via preferences
* Calendar entry: Open new calendar entry. Starting time: now; Duration: 1h -> Title will be set according to parameter
* Timestamp: Adds a calendar timestamp in the calendar (ID 1) -> Title will be set according to parameter
* Mediabutton: Simulates media buttons (Parameter: Toggle Play, Play, Pause, Stop, Next, Previous, Fast Forward, Rewind)
* Show homescreen: Jump to the homescreen. No Parameter
* Wait: Add a wait period. Parameter: milliseconds (2500 = 2,5 seconds)
* Show Pop-up: Shows a custom pop-up. Parameter = Pop-up text.
* Improved UI and some other minor tweaks
UPDATE 1.1: "Tasker" tasks added. (To use this feature, <b>Tasker</b> must be installed and the option <b>Misc / Allow External Access</b> must be set in <b>Tasker UI</b>.)
Version 1.0:
WLan -> Parameter: 0=OFF, 1=ON, 2= TOGGLE
Bluetooth -> Parameter: 0=OFF, 1=ON, 2= TOGGLE
Ringer mode -> Parameter: 0=SILENT, 1=VIBRATE, 2= NORMAL
Navigate -> Parameter: addresses like "Google Mountain View" or "Berlin Alexanderplatz 1"
Launcher: Launch any installed app. Choose Launcher and a list of all installed apps will pop up. Click an app to choose -> parameter will automatically be set! Dont change parameter manually!
Browse -> Parameter: any website (e.g. www.google.com)
Call -> Phone number or USSD code (e.g. 555 111 222 or *123#)
Dial -> used for Dialer codes (e.g. *#06# -> IMEI))
Automode enable: start saved functions when tag is detected. Automode disabled: edit saved functions when tag is detected.
You can also manually edit the database and simulate a tag via the database button.
------------------------------
Have fun!
It doesn't seem to work on my HTC Amaze 4G. But it works great on my girlfriend's Nexus S.
Hi draciel,
glad to hear it works on the nexus s .... sad to hear that it doesn´t work on your HTC Amaze 4G....
Perhabs a silly question:
Does your HTC Amaze 4G support NFC? And does it recognize nfc tags ?
I tought that at least the US T-Mobile version comes with NFC ....but with all these carrier versions ....i´m a litlle bit lost
ascsa said:
Hi draciel,
glad to hear it works on the nexus s .... sad to hear that it doesn´t work on your HTC Amaze 4G....
Perhabs a silly question:
Does your HTC Amaze 4G support NFC? And does it recognize nfc tags ?
I tought that at least the US T-Mobile version comes with NFC ....but with all these carrier versions ....i´m a litlle bit lost
Click to expand...
Click to collapse
Yeah my Amaze does support NFC but I figure its because of my case. Will try again later.
Sent from my HTC Amaze 4G using xda premium
Yeah no luck with my Amaze unfortunately
Sent from my Bulletproof Amaze 4G from xda premium
OK, now I'm curious...did you hear the sound of a new tag detected? Did the app start? What went wrong?
Sent from my Nexus S using xda premium
ascsa said:
OK, now I'm curious...did you hear the sound of a new tag detected? Did the app start? What went wrong?
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
The app did start. It had the little loading circle saying it's waiting for me to scan a tag. I didn't have my sound on when I tried so it might have made one. But it just didn't do anything.
Sent from my Bulletproof Amaze 4G from xda premium
Hmm, seems that your tag is not detected...
If the app is closed (!) Does the normal Android chooser appear when you tab the tag?
Or can any other app read your tag?
And the last question: is there an entry in the database? If yes, did you add an activity?
Many thanks for your feedback!
Sent from my Nexus S using xda premium
ascsa said:
Hmm, seems that your tag is not detected...
If the app is closed (!) Does the normal Android chooser appear when you tab the tag?
Or can any other app read your tag?
And the last question: is there an entry in the database? If yes, did you add an activity?
Many thanks for your feedback!
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
No, nothing happens with any NFC app that I have tried. Not even the stock one. There is nothing in the database. I'm starting to think my phone is faulty or the ROM I'm running doesn't like NFC.
Sent from my Bulletproof Amaze 4G from xda premium
Yes, could be the phone hardware or the rom..
But the app checks at start up, if there is a nfc adapter available.. So perhaps have a look at the settings.... Best case: nfc is just disabled... In 4.0.3 its a little bit misleading setting called nfc beam...
Sent from my Nexus S using xda premium
ascsa said:
Yes, could be the phone hardware or the rom..
But the app checks at start up, if there is a nfc adapter available.. So perhaps have a look at the settings.... Best case: nfc is just disabled... In 4.0.3 its a little bit misleading setting called nfc beam...
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
I have 2.3.4. The NFC option is on. So I'm not sure.
Sent from my Bulletproof Amaze 4G from xda premium
I can confirm that it's working on my Amaze 4G. BulletProof V2.2.1 with Kernel 008b13. I'm using my CharlieCard
saulcho009 said:
I can confirm that it's working on my Amaze 4G. BulletProof V2.2.1 with Kernel 008b13. I'm using my CharlieCard
Click to expand...
Click to collapse
Well then...
Sent from my Bulletproof Amaze 4G from xda premium
@saulcho: thanks for confirmation!
@draciel: perhaps something with your back cover or your battery..
Sent from my Nexus S using xda premium
ascsa said:
@saulcho: thanks for confirmation!
@draciel: perhaps something with your back cover or your battery..
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
What should I be looking for?
Sent from my Bulletproof Amaze 4G from xda premium
The nexus s has the nfc antenna within the back cover... Galaxy nexus -> battery... HTC amaze ??? (don't know)... So perhaps, a broken link to the antenna...
Sent from my Nexus S using xda premium
ascsa said:
The nexus s has the nfc antenna within the back cover... Galaxy nexus -> battery... HTC amaze ??? (don't know)... So perhaps, a broken link to the antenna...
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
There's about six different connections to the back cover on the Amaze so I wouldn't know which one. They all look good to me though...
Sent from my Bulletproof Amaze 4G from xda premium
This may also related to the issue that Google Wallet is having. The HTC rom seems to have its own NFC drivers and calls to a totally different function than the one built into Android. If you check the Google Wallet thread on the HTC Amaze board, I wrote out my LogCat reports there.
BiznessMan said:
This may also related to the issue that Google Wallet is having. The HTC rom seems to have its own NFC drivers and calls to a totally different function than the one built into Android. If you check the Google Wallet thread on the HTC Amaze board, I wrote out my LogCat reports there.
Click to expand...
Click to collapse
Could be, but then i didn´t get Saulcho´s post ....
saulcho009 said:
I can confirm that it's working on my Amaze 4G. BulletProof V2.2.1 with Kernel 008b13. I'm using my CharlieCard
Click to expand...
Click to collapse
BTW: Update 1.1 with Tasker integration is just released.
saulcho009 said:
I can confirm that it's working on my Amaze 4G. BulletProof V2.2.1 with Kernel 008b13. I'm using my CharlieCard
Click to expand...
Click to collapse
So can you confirm that you can use it for boarding the MBTA Buses?

[Q] is there any cyanogen mod give face detector and internet pass through

is there any cyanogen mod give face detector and internet pass through
senior if had even a LINK post me plzzzzzzzzzzz.......
Nup, the only possible rom that could do this is CM9 and it has not been developed on legend yet. Plus it doesn't seem plausible since there is no front facing camera to take a pic of your face..
Sent from my Legend using xda premium
but bro I already have one which consist both of these but android version is too old i.e: 2.3.3 and i want more then that dude
well thanks for the reply
.
.
.
.
any one else
sammyroid said:
is there any cyanogen mod give face detector and internet pass through
senior if had even a LINK post me plzzzzzzzzzzz.......
Click to expand...
Click to collapse
When I was using beat0 version of Zeubeas cm9, I already tried to get face lock to work by modding the startup script for face lock to override front facing camera detection as well as override a few other detection routines with out success, unless the source code is available and some one can do a change internaly to use the rear facng camera then we are all out of luck.
Internet pass through, as in wired teathering? Isn't that already included in there? I've never used it, but ive seen it as an option. or are you talking about reverse teathering? or even wireless hot spot????
Internet passthrough as in reverse wired tethering. Gingerbread Sense offers(ed?) this with HTC Sync software.
Sent from my HTC Legend using XDA

Development freeze

Hi,
I am an android developer, i bought a month ago my samsung galaxy s3. The phone works very fast, but i have a problem when developing:
Instead of showing me "force close" when i make a programming mistake, it just freezes. Before my i9300 i had an htc desire s, which i use to develop too.
Running the same program with an error, htc shows me a message of force close, galaxy s3 freezes...
I'm really angry with that.
Does it happen to you?
Thanks a lot
edit: I think i have some problem like my phone can't show me error messages :s i don't have any idea about how to solve it
Steps that reproduce the problem:
1. Create a malfunctioning app (like a default program with this activity)
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
** setContentView(10);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
the error is on the **, it just don't have the resource that it needs
2. It gets frozen ( i can only use the notification bar or shutdown screen)
3.1 If i use notification bar and i click the options menu i get a black screen and i have to reboot the phone
3.2 if i shutdown screen and unlock it later, i get a black screen and i have to reboot it.
That's it, i wish you could help me :s
Did you tried asking for help in stackoverflow? It will suit you more for these kind of questions
《tapatalked from galaxy s3》
bala_gamer said:
Did you tried asking for help in stackoverflow? It will suit you more for these kind of questions
《tapatalked from galaxy s3》
Click to expand...
Click to collapse
i will try, thanks
Ok, i discovered a little more about my error.
What it's not working is the error management system. I mean, when an app don't response or it has an error, android shows you the typical "the app it's not responding" with force close. Well, for some reason, mine it's not working. I can't see that message, the phone just freeze.
if someone knows the answer please tell, i have already posted on stackoverflow too.
Thanks again ^^
jl1990 said:
Ok, i discovered a little more about my error.
What it's not working is the error management system. I mean, when an app don't response or it has an error, android shows you the typical "the app it's not responding" with force close. Well, for some reason, mine it's not working. I can't see that message, the phone just freeze.
if someone knows the answer please tell, i have already posted on stackoverflow too.
Thanks again ^^
Click to expand...
Click to collapse
I'm encountering the same thing on my Galaxy Tab with ICS.

Need help [android app]

I need help and clarifications about my app idea.
I am trying to develop a app which can tag images dynamically. However , issue is as below:
Guys I wanted to tag images dynamically using smartphones but the problem is I need to find location coordinates of phones besides each other so that the phones can be tagged ultimately giving the owners names!!! The issue I'm facing is that I can't use GPS for it as it is giving inaccurate results. So is there any other method to do it? Like by using the radiations our phone emits or something like that!!! Please reply ASAP...Thank you so much!!
P.S. : In a scenario , suppose 4 users are in a pic and want to be automatically tagged and android phones in their pockets, so in India , gps doesn't change at such short distance !!!
I explored a lot but just cannot find a way out so posted it here

Categories

Resources