yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] egandt:
I have 2 browsers installed the default and Firefox 6.0Beta, (I also have tTorrent installed for fun, maybe I'll use it some day) I have been trying to use both of them to download a torrent file, which I will then upload to a separate server via a web UI. Now I've failed with both browsers.

First neither of them like to down a torrent, they either want to open it in tTorrent (even though it is not set as the default Application for anything), or else they do not want to do anything when I click on the Download button (which work in a desktop browser), if I download them by long holding and selecting download link then I get a torrent file in downloads, but I can not upload this file to the remote server, as again neither browser wants to do that I select it and click on upload in the browser and nothing happens.

One of the major things I wanted to do with the phone was be able to select a torrent download it and then upload it to a remote server for processing. This process worked on an old WM phone, which is what has me stumped.

The remote download site can be any say ubuntu (which is what I was using as a test earlier, the upload site is running torrentflux-b4rt and it works from Chrome and FF on the Desktop. Lastly how can I change the default location of Downloads and only downloads to an external SD card? I know I can change everything, but all I want to change is the Downloads folder.

Thanks,

ERIC
[Android Software Development] jr10000:
Hey guys,

Im diving into the android sdk and I've been searching google to find a way to turn the screen off after i click a button in my app. I can not figure out how to get the screen to turn off.. I know you can turn brightness to 0 but i want it off not 0. Does anybody offer guidance, im not looking for a hand out. Is PowerManager really the only thing that can accomplish this? If so I'll go play with that more.

Thanks in Advance!!
[Android Software Development] andy572:
You have to use the PowerManager, look here for goToSleep(time) function :)

http://developer.android.com/reference/android/os/PowerManager.html#goToSleep(long)

To get a PowerManager instance, use a context to get the system service:

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
pm.goToSleep(System.currentTimeMillis() + 10000); // add 10 seconds to let other apps go sleeping
[Android Software Development] jr10000:
I get a force close everytime I do this. This is the same sample in the reference google offers..
[Android Software Development] andy572:
can you post a piece of logcat?
[Android Software Development] jr10000:
08-09 14:25:57.408: ERROR/AndroidRuntime(3327): FATAL EXCEPTION: main

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): java.lang.SecurityException: Neither user 10182 nor current process has android.permission.DEVICE_POWER.

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.Parcel.readException(Parcel.java:1322)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.Parcel.readException(Parcel.java:1276)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.IPowerManager$Stub$Proxy.goToSleep(IPowerManager.java:367)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.PowerManager.goToSleep(PowerManager.java:469)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at com.recreation.togglebrightness.AutoBrightness_toggleActivity.onSensorChanged(AutoBrightness_toggleActivity.java:139)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.hardware.SensorManager$ListenerDelegate$1.handleMessage(SensorManager.java:539)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.Handler.dispatchMessage(Handler.java:99)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.os.Looper.loop(Looper.java:143)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at android.app.ActivityThread.main(ActivityThread.java:4293)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at java.lang.reflect.Method.invokeNative(Native Method)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at java.lang.reflect.Method.invoke(Method.java:507)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

08-09 14:25:57.408: ERROR/AndroidRuntime(3327): at dalvik.system.NativeStart.main(Native Method)

<permission android:name="android.permission.DEVICE_POWER"/>

^^I do have that in my Manifest file..
[Android Software Development] andy572:
see this error:

java.lang.SecurityException: Neither user 10182 nor current process has android.permission.DEVICE_POWER.

has your app compiled/signed with system privileges or is the device rooted?

might be this can help you:

http://stackoverflow.com/questions/...e-android-application-with-system-permissions
[Android Software Development] jr10000:
I do not have my current device rooted..[Sensation 4G]

I am only running this application straight to my phone from eclipse.

How would i compile with system privileges?? without having to sign my apk everytime?
[Android Software Development] andy572:
you have a Android.mk "makefile",

look for the line "LOCAL_CERTIFICATE" - possibly it helps to set the value to "platform"
[Android Software Development] jr10000:
I noticed in this project of mine i did not have the Android.mk file! However, in other project builds of mine i DO!! o_O

Edit:

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

# Only build apk if this package is added to CUSTOM_MODLUES in buildspec.mk
LOCAL_MODULE_TAGS := optional

# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PACKAGE_NAME := toggle

# Make the app build against the current SDK
LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)
[Android Software Development] andy572:
do you build on windows or linux?

sorry, i only build custom roms under linux env, so i dont have a clue what windows with (possibly) eclipse is doing in build process.
[Android Software Development] jr10000:
im building under windows. But if need be i can copy over to linux ubuntu and finish the app there..
[Android Software Development] j4velin:
only method to screen off without signing with system key is to use the device administrator (requires 2.2+) and calling the lockNow method.

you can also start a black activity in fullscreen mode and change the displaytimout to a minimum. when you receive the screenOff broadcast then, you can restore the old display timeout & finish your activity
[Nook Color Q&A, Help & Troubleshooting] dna_d:
First I have to say I like the "similar threads" function, even though it did not help me this time.

Here is my issue:

My nook had CM7 with nightly 118. I had not used it in a while, so I tried to install 7.1 (which failed prob with a bad md5). I also downloaded nightly 153 which also failed...

I booted BACK and downloaded both again, but 7.1 still failed. nightly 153 went through though, but when I rebooted i got a black screen instead of the CM7 spinning logo.

I went back into recovery and installed my old nightly 118 and was able to get back to normal...or so I thought.

I tried to open G+ and it failed to connect, tried to open Market and it told me I needed a google account. I clicked on the yes button to add one and it took me nowhere. I looked under accounts and both my google account were missing. I tried to add them back, but I only had Corporate, Yahoo, and Facebook in the list.

Anyone have any idea what I can do to fix this? I assume I will just have to wipe it all and start from scratch, but I would prefer not to have to do that...

Thanks for any suggestions.

DnA
[Nook Color Q&A, Help & Troubleshooting] patruns:
Are you running CM7 off the eMMC or a SD card?
[Nook Color Q&A, Help & Troubleshooting] Johnvansavage:
Did you install the gapps?
[Nook Color Q&A, Help & Troubleshooting] stolenmoment:
This used to happen to me a lot, and the only reliable fix that I've found is to reflash gapps.

I don't know why it started, and I don't know why it doesn't happen to me anymore. Sometimes it happened when I reflashed CM7, sometimes it happened in the middle of routine use. It doesn't appear to happen to most people at all, but that might just be under-reporting because the symptoms seem totally random until you realize that anything needing access to your Google account fails.

Reflash just gapps. You'll have to sign in, and probably add your second Google account manually, but your data will be intact.
[Nook Color Q&A, Help & Troubleshooting] dna_d:
CM7 off the emmc, gapps already flashed, and I will try that! thanks for the replies!

DnA
[Nook Color Q&A, Help & Troubleshooting] dna_d:
Reflashing gapps worked like a charm! Thanks for the help!

DnA
[Nook Color Q&A, Help & Troubleshooting] stolenmoment:
Any time! If you come up with a better fix, please post it!
[Nook Color Q&A, Help & Troubleshooting] FloydF:
I had the same problem after ungrading to 177. Resintalling Gapps with only deleting cache did not work I had to reinstall Gapps deleting Data and Cache.

I don't understand what happened, but it all works fine now, so far.
[Nook Color Q&A, Help & Troubleshooting] stolenmoment:
Ouch, I've never had to wipe data to fix this, just reflash gapps.
[Samsung Galaxy S (4G Model)] pammiecaykz:
The other day I updated my phone to 2.3.4 using odin. after that I had a horrible wifi signal and i kept losing my data connection all together. So I flashed back to Froyo 2.2.1. I am so confused because my phone kept force closing, I did a factory reset and it stopped but it says my kernal version is 2.6.32.9...is that normal? Also how do I go about flashing a good rom to my phone? The way it is now it is soooo slow which is why i updated to the 2.3.4...any information would be helpful as I am ready to throw my phone out the window. :mad:
[Samsung Galaxy S (4G Model)] joedeveloper:
Which 2.3.4 ROM did you flash via ODIN? KG4/KG6 both show less wifi signal but I actually haven't seen a difference in speed. I'm on this one right now:

[ROM] Stock Deodexed T959VUVKG4 with Root [Gingerbread 2.3.4][7.26.2011]--Whitehawkx

http://xdaforums.com/showthread.php?t=1187293

The way to properly get to that is by doing the following:

1. ODIN

[ROM-Leak][ODIN] Gingerbread 2.3.4 T959VUVKG4

http://xdaforums.com/showthread.php?t=1183413

2. Then boot up like normal and wait for it to load up into the system.

3. Turn off your phone again (shutdown) and put it back into download mode.

4. ODIN this to get CWM+Root http://xdaforums.com/showthread.php?t=1194032 (use the ODIN version)

5. Keep lagfix disabled via the voodoo menu in recovery after you flash the CWM+root+Voodoo EXT4 package in the link in step 4.

6. Boot into the system. It's up to you, I flashed this

[ROM] Stock Deodexed T959VUVKG4 with Root [Gingerbread 2.3.4][7.26.2011]--Whitehawkx

http://xdaforums.com/showthread.php?t=1187293

Which is a deodexed build which allows you to theme etc.

Some people have had issues getting onto EXT4 partitions while on a gingerbread ROM. I had a few issues myself. Needless to say there are several places to read about how to get EXT4 working on all partitions if you want to.

Best of luck, hope this helps.
[Samsung Galaxy S (4G Model)] pammiecaykz:
Well to be completely honest, I don't know anything about partitions. All I know is that I updated my phone and then all of a sudden I had a horrible wifi connection and my data connection would just drop out all together and say "searching". I would have to reboot my phone 2 or 3 times to get it working again. What is a good rom to update to? Is have the kernal build that I do going to be an issue?
[Samsung Galaxy S (4G Model)] joedeveloper:
Please read the post above and follow the steps and links and you will be fine :)
[Thunderbolt General] MisterDonut:
To: ALL

I got the TB first week of its release. I was its biggest fan, defending it, learning everything about it, rooting , roming, kerneling, tweaking. Everything like a normal flashaholic would do.

To set the Hate straight, I adore HTC because its rooted in my DNA and I support my countries products. But OMFG the Thunderbolt is a bust. I know our natural reaction is to defend it because most of us are locked up for 2 years, and maybe some even spent cash to buy this phone out of contract. God bless you.

But this phone has not lived up to the hype. not one bit. This is not the phone of my ****ing dreams. all i see is the potential for this phone to be great. While we are waiting for this potential to happen, other phones are slowly coming in and smashing our Dreams..

The sooner we can be honest with ourselves is when we can finally appreciate what this phone is. Its average, maybe its better then the older phones, maybe this was the next gen android, but this is the pre alpha next gen android.

If i was going to buy anything based on potential and speculation i would buy this phone for $100.. if i were to buy a phone of my dreams, then i would pay $250..

1st round BUST.
[Thunderbolt General] TabGuy:
I like the TB but have three advantages over most people.

1. I didn't have any expectations going into the purchase. When I found out that Verizon was going to tiered pricing I just looked at the available phones and picked the TB. A colleague has one and he had good reviews. It replaced my ageing Droid Incredible and has done a fine job of doing that. Not having expectations makes a phone better. I didn't set the bar higher than the device could live up to.

2. I don't change ROMS. I'm happy with the stock phone based upon #1 above.

3. I'm in a situation where I don't have to worry about contract length. If I want to change in a few months, I will. It puts a lot less stress on me to make sure the phone performs. I'll probably have a different phone by the end of the year.
[Thunderbolt General] failsaf3:
I love my Thunderbolt. Now that I'm running CM7 and a custom kernal it great. I had an Eris for 18 months, I know pain :D

Plus something better is always going to come along within months, it's the nature of the industry.
[Thunderbolt General] Jrocker23:
I have had my Tbolt since Launch and Im have been happy with it. I never experienced any of the issues that were reported around. Its done everything I could ask and running strong. I only rooted to have the wifi teather..
[Thunderbolt General] what25:
My only peeve with the bolt is that the screen won't turn off when I'm in a call.

other than that i am ok with it.

And i qualify for an upgrade within 6 months (didnt pay full price for the bolt either). hopefully vz will get a LTE nexus phone.
[Thunderbolt General] julesism:
sums it up quite nicely!
[Thunderbolt General] xionius:
At the time I think it was the best phone out. It's still holding up nicely for me. I'm curious what phone do you think is better and why?
[Thunderbolt General] scook9:
The TB is still the best LTE phone. For verizon in general though the DX2 and Droid3 are not bad options especially if you are not in a 4G area
[Thunderbolt General] Nate14:
+1
[Thunderbolt General] ScoobarSTI:
damn I've never been so happy with a phone before, does everything short of getting me off.
[Thunderbolt General] BennyJr:
I love my TB. If u think its pre alpha or whatever u can wait. But in the end ur always going to be waiting cuz there is always going to be a phone thats better then the last one.
[Thunderbolt General] davidstech11:
So far the pros have outweighed the cons. Not many smartphones will deliver 35+Mbps download speeds. I at times get data speeds that is faster than most peoples home wifi. Of course its not perfect. It also has things I don't like. But I intend to keep it until the next HTC with LTE is released.
[Thunderbolt General] saintfurion:
TB has been awesome here. I had misgivings originally but after the radio update from stock it has been perfect ever since. I am eligable for my upgrade in a few months but will be sticking with this thing for a while.
[Thunderbolt General] bthomp21:
this right here
[Thunderbolt General] animez:
Add me to the loving my TBolt since launch group. It's still the best LTE phone on VZW IMO. That could change when the Bionic drops, but by then I will have been enjoying this phone for 6 months. I'm a patient man, but not that patient.

Sent from my HTC Thunderbolt
[Thunderbolt General] ddgarcia05:
I've got no patience. I bought my TB on January and since I've bought a INC and OG Droid. I haven't even received the droid but I want a Droid 3 now. I'm actually thinking of selling my Glock for the Droid 3 but I know in 6 months I'll feel bad for doing it.

Edit: The Tbolt is a great phone I'm just bored already.
[Thunderbolt General] TDubKong:
I got my Thunderbolt about a month after release and other than the battery life I have had no complaints. There will always be things that it owuld be nice to change on any phone.....(hence rooting). But even the things I can't change are still ok to me. I got in before the tiered plans started and when the bionic comes out I am seriously considering it but if I don't get that and I wait a bit longer these things I know for sure when I get a new phone.

1) It will be a 4G LTE phone. 4G is exceptional in the Spokane area and I am addicted to the download speeds. After playing with my sons phone and my wifes Droid X, I will happily stay with 4G

2) I want a same size screen. (Just cant imagine squinting my eyes to see my phone screen again

3) It will have to be a VZW phone because other than AT&T nobody else has as good a connection to me

4) I gotta be able to root it because crapware\bloatware sucks
[Thunderbolt General] loonatik78:
someone please close this thread.
[Thunderbolt General] yareally:
I agree. The OP is a reoccurring troll.
[Thunderbolt General] mrkite38:
If he was trolling I think he's failed pretty miserably. Every post has been pro TB.

I'll leave it for now. If it goes south...

Subscribed. ;)
[Thunderbolt General] choder:
It also does simultaneous data and voice on 3g and 4g. I love that, being on a call and able to look up emails or browse maps. Or still be tethered to my computer and use the internet while talking on the phone.
[Thunderbolt General] CanesDrew:
Ha! So yeah if the party on the phone is yapping too much and you get bored, instead of falling asleep or being rude and hanging up, you can surf Facebook or play Words with Friends all while saying "Uh huh" and "Yeah!" to keep the convo going! lol
[Thunderbolt General] loonatik78:
C'mon people.... He's right! We've ALL done it now that we can!!!
[Thunderbolt General] CanesDrew:
I swear that I've never done that on a phone call with my fiancee when she's talking about something that I'm sure was very important.

Absolutely not. ;)
[Thunderbolt General] loonatik78:
Oh god.... I wonder how many of my posts have been written while this "whah whah whaaaa, wah waa wah whahhh" was coming outta the phone! Female voices seem to do that a lot on my phone, especially my mom's.
[Thunderbolt General] ByteSizeSln:
Happy after rooting

Got mine 2-3 weeks after launch so as to not get burned by the 2yr contract. Yes, been through the rebooting issues, hence why I rooted - figured I couldn't break it more :-)

Been lurking for months, time to help others if I can.

VZW currently has nothing better to offer & isn't more able to handle the features of this phone. Sense is nice & "pretty" (just wait for the GB release; previews nice), but AOSP freakin' flies! RAM to spare & no lag.

Keep reading & learning OP, there's more than meets the eye :)
[Thunderbolt General] theryanguy:
So, it's not supposed to do that?

Signature.
[Thunderbolt General] CanesDrew:
Well I'm pretty sure that if it doesn't officially, some creep on here would find a way.

#desperatenerdswilldoanything
[Thunderbolt General] fixxxer2008:
coming from the evo4g id have to say the tbolt is 10x better. i haven't had many issues with my phone at all. lets face it, verizon doesn't have the best looking phones except this one. and no your not locked for two years, you can purchase another phone out of pocket if you want. that's what ill be doing if and when the sg2 hits verizon.
[Thunderbolt General] dajogejr:
I'm very happy with the phone, and I agree with some it's the best LTE on VZW right now.

That being said...I like the form/size of the HTC Sensation better. I've had a T Mo test unit in my possession for a month. I like the little things better.

The power button sticks up more, the screen is a bit concave as to not scratch it when you put it down.

I'm very happy with my phone....and I bought it outright so if something does tickle my fancy in a few months...like...say....a thunderbolt 2...:)
[Thunderbolt General] sithdroid2187:
Dude, never sell your tools of defense for a toy.
[Thunderbolt General] simp dogg:
No Bust.

Rooted Thunder
[Thunderbolt General] conadg:
selling a gun for a phone thats blasphemy
[Thunderbolt General] 2k10MBC300SPT:
as quick as possible
[Thunderbolt General] BoulderGeek:
My Thunderbolt with Skyraider Zeus Preview (GB) is fantastic. I tried the Evo, Samsung Captivate and original Nexus One, prior to accepting the TBolt.

I would have gotten a Sensation if TMobile had better pricing.

But, the TBolt is acceptable if not superior in every category. Acceptable battery with tuning, superior data connectivity, for example.

I love my Springfield XD-m and my Tbolt, and I don't have to get rid of either, nor will I! Both carry and perform well, and are safe, high performance and stylish. ;-D
[Thunderbolt General] ddgarcia05:
Yeah, I know. I've got many tools of defense.

Sent from my Nook Color running CM7 nightly 74.
[Thunderbolt General] rajuabju:
lolz.

wahhh wahhh wahhh
[Thunderbolt General] andr0id23:
I've loved my phone since I got it. Maybe the OP hasn't figured out how to use it, or had to high of expectations. I love HTC phones and the bolt is no exception. Mine is rooted/rolled/hacked and does everything I need it too. I currently own 5 Android phones and a Xoom, and the Bolt is what I use the most. It isn't lacking in form or function compared to any of my others. There will always be room for improvement, and always will be newer and/or better devices coming out, but if you know what your getting into and know how to utilize what you have to the fullest, then the Bolt can satisfy even the most advanced users. Of course you may not personally like it, but that in no way means it is a bust in general.
[Thunderbolt General] VolDroid:
Now that my reboots seem to have been fixed with the new radio, my biggest and only complaint is the battery life. I'd like to be able to play a game or watch a video or actually use some of it's features and power without having to have it plugged up while doing so. I don't have a extended battery due to the size and odd feel it puts on the phone and it won't fit into the car dock. Other than than I love the phone and my family keeps trying to take it from me.
[Thunderbolt General] ScoobarSTI:
Check out my sticky there's a huge list of things you can do for battery life

http://xdaforums.com/showthread.php?t=1168433
[Thunderbolt General] nrfitchett4:
hmmm, name a better lte phone currently on the market...

Bionic isn't out yet and may not be better.

Revolution was never going to get the dev support.

Charge has the pretty screen but the TBolt being htc was always going to get better dev support.
[Thunderbolt General] hholland923:
what is the word on the bionic? last i heard it was delayed to oblivion. sad, it looked promising
[Thunderbolt General] lrs421:
I really don't know what the op expected when he started this thread...

Somebody should tell this dude the Thunderbolt is Chuck Norris approved.