yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] medlington:
Hi,

Appologies if this is in the wrong place, it keeps telling me this is not a Q&A forum but I cant find any other Q&A section and there appears to be questions in this one so here goes.

Im working on an app that will contain several large videos. I want the user to download the app 'empty' with no videos in so that it doesnt clog up their phone/tablet. When they use the phone there will be the option to stream these videos from youtube but if the user wishes they will have the option to download the video to SD card. This raises 2 problems for me as Im very new to this kind of programming, only worked with PHP and HTML untill now so getting a little confused, Ive looked at loads of tutorials now and not been able to find a solution.

1. What code do I use to download a file from the internet to the users SD card?

2. What code do I use to check if the file already exists. If it doesnt then the user will get the download option if it does they wont. I will also use this code to decide which video to play. i.e. if file is on SDcard then play that otherwise use youtube.

Does this sound like a good way to use large videos and is it correct to store on the SD Card rather than internal memory etc? I have read that if the video is stored in the raw folder then there is no point checking if it already exists as the app wont compile in the first place.

If anyone can help with any of thes either by providing the code or links to some relevant tutorials that would be great.

Thanks
[Galaxy S III Q&A, Help & Troubleshooting] lakshya666:
I have Revolutionary s5 rom v3 installed on my phone.... but there are some problems I am facing....... I can't install whatsapp...... and I have a problem with the gallery app..... I could not move on to the right side of the screen of the app...
[Galaxy S III Q&A, Help & Troubleshooting] kunal1540:
WhatsApp problem Is known for that rom

Search rom thread and q & a thread for possible workarounds.

For gallery you might have selected less than 320 dpi.

For gallery you should change your dpi to 320

Press thanx if i helped you in anyway...
[Galaxy S III Q&A, Help & Troubleshooting] lakshya666:
I got the solution for whatsapp issue.....

U must install the rom on 320 dpi....

thnx to you to let me know.....
[Galaxy S III Q&A, Help & Troubleshooting] sck84:
FIX - S3 Revolutionary S5?

why does my keyboard is smaller? How to fix? thank you!
[AT&T Samsung Galaxy S 5] jdock:
I've noticed the process /system/bin/secure_storage_daemon using a solid 24% cpu. I killed it just now and it restarted and is not sucking up cpu anymore. What is this? Does it interact with some app I can safely freeze? Can I safely rename it so that it can't run?
[AT&T Samsung Galaxy S 5] cstayton:
try what this user did http://xdaforums.com/showthread.php?t=2741696

There really isn't anything you can freeze that process is used by the device encryption options in settings if you rename it and try to encrypt your device the results could be less than stellar.

I plan on making some modifications to the settings.apk for some tweaks i might look at adding disabling device encryption as an optional component.
[8125, K-JAM, P4300, MDA Vario General] mikeysweet:
I dont know what happened but all of a sudden I can't hold down the #1 to get to my voicemail.

So basically I can check my voicemail when it comes in cause of the notification, but if I listen to it, I can't get back into my voicemail unless I search for the number in the recent called list. But that is unreliable cause I may have 50 calls before I can check my voicemail again.

I also tried assigning #1 the voicemail number but it won't let you.

Is there a regedit hack or something?

I have the CIngular 8125 with 2.25 ROM and ETN Dialer

Thanks
[Verizon Samsung Galaxy S III] downhillvinnie:
Which vetsion safestrap works

I am rooted running NE1 and tried 3.71 & 3.72 and neither one works....any ideas
[Verizon Samsung Galaxy S III] SlimSnoopOS:
We only have Safestrap 3.71 and it has not been updated since January. You're stuck on rooted KitKat.

I answered you in the Safestrap thread too.
[Samsung Galaxy Nexus] poo706:
6/24 is in the OP.

[poo]
[Samsung Galaxy Nexus] cervantesmx:
This is great, thanks! Will be flashing soon.
[Samsung Galaxy Nexus] AGoogleUser:
Works flawless with ART. No crashes or any bugs that I've seen. I'm using Vanir kernel and Slim 4.4.3 minimal Gapps. Great build.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Trident:
FYI, my anti virus is going crazy with this file, claiming that it's malicious.
[Samsung Galaxy Nexus] poo706:
That's so weird, someone on my grouper thread said the same thing: http://xdaforums.com/showpost.php?p=53527351&postcount=84 . Chrome and mediafire with you too?

[poo]
[Samsung Galaxy Nexus] orangecream:
Could you point me to where I can download the vanir kernel?
[Samsung Galaxy Nexus] poo706:
6/30 added to the OP.

[poo]
[Samsung Galaxy Nexus] orangecream:
Anitvirus still blocking these newer builds.
[Samsung Galaxy Nexus] poo706:
What antivirus, specifically? Have you tried the Google Drive mirror?

[poo]
[Samsung Galaxy Nexus] orangecream:
McAffee Antivirus Enterprise flagged the mediafire download as malicious.

But the google drive mirror downloaded just fine, and I even scanned it manually with it found nothing. Thanks!

---------- Post added at 02:14 PM ---------- Previous post was at 02:11 PM ----------

One more quick question. Do I need to reinstall gapps after every dirty flash?
[Samsung Galaxy Nexus] poo706:
Weird, yeah some people have issues with Mediafire and their AV for some reason. Maybe I should make it the mirror and GD as the primary... And nope, one Gapps flash is enough.

[poo]
[Samsung Galaxy Nexus] AGoogleUser:
Here you are chap.

http://www.emccann.net/jimsth/le_kernel/vanir_tuna/
[Samsung Galaxy Nexus] poo706:
7/7 added to the OP.

[poo]
[Samsung Galaxy Nexus] AGoogleUser:
Its my birthday today. So far, best gift yet. Thanks poo.
[Samsung Galaxy Nexus] poo706:
I made an odexed test build today if anyone wants to try it.

<removed>

Seems speedier, but I could be crazy. Don't know if it will play nice if you run a theme.

[poo]

Edit: Removed dropbox link, added to OP
[Samsung Galaxy Nexus] JohnCorleone:
I am a huge fan of odexed setups! I will flash it first thing in the morning. Thanks!

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2
[Samsung Galaxy Nexus] poo706:
I don't think I've run an odexed ROM since the gingerbread days, someone in another thread suggested I give odex a try. What is it about odex that makes you a huge fan? Does it still cause problems with themeing?

[poo]
[Samsung Galaxy Nexus] JohnCorleone:
You will always have to get your theme set and such before odexing and the problem comes with app updates but I have a script you flash that will odex any ROM including KitKat (except on KK the classes.dex and Dalvik aren't deleted.

Here's my opinion about odexed setups... they are more stable, system apps are faster and smoother and some say battery is a bit better. If you have a system app that's themed and odexed, you just delete the .odex file after the apk then it will update. On my HTC One M7 I have run ViperROM which is the MOST customized Sense ROM there is. Its like Sense mixed with all of the best features from CM, AOKP, PAC-MAN, etc and I had every app inverted and I odexed EVERY update from 4.1.2 up to 4.4.2 and NEVER had a freeze, reboot, or Force Closes. I am actually getting ready to flash this now...:thumbup:
[Samsung Galaxy Nexus] themirrorstruth:
What's the best kernel?
[Samsung Galaxy Nexus] poo706:
Can't go wrong with dirtyv.

[poo]
[Samsung Galaxy Nexus] poo706:
Added 7/12 to OP. New boot animation and L style nav buttons. It's odexed, which I'm going to keep doing for a while until we decide it's pointless or discover it's causing problems. I also reverted this commit: https://github.com/LiquidSmooth-Dev...mmit/c4ed156b6f63a6f3075b724f4c1a208c8b20c354 . Hopefully, people converting to F2FS will be able to use DirtyV after reverting that commit.

[poo]
[Samsung Galaxy Nexus] AGoogleUser:
Best kernel? Vanir.

http://www.emccann.net/jimsth/le_kernel/vanir_tuna/
[Samsung Galaxy Nexus] AGoogleUser:
No problems for me. Latest 7/12 with Vanir 1.1.0. Sick new boot animation! ART working FLAWLESS. *Battery charges faster/ lasts longer? I'm super amazed at your work. Great job!

*It could be just me, maybe its the same and I'm going crazy but my battery seems to last way longer and charge really fast. I'm talking from 10%-99% in 45 minutes. It lasts all day with medium use and screen at 20-45 brightness.

Sent from my Liquid Powered Nexus!
[Samsung Galaxy Nexus] poo706:
Awesome, thanks for the feedback. Are you f2fs, by chance? I can't say what's going on with the battery, if there's been any improvement, it wasn't anything I did.

[poo]
[Samsung Galaxy Nexus] poo706:
Would someone on f2fs be willing to try out a unified test build I made?

http://xdaforums.com/showpost.php?p=54173260&postcount=11085

[poo]
[Samsung Galaxy Nexus] JohnCorleone:
The best kernel is Lean in my opinion. Imoseyon is the original developer. Burstlam is building Lean and using it in his CMRemix ROM. I used it on every ROM when this was the new hot device and I always chose it over Franco, Trinity, Glados and the rest

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2

---------- Post added at 06:48 AM ---------- Previous post was at 06:43 AM ----------

I will give it a shot. Is it odexed?

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2
[Samsung Galaxy Nexus] poo706:
Yes, it's odexed. And don't install a separate kernel to see if you get stuck at the google logo. If you do, installing a f2fs kernel separately should get you back in business.

[poo]
[Samsung Galaxy Nexus] AGoogleUser:
I was thinking about F2FS. Not sure if I want to give up the kernel I use since I'm almost positive its not compatible.

Sent from my Liquid Powered Nexus!
[Samsung Galaxy Nexus] poo706:
I was looking for a f2fs tester when I asked that. Got it all taken care of now.

[poo]
[Samsung Galaxy Nexus] poo706:
7/15 unified added to the OP. Flash on either all EXT4 or all F2FS, no conversion required. Fancy r51 kernel included.

[poo]
[Samsung Galaxy Nexus] AGoogleUser:
I did it. Took me a while to get everything set up but in the long run everything still runs flawless for me. F2FS, Build 7/22, with SmittyV kernel and ART enabled. You are the man poo.

Sent from my Liquid Powered Nexus!
[Samsung Galaxy Nexus] uconnpat:
Have you guys noticed a big difference between davlik and ART
[Samsung Galaxy Nexus] JohnCorleone:
It really depends on your Gapps package. I believe that both Banks and the PA Gapps packages are fully ART compatible. I saw a pretty noticeable speed and fluidity increase when I tried Slim with Slim's Gapps but I like my inverted and/or transparent Gapps. As far as I know, Slim's Gapps toggle to inverted when you are in settings/Dark Mode still work when you switch to ART but I have to double check that with other ROMs with Dark Mode ....I think I will try it on this latest build in fact and report back late tonight or early tomorrow. One thing I did notice was my Hangouts app seemed to disappear each time I switched to ART. Lately I have been choosing the tiny Minimal package or Standard Banks and PA Gapps. By the way, both are proven stable across many devices.

As for me, I honestly have been forgetting to even try to switch to ART lately because these ROMs we have available have been buttery smooth and fast from first boot. I have some time to do some comparisons and maybe a video to document the difference in the next few days

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2
[Samsung Galaxy Nexus] poo706:
7/30 added to OP.

- Fancy kernel is now r53 (was r51)

- New logo in the About Phone area

- Advanced Backup/Restore (see the next post for details)

[poo]
[Samsung Galaxy Nexus] poo706:
8/4 added to the OP.

[poo]
[Samsung Galaxy Nexus] poo706:
8/7 added to the OP. Slim's calculator has been replaced with CM's.

[poo]

Edit: Please keep the suggestions coming! I'm always looking for ways to improve on the official LS.
[Samsung Galaxy Nexus] orangecream:
Hey Poo, can you explain or link some info on EXT4/F2FS and what is converting?
[Samsung Galaxy Nexus] poo706:
F2FS is a file system that was created with solid state disks in mind, as opposed to ext4, which was created with spinning disks in mind. So F2FS is capable of faster read/writes, which translates into faster operations that involve a lot of reading or writing.

You have to have a special ROM, kernel, and recovery to make all of this happen. ROMs that are intended to be installed on an EXT4-formatted device have to be converted to install them on F2FS. The conversion changes out the kernel for a F2FS-compatible kernel and changes a few lines of code that govern the installation of the ROM. My ROMs can be installed on either F2FS or EXT4 without having to worry about any converting.

[poo]
[Samsung Galaxy Nexus] poo706:
ATTENTION TOROPLUS USERS CURRENTLY ON LS-UNOFFICIAL 2014-08-07

I need testers! Attached is a DeltaJen patch (see http://xdaforums.com/android/development/tool-deltajen-t2839999) that will take you from 8/7 to 8/11, and yes, it is only 6 megabytes! This will patch all of the files that changed between 8/7 and 8/11. Unchanged files, files you changed, files you added, and files you removed will be all be ignored. The system partition will not be formatted. Flash from recovery like usual.

[poo]

Edit: Removed attachment, moved to OP.
[Samsung Galaxy Nexus] poo706:
8/11 added to the OP. Although, please test the patch from post #42 instead, if you can. You'll get the same result either way.

[poo]
[Samsung Galaxy Nexus] orangecream:
Thanks Poo, how do I convert to F2FS?
[Samsung Galaxy Nexus] poo706:
See the first couple of posts here: http://xdaforums.com/galaxy-nexus/development/kernel-dirtyv-6-9-14-t2613655.

[poo]
[Samsung Galaxy Nexus] orangecream:
While installing the deltajen file, I got a bunch of lines that say some package or some .so library "has unexpected contents. assuming fine." Other than that, everything seems ok,
[Samsung Galaxy Nexus] poo706:
You must be using the test that I posted in the middle of the thread. That's the message that you get when a file has been modified or removed and it should be ok. There's a newer version in the OP that informs you that "file.ext modified or missing. Skipping." Also, it only informs you once now.

[poo]
[Samsung Galaxy Nexus] Trident:
I thought I saw something about this but now can't find it.

Some of the apps are trying to update but can't without an update to Google Play services. When I try to update it, I get a message that it's not compatible with this device. Searches within the running Google Play don't show anything with that name. Little help? I know this should be an easy one.
[Samsung Galaxy Nexus] poo706:
Maybe try installing a more recent gapps? Looks like banks has a minimal from 7/29 and a standard from 8/11: https://s.basketbuild.com/devs/BaNkS/GApps/4.4.4/

[poo]
[Samsung Galaxy Nexus] JohnCorleone:
Going to download and try it out now. I haven't heard about DeltaJen yet but I like to test new things out. Actually I just read the OP again...

Edit...does 8/15 include the DeltaJen or do I add it after?

Edit 2...I went over and read the DeltaJen thread so now I understand the concept. Sounds like it will make updating a whole lot quicker

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2
[Samsung Galaxy Nexus] poo706:
The deltajen can be used if you're on a specific version of my unofficial liquidsmooth builds to take you to the next release. Like going from 8/11 to 8/15. If you're installing my rom for the first time, you need to start with the full rom zip.

[poo]
[Samsung Galaxy Nexus] JohnCorleone:
You beat my 2nd edit. Sounds like a great concept. I downloaded the 8/15 full so I guess I will get a chance to try it on your next update. Its nice to see this device still staying current

Sent from my Galaxy Nexus using Xparent Gray Tapatalk 2
[Samsung Galaxy Nexus] Klownicle:
Although I'm not worthy to give oppions on the above question.

I can say, I just installed this rom, haven't added anything except the gapps zip. But I'm getting no Deep Sleep. Pardon my understanding of the Android ecosystem, but I assume this isn't normal for this.

I wiped everything before, using EXT4 because I couldn't figure out how to format to F2FS unfortunately. I used TWRP for recovery but didn't see a F2FS option... but besides that everything else has been going smoothly. No 4G data yet as well, as I normally have it while in my office.
[Samsung Galaxy Nexus] poo706:
I don't think I've ever had deep sleep issues on LS, personally. I'd look into Better Battery Stats if I were you to try to track down the source. Keep me posted if 4G continues to be an issue.

[poo]
[Samsung Galaxy Nexus] Klownicle:
Just did a fresh morning look on F2FS, I finally found the updated recovery for this device that is supposed to support F2FS, so I'm going to play and reflash to get that. I just rebooted my device and was able to get a "signal" lock on LTE, but no data came up just showed "Out of Service/Disconnected". Its traditionally a low signal, which in some roms I've seen issues with that. But Stock Android and CM 10.2.1 was able to pick it up. I'm trying out new roms because I've been having a lot of phone app/google services/gallery related issues, time for a fresh start!
[Samsung Galaxy Nexus] orangecream:
Agree wholeheartedly with these changes. Personally I really don't use most of these apps, and if I do, I rather just install it manually myself. Less bloat is always a good thing.

There is one minor annoyance currently with this rom. For the life of me, I can't turn off vibrate. Especially for hangouts and sms. I specifically uncheck "vibrate" in hangouts settings for both google talk and sms, but whenever I get a message, the device vibrates nontheless. Anyone else notice this?
[Samsung Galaxy Nexus] poo706:
I haven't noticed the vibration bug, but then again I want my device to vibrate. Is turning of vibration completely an option for you?

[poo]
[Samsung Galaxy Nexus] orangecream:
Sure. Is there an option to turn off vibrations completely hidden in the settings somewhere?
[Samsung Galaxy Nexus] poo706:
With DirtyV or Fancy kernels, there's an option when using TricksterMod to set vibrator strength. You could set this to 0, I would imagine.

[poo]
[Samsung Galaxy Nexus] orangecream:
That worked. Thanks!
[Samsung Galaxy Nexus] orangecream:
Nope, on EXT4 for me. I haven't had time to convert to F2FS; seems like a complicated procedure. Is it really better?
[Samsung Galaxy Nexus] poo706:
I've never tried on my gnex, but I didn't think it was worth it on my nexus 7.

[poo]
[Samsung Galaxy Nexus] orangecream:
Hi Poo,

You posted the deltajen file for both download links. I'm looking for the full build because I skipped the last update.
[Samsung Galaxy Nexus] poo706:
My bad. Fixed now.

[poo]
[Samsung Galaxy Nexus] duffkitty:
Gotta give this one a go. I've been having some real sluggishness with what I have now and can't get Cyanogen to get LTE with Ting regardless of how I flash the APNs.

Since you made the Ting APN file I'm hoping this ROM will be the last I have to flash on this device.
[Samsung Galaxy Nexus] poo706:
I actually discovered by accident recently that the included apns work just fine on ting. I no longer need my special apns to get lte.

[poo]
[Samsung Galaxy Nexus] duffkitty:
There has got to be something borked on my device in regards to 4G LTE. It didn't work out of box even after turning it on. I flashed the Ting APNs for 4.3 because that's gotten it working before and nothing.

It's not just your ROM, it happens on CM also and a few others. However it would work fine when I was running the OmniROM Nightlies and I believe ParanoidAndroid. If I remember there was a carrier code to completely reset the radio stuff I may try that.

This all happened around 4.4 rolled around and even updating my Radio to the latest firmware still had the issue. It's absolutely bizarre. I guess in the grand scheme of things it's better so I don't use so much data :good:

Edit: So I did a Carrier Reset to just verify that it didn't work. But now I have flashed an APN Conf and tried too many steps to accurately troubleshoot anymore. And to any user who reads my post and gets worried that LTE doesn't work, I'm sure it's OK. My device just has this weird quirk.
[Samsung Galaxy Nexus] poo706:
Did 8/25 work ok? The apns xml file changed on 8/29, but I'm pretty sure none of the changes have to do with sprint.

[poo]
[Samsung Galaxy Nexus] duffkitty:
If what I'm doing now doesn't work I'll give that a shot. I just reverted to 4.2 Stock with the older radio and rooted my device and trying again fresh. I did flash These APNs though. I'm running out of time to play with it much more today though =(

I'll definately update you when I can though, and thanks!
[Samsung Galaxy Nexus] poo706:
Lte is working just fine for me with the 8/29 apns on ting, fyi.

[poo]
[Samsung Galaxy Nexus] knoc:
I tried putting the tranzcendence theme on and it gives me all.sorts of trouble. Works fine on Ls on my rezound
[Samsung Galaxy Nexus] poo706:
What's the date of the ls you have installed on your rezound?

[poo]
[Samsung Galaxy Nexus] knoc:
Last build. I dirty flashed newest and haven't tried to use it again
[Samsung Galaxy Nexus] poo706:
You're confusing me here. You're saying that 8/21 on your rezound was all good? And you installed 8/28, but you don't know whether it's all good or not?

[poo]
[Samsung Galaxy Nexus] duffkitty:
I'm posting this on LTE. I needed to flash the factory images, root and flash everything fresh. No more issues. Thanks =)
[Samsung Galaxy Nexus] knoc:
My rezound it worked on every build. This latest Build on gnex I haven't tested it on yet because I dirty flashed from the older build. But when I tried it on the older build I got system.ui errors left and right screen would go dim and come back all hell broke loose.. But the theme is a paid theme from.the market it works fine on my rezound running the latest ls but not on my gnex w
[Samsung Galaxy Nexus] poo706:
Hopefully the latest will fix it. If not, I can't imagine what the cause would be. I don't alter anything that should affect themes.

[poo]
[Samsung Galaxy Nexus] smopoim86:
LTE and 3g handoffs are working for me. I flashed 8-25 then delta to 29. I really wish the display color settings worked so I could lose the blue hue.
[Samsung Galaxy Nexus] poo706:
Check out trickster mod. I use Nephilim's settings myself.

[poo]
[Samsung Galaxy Nexus] knoc:
Theme works