Android Browser mucks up filenames of attachments with Space? - EVO 4G Q&A, Help & Troubleshooting

I noticed that when I email mp3s to myself (via Gmail) and later try to download those files to my phone via Gmail in the Android Browser (not the app, it has an entirely different set of issues, like no download option at all, only preview), the Android browser mucks up the filenames if there is a space in the filename.
I also noticed that the browser replaces "unsupported" characters like (, ), ' (so far tested) and replaces them with a _.
That's fine, but I just wished I didn't have to go thru all my filenames and replace the spaces with a _.
Is this an Android browser defect? Sorta feels like living in DOS 8.3 again not having support for spaces in filenames.

Yes, this is a (semi) confirmed issue with the Android browser. It doesn't seem to handle spaces in file names correctly.
http://code.google.com/p/android/issues/detail?id=3678
Mine is comment 4, if anyone is interested.

mkhopper said:
Yes, this is a (semi) confirmed issue with the Android browser. It doesn't seem to handle spaces in file names correctly.
http://code.google.com/p/android/issues/detail?id=3678
Mine is comment 4, if anyone is interested.
Click to expand...
Click to collapse
Good find! I put in my vote on that issue. Google needs to fix this pronto!

Related

[Q] Android 2.2 Email.apk - Copy / Paste

Is anyone interested in or capable of adding copy / paste functionality in to the Vanilla 2.2 Email.apk? This should be the source code [here]; I have no clue how difficult or possible this is, but it seems like it would be a simple enough problem to fix considering ALL of the other E-mail applications I have used have it.
The link again: http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary
You can press menu->more->select text... it works, though it's not exactly elegant. There needs to be a more unified c/p base on this OS.
EDIT: Nevermind, had read Email as Gmail. Sorry .
Wish I could help but I can't. On another note, I love how the copy/paste is on the HTC email program now. It brings up a magnifier box and two "selectors" to show where and to you want to copy from. Think it does it in the default browser too but Xscope is my default. Would be cool if it was the Android default way.

[Q] Help needed to change touchflo default programs...

I have an HTC Touchpro 2 with windows mobile. The touchflo bar at the botton of the HTC Sense homepage is nice with one exception...the inability to change default programs.
Let's start with the webbrowser for example. I do NOT like Opera. As a matter of fact I use Skyfire. Currently it's sitting in the PROGRAMS tab and then I have to choose the browser from there. I would like to set it up so that I can just go to the internet tab and hit the planet/web icon and it will launch skyfire instead of opera. Is this doable?
Then there are the bookmarks on the internet tab. I don't want this to be a political thread, so don't make it one. It comes programmed with CNN and ESPN on there. Well one, I do not like CNN and I'd much rather put FOX on there. Second, I don't much care for sports so I'd like to remove ESPN altogether. It would be nice if I could add my own bookmarks.
What about the other programs? Can I change the default calender? What about the text program? The text program is ok but when I am sending a message to 10 people, I dont like having to type in each number or go select each name one at a time. I'd like a text/multimedia program that will let me select multiple recipients.
I know this is a lot to ask but once you point me in the right direction, I'll get it. Thanks in advance for the help.
~Mike
This website's search function is your friend. Instructions on how to make Skyfire the default browser in the Internet tab:
http://forum.xda-developers.com/showthread.php?p=4476068#post4476068
Cookies Home tab Editor (which requires Cookies Home Tab to be installed also) lets you change the applications launched from the Sense tabs (Messaging, Calendar, etc. but apparently not the Internet tab?). Its also an awesome way to customize the home tab, and well worth having on your phone.
http://forum.xda-developers.com/showthread.php?t=633590
http://forum.xda-developers.com/showthread.php?t=625483
nativetexan210 said:
Then there are the bookmarks on the internet tab. I don't want this to be a political thread, so don't make it one. It comes programmed with CNN and ESPN on there. Well one, I do not like CNN and I'd much rather put FOX on there.
Click to expand...
Click to collapse
If you don't want to make it a political thread, why not just say "I want to change the website shortcuts" ? You can want to change it from CNN to Bang Bros for all the heck we care.
Changing the website shortcuts in the Internet tab is simple. In the Internet tab, just touch Menu, remove the shortcut, then add the website of your choice.
Thanks.
Well, I guess that's a start. I was hoping to not have to install a different home screen or tabs slider, maybe I have the wrong idea about the Cookie app, I'll check it out.
Good point on the political part. I still honestly didn't want a political debate on my news choices but I could have gone with a different example. As for going into Opera and deleting the bookmarks and putting my own, that doesn't effect the pre-programmed bookmarks on the Internet touchflo tab. I think that removing those bookmarks will take some actual digging into the phone system files.
As for changing the default browser, yea, that part wasn't so hard. What I meant was that I wanted to open the internet touchflo tab and click the internet icon and have it open Skyfire instead of Opera, changing the default SYSTEM browser only affects what browser is used when opening hyperlinks from texts or emails.
Thank you for your suggestions though. They ARE greatly appreciated and I will check out the apps you suggested. As for the search function, I hate it because I can never get a narrowed set of results that apply directly to what I'm looking at. I'll try again though. Thanks again.
scratch that, I just looked at the first link you posted about the internet, I think that was PRECISELY what I was looking for. Thank you.
nativetexan210 said:
Well, I guess that's a start. I was hoping to not have to install a different home screen or tabs slider, maybe I have the wrong idea about the Cookie app, I'll check it out.
Click to expand...
Click to collapse
Yes, the CHT re-skins the home screen. It has awesome customizations, but it does use more program memory (some complain that it slows down the TP2 too much). So if you're on the fence, it might not be for you.
nativetexan210 said:
As for going into Opera and deleting the bookmarks and putting my own, that doesn't effect the pre-programmed bookmarks on the Internet touchflo tab. I think that removing those bookmarks will take some actual digging into the phone system files.
Click to expand...
Click to collapse
You aren't reading my post very carefully. I didn't tell you to delete the bookmarks in Opera. While in the INTERNET TAB, select menu, pick "Remove Favorite Shortcut", select "Done". Then select "Add Internet Shortcut" and pick the website of your choice. I haven't been using the stock ROM for a long time now, so it might be setup a bit different. But I don't think so, from my recollection.
Yea, I misunderstood. Sorry. That might be due to the fact that upon opening the Internet Tab, there is no menu button. Tapping and Holding on a bookmark does nothing (i.e. circle of dots...onscreen "right click" menu), and the soft keys only show Browser and Bookmarks. Browser is obvious. Bookmarks, well that lists two bookmarks that AREN'T the "permanent" bookmarks I was talking about.
But I should note that I have found the solution, kinda. If you search the phones system files (via computer) go to /application data/manilla/InternetPortal-en-us.xml then you can edit the default browser AND add/remove "permanent" links. Now I say I KINDA figured it out because unfortunately my .xml is write protected. Even if I right click and open the properties, uncheck "read only" it still remains write protected. If I create a new file, similarly named, the phone for some reason ignores the new .xml file and reads as if there is no .xml (provided that I remove the original, as I'd have to in order to make a new one)
So I'm about to try and figure out how to edit this .xml. I'll figure it out and when I do I'll post the solution on here. Wish me luck...I'm SOOOOOOOO close to getting this right.
nativetexan210 said:
That might be due to the fact that upon opening the Internet Tab, there is no menu button. Tapping and Holding on a bookmark does nothing (i.e. circle of dots...onscreen "right click" menu), and the soft keys only show Browser and Bookmarks. Browser is obvious. Bookmarks, well that lists two bookmarks that AREN'T the "permanent" bookmarks I was talking about.
Click to expand...
Click to collapse
Are those 2 links that you see under "Bookmarks" in the Internet tab the CNN and ESPN shortcuts, or something else?
nativetexan210 said:
But I should note that I have found the solution, kinda. If you search the phones system files (via computer) go to /application data/manilla/InternetPortal-en-us.xml then you can edit the default browser AND add/remove "permanent" links. Now I say I KINDA figured it out because unfortunately my .xml is write protected. Even if I right click and open the properties, uncheck "read only" it still remains write protected. If I create a new file, similarly named, the phone for some reason ignores the new .xml file and reads as if there is no .xml (provided that I remove the original, as I'd have to in order to make a new one)
Click to expand...
Click to collapse
If I remember properly, the trick the un-write protecting the Manila files, is to copy them (use Total Commander or similar, not the built-in File Explorer) to another directory. Then go Properties, uncheck Read Only, then copy back to the Manila directory to overwrite the old file. Save a version of the un-edited .xml file just in case you screw something up.
Yea, those two bookmarks are something else. Sites that I personally bookmarked IN Opera. I hit that softkey and it opens Opera and takes me to the bookmarks in the browser.
As for editing the file. I already messed it up. Copied to my desktop, edited that in notepad, and copied it OVER the existing file without thinking. As SOON as I started the copy I realized that I failed to make a backup. ****. Unfortunately, now my phone acts as if InternetPortal-en-us doesn't exist. It opens up my systems default browser (which IS skyfire) but the first screen isn't google like I specified in the XML, instead its an Error 404 type screen that says it can't find "\Search\\Home" or something like that. I also edited the permanent bookmarks, deleted youtube and espn, edited cnn to show fox. Now only 1 bookmark shows up...and it isn't Fox like you would hope...no, it's youtube.
I can't figure out how it defaults to youtube nor can I figure out why, with no programming errors or file-name errors, my phone believes that the file doesn't exist. I downloaded Total Commander and edited the properties of this file to read as READ-ONLY and SYSTEM but that didn't help either.
So, do you have any fix ideas? Yes, I know it's a good idea to make a backup, I typically do. I just got impulsive and reckless. Moved too fast.
I'm out of ideas. Personally, I don't use the Internet tab. In fact, I turned that tab off. My browser is one of the quicklinks on my home tab. It might just be easier to go that route.
If you want to return the Manila file to the way it was before, and don't mind losing your data, customizations, etc., a hard reset will restore the phone to factory condition. Go to Start>Settings>System>Empty Storage.
Well I thank you for your help thus far. I have been thinking about a hard reset but it really isn't worth it. I don't use the internet tab either because I use skyfire. So I'll either disable the tab or try one last thing. My father has the same phone. Service and model. I'll try copying the file from his phone and hopefully it works will with mine. I can't find anywhere on the web to download this file so this is my last logical resort.
nativetexan210 said:
My father has the same phone. Service and model. I'll try copying the file from his phone and hopefully it works will with mine.
Click to expand...
Click to collapse
This should work just fine.

DELETES PICTURES!! -possible bug?

Really strange bug....follow me on this:
take pictures, pictures are automatically stored on phone in directory /mnt/sdcard/dcim/100andro....
move pictures to hidden directory called /mnt/ext-card/.specialuse
pictures move just fine, and are readily availible in hidden directory....until I restart the phone, at which point, only the pictures from this phone (not other files or videos) are deleted from the .specialuse folder, no warnings, no pop up...just GONE.
The strangest thing is, it only deletes the files I have added to that directory recently....not the older video files already present.
I have created a .specialuse folder on the phones memory at /mnt/sdcard/.specialuse and it does the same thing....
When I remove the . in the folder name (making it visible) and copy the picture and reset the phone...nothing happens (meaning it keeps the pictures like it should).
WHY does having a .directoryname cause the phone to automatically clear pictures from said directories? My X10 did not do this, only my ION does this.
Anyone have any ideas? Has anyone else had this happen? Thanks.
lmbea4 said:
Really strange bug....follow me on this:
take pictures, pictures are automatically stored on phone in directory /mnt/sdcard/dcim/100andro....
move pictures to hidden directory called /mnt/ext-card/.specialuse
pictures move just fine, and are readily availible in hidden directory....until I restart the phone, at which point, only the pictures from this phone (not other files or videos) are deleted from the .specialuse folder, no warnings, no pop up...just GONE.
The strangest thing is, it only deletes the files I have added to that directory recently....not the older video files already present.
I have created a .specialuse folder on the phones memory at /mnt/sdcard/.specialuse and it does the same thing....
When I remove the . in the folder name (making it visible) and copy the picture and reset the phone...nothing happens (meaning it keeps the pictures like it should).
WHY does having a .directoryname cause the phone to automatically clear pictures from said directories? My X10 did not do this, only my ION does this.
Anyone have any ideas? Has anyone else had this happen? Thanks.
Click to expand...
Click to collapse
It's because of the "dot" at the beginning of the folder name. Android uses this method by default for it's own purposes. It's a possibility that this phone is seeing that and it "confuses" it so to speak. Try this...
Make your folder and name it whatever you like, with NO punctuation in the name..
Now... Inside that folder, add a ".nomedia" file, but without the quotes
The photos should remain hidden in the gallery, but only visible in a file manager of sorts.
Quickpic in the market is an alternative gallery, that has the ability to hide folders, using the nomedia method. Works great.
...And now I'm gonna go check if all of mine are still there....
yeah but BUG
I agree, and that's what I had been doing after I noticed the deletions....but my x10 didn't behave that way, and my tablet (running 4.0.3) doesn't behave that way.....so, yes, this is a bug.
lmbea4 said:
I agree, and that's what I had been doing after I noticed the deletions....but my x10 didn't behave that way, and my tablet (running 4.0.3) doesn't behave that way.....so, yes, this is a bug.
Click to expand...
Click to collapse
Well, not necessarily... Depending on how the overlay of Android is set up...The overlay from Sony I mean... It "could" be written to behave this way. Bear with me for a few days... I'm going to run some tests on my own phone with some pictures to see if I can reproduce the issue, and if so, try and find a solution.
If you like, I can use the same pictures you were, with the same folder names. That is completely up to you, as only you know what these are... But if you like, PM me, and I'll give you my email address, so we can resolve this.
CONFIRMED!!! At least on my phone... There is no pattern to it, that I can determine... I used several folders in my experiment. Some with, and some without a .nomedia file. And some with and without a dot before the folder name. At random, 5 different folders, still have their folder names, but have no pictures. All 4 possible scenarios were effected, and the fifth actually goes to a standard folder name with a .nomedia file in it.
So basically, my experiment proves nothing more than this is still unsolved, and not specific to one person.
(Just for sh**s and giggles, I am attempting to recover the lost files using some software I have... Just to see if its do-able, should this effect someone else... I'll report back later tomorrow)
Quick question, which file manager are you guys using to move these files? There was some update to Astro a while back that made my files get deleted when I moved them, anywhere regardless of the folder name on my Aria. Same thing still occurred on my Ion when I got it. Ever since I switched to ES File Explorer, I have not encountered this issue of deletion. Astro deleted not only pictures when I moved them, but ring tones, pdf, etc.
Sent from my LT28at
BUG!
Astro moves the files over just fine...and they are there..and accessible... until you reset the phone. Then...BAM, gone. It is disturbing to think that it may delete pictures in regular directories....BUG BUG BUG. hopefully the ICS update will address this.
That's exactly what I am talking about. They didn't disappear on the spot when I moved them. Everything seemed fine. Just give es a try and thrnreboot to see if it's the app or if it's the phone deleting your media.
Sent from my LT28at
iJudgeMAN said:
Quick question, which file manager are you guys using to move these files? There was some update to Astro a while back that made my files get deleted when I moved them, anywhere regardless of the folder name on my Aria. Same thing still occurred on my Ion when I got it. Ever since I switched to ES File Explorer, I have not encountered this issue of deletion. Astro deleted not only pictures when I moved them, but ring tones, pdf, etc.
Sent from my LT28at
Click to expand...
Click to collapse
My experiment with this was done via a PC. these files were moved from my PC, via the USB cable, on a freshly formatted medium. I'm not sure when the deletion of these files occured, but it was within the first hour or so. the phone was NOT restarted, nor did anything FC.
I will be running more tests on this issue over the weekend to see if I can find some sort of pattern to this madness. I will be using various Galleries and File Managers, as well as my PC to perform these tests. I'll also be checking this time around to see if videos are effected at all. I will report back my findings on Monday...
Sidenote: The files that the phone deleted are very easily recoverable. the program I used (which I legally own) is called Easy Recovery Professional. Took about an hour to recover the 300+ deleted pictures.

Links not opening in Chrome

I just got my Pixel XL yesterday since I've set it up I've had this problem. When I open links, regardless of the app I open them from, they do not open in Chrome or whatever I have set for my default browser. Instead they open a sort of overlay WebView window. To clarify, these are not opening in the apps internal browsers (Like what is available in Twitter or Facebook). I have cleared all the default handlers, changed default browsers, tried from multiple apps, but this continues. I even did a chat with Google support and they claim this is supposed to happen. I have a video below of what I'm talking about. In the video I am clicking a link and instead of Chrome coming up, a window appears on top of Twitter and the link is rendered there.
Does anyone have any idea what would be causing this?
https://youtu.be/NHeNalBXG7s
Do you have any 3rd party browsers installed or any "multi-window" apps installed?
Scott said:
Do you have any 3rd party browsers installed or any "multi-window" apps installed?
Click to expand...
Click to collapse
I do not. Chrome is the only installed browser. Every app I have was also on my S7 before I switched and it did not have anything like this going on, even on the Nougat beta. I have never seen anything like this before.
Gotcha, and what app are you using to show the links to begin with? Sorry if I missed it in the OP.
EDIT: It has to be the originating app?
Scott said:
Gotcha, and what app are you using to show the links to begin with? Sorry if I missed it in the OP.
EDIT: It has to be the originating app?
Click to expand...
Click to collapse
This happens regardless of the originating app. It happens in Gmail, Inbox, Facebook, Twitter, my Reddit client, everywhere that has links that would normally be handled by the default browser.
This is part of nougat.. kind of.
Previously in android apps could use something called web view. Basically it was a built in generic mini browser that the app developer could customize to their liking and make it look however they wanted.
Now with Nougat they are trying to keep everything looking similar so apps can now use the mini browser thing which is part of Google chrome. Sounds like those apps your using might be using the old web view still
aholeinthewor1d said:
This is part of nougat.. kind of.
Previously in android apps could use something called web view. Basically it was a built in generic mini browser that the app developer could customize to their liking and make it look however they wanted.
Now with Nougat they are trying to keep everything looking similar so apps can now use the mini browser thing which is part of Google chrome. Sounds like those apps your using might be using the old web view still
Click to expand...
Click to collapse
This is not a WebView window like I've ever seen. Nor is it a Chrome Custom Tab. I have never seen anything like what my video shows.
I guess I'm just going to have to do a screen share support call with Google and hope they have a solution, even if it is a factory reset.
Have you tried opening your Google app from the app drawer, going into settings > accounts and privacy, and disabling "open web pages in app"?
Ya, this is a confusing one.
moot4prez said:
I just got my Pixel XL yesterday since I've set it up I've had this problem. When I open links, regardless of the app I open them from, they do not open in Chrome or whatever I have set for my default browser. Instead they open a sort of overlay WebView window. To clarify, these are not opening in the apps internal browsers (Like what is available in Twitter or Facebook). I have cleared all the default handlers, changed default browsers, tried from multiple apps, but this continues. I even did a chat with Google support and they claim this is supposed to happen. I have a video below of what I'm talking about. In the video I am clicking a link and instead of Chrome coming up, a window appears on top of Twitter and the link is rendered there.
Does anyone have any idea what would be causing this?
Click to expand...
Click to collapse
I watched your video. Yes that's different from what I get. Looks kinda cool. Looking forward to hearing what Google tells you.
A factory reset did the job. The only explanation I can think of is that for some reason my phone couldn't set a default browser. Anything that had an open to go from internal to external browsers (such as Twitter or Facebook) showed "Open in" instead of "Open in Chrome" even though my system settings showed Chrome as my default. Also, one of my default browsers listed was the Setup Wizard. I am thinking this is shenanigans from doing a USB transfer setup from an S7 on the Nougat beta.
Thanks to everyone for the suggestions!
moot4prez said:
A factory reset did the job. The only explanation I can think of is that for some reason my phone couldn't set a default browser. Anything that had an open to go from internal to external browsers (such as Twitter or Facebook) showed "Open in" instead of "Open in Chrome" even though my system settings showed Chrome as my default. Also, one of my default browsers listed was the Setup Wizard. I am thinking this is shenanigans from doing a USB transfer setup from an S7 on the Nougat beta.
Thanks to everyone for the suggestions!
Click to expand...
Click to collapse
The good news is you got it straight! :good:
Sorry to necro, but I have this problem now and I'm really not trying to factory reset after all the work I've done making this phone mine. Are there any developments on this? The WebView thing doesn't support YouTube which is killing me the most. A Google product that doesn't support YouTube...madness....
If anyone else finds this, disabling the Setup Wizard app resolves the issue. That app just tries to open all links rather than letting the default browser do the job.
I went through this exact situation, and couldn't figure it out. Here is a link to the thread i had started going through the entire process, its about 3 pages. It started with gmail, then got widespread. My end result was a reset also.
Here Is The Thread

post attachment limits

cc: @AquilaDroid
When attaching files to posts, what are the size limits? Do they vary by file extension? By thread? By user?
Someone wanted to share a 180KB text file. I said "just attach it, I've seen much bigger files." He found he was forced to break it into pieces.
I went through the motions of attaching a 40MB PDF file. It ground away a bit, and seemed to have accepted and uploaded the file. I deleted the attachment before posting, but it really looked like it was going to let me do it.
This would be something to ask to @MikeChannon, please?
I'm also interested in this because the other day I needed to attach a small 200KB txt file but was unable to do it. The file was uploaded but not recognized: the posted message did not contain the attachment.
So my bonus question to Mike is: are txt and log (for instance) extensions allowed on xda currently? If it's not the case it would be appreciated to add them because txt/log/whatever are basic to me.
@J.Michael's concerns are interesting.
Thanks.
In another thread, people regularly attach .txt files. When I try to "open" the attachment in my browser, instead of displaying the file in a browser tab (which I want), it gets downloaded. Add to the nuisance of having to open another app and navigate to the Downloads folder, the subsequent bug hunt for a file whose name I did not get to choose, which name was never clearly displayed to me.
It may be that those text files are less than 20KB.
woodman said:
This would be something to ask to @MikeChannon, please?
I'm also interested in this because the other day I needed to attach a small 200KB txt file but was unable to do it. The file was uploaded but not recognized: the posted message did not contain the attachment.
So my bonus question to Mike is: are txt and log (for instance) extensions allowed on xda currently? If it's not the case it would be appreciated to add them because txt/log/whatever are basic to me.
@J.Michael's concerns are interesting.
Thanks.
Click to expand...
Click to collapse
J.Michael said:
In another thread, people regularly attach .txt files. When I try to "open" the attachment in my browser, instead of displaying the file in a browser tab (which I want), it gets downloaded. Add to the nuisance of having to open another app and navigate to the Downloads folder, the subsequent bug hunt for a file whose name I did not get to choose, which name was never clearly displayed to me.
It may be that those text files are less than 20KB.
Click to expand...
Click to collapse
Yes txt, pdf, log files are already approved and with big size limits. The system uses "chunked" uploading.
A couple of points to note. It might be that on any one occasion the servers are at high load and might not co-operate nicely.
As for whether your browser opens or downloads a file, well that depends on you and the settings you have set in your browser. You have options to choose whether your browser opens or saves files and it can be set by file type. Different browsers can have varying options. In firefox go to Settings>General and scroll down for options for each file type. In Chrome settings can be changed via Windows see here.
Mike
Testing uploading txt file...
I've tried to upload a txt file from Chrome mobile, and it doesn't work, like the other day. Will probably try some other things later...
New test, uploading very small txt file...
In either Naked Browser or Chrome (on a tablet), trying to open the attachment (tap or take the trouble to long-press and select "Open in new tab") instead results in "download". I do not see any settings to specify handling as a function of file type.
Maybe it is because the URL does not look like a file name ("https://forum.xda-developers.com/attachments/test-txt.5384917/"), but the name of the downloaded file is clean ("test.txt"), and I am able to open image attachments in the browser, as opposed to being forced to download text files.
Can you confirm that a MIME type is being sent and just what it is?

Categories

Resources