So, I finally decided to create my first Android app. I wanted to create a simple Web View app for the Android Device Manager site. I followed this guide
https://developers.google.com/chrome/mobile/docs/webview/gettingstarted
There's a part of the guide where you need to add code to force the url to open in the Web View instead of a browser. I did that. On my Nexus 7, the app (and WebView url) loads perfectly. On my GS3 (and the emulator), I get the pop-up asking me which browser I want opening the URL. I'm not sure where the issue is. I've attached my code and If anyone could take a look at it and offer suggestions, I'd greatly appreciate it. Thanks! :good:
Related
I found this intersting topic
http://forum.xda-developers.com/showthread.php?p=5786377#post5786377
"I've figured out how to get Opera Mobile 10 Beta 3 to only display websites in desktop view without getting redirected to a mobile version of the site. UPDATE: Works in Opera 10 Final too!
The first 2 steps are pretty common knowledge, but they don't work for all sites. It's the 3rd step that makes every website work for me.
Step 1: Set a custom user agent string
This tells websites what kind of device you are using to browse the site (desktop computer, smartphone, etc).
Goto opera:config -> User Prefs -> Custom User-Agent
Find a desktop user agent string, type it in, and save. I'm using the one from my Firefox browser on my home desktop (it can be found by clicking Help -> About Mozilla Firefox). Mine looks like this:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
You can use whatever string you can find that works. I've even seen people use an iPhone user agent to get iPhone versions of websites.
Step 2: Spoof a user agent ID
This tells websites what client you are using.
Goto opera:config -> User Agent -> Spoof User Agent ID
Type in the number corresponding to a browser to identify as that browser
Global values:
1 = Opera
2 = Mozilla
3 = Internet Explorer
Site-specific values:
4 = Mozilla, Opera not mentioned
5 = Internet Explorer, Opera not mentioned
Don't forget to save. I have mine set to 2, so websites think I'm using Firefox
Step 3: Set custom HTTP_Accept parameters
This one is hard to explain, but it basically tells the website which versions (i.e. desktop or mobile) are acceptable for viewing.
Goto opera:config -> Network -> HTTP Accept
Type this in exactly:
text/html, application/xml;q=0.9, application/xhtml+xml, application/x-obml2d, multipart/mixed, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Please note that this is just the default entry minus the one element that allows for mobile/wap viewing.
Also in the Network section, go to HostName Expansion Prefix and delete wap from the list. Remember to save. Exit the browser and everything should work like a desktop from now on! You can go to www.whatsmyuseragent.com to check and see if everything is right. If you still want to view mobile versions of sites, you'll have to type in the specific mobile URL for that site (I keep mobile versions of my bookmarks just in case I get stuck on EDGE or a slow connection).
Hope this helps! If anyone with web-coding experience would like to explain further or correct anything I did wrong, please be my guest!"
by Eman3000; thx!
It's really useful and it does work everywhere.
However it takes ages to do it everytime.. can anyone make this process a lot faster? like write a .cab and/or a .reg?
Thanks
Loved it!
Been looking for alternative browser for this sole reason. Nice and easy workaround (with proper credits given and a link to the source... you rock). Thanks for the share.
The opera repo thread is riddled with so much "spam" posts that I'm sure I'd have never found it. Definitely the most useful hack I read in quite a while.
EDIT: I used this in Opera 9.5. Did some digging and this info seems to be stored in opera.ini (stored in Application Data in Opera's folder... don't know if this is a constant over versions) which somewhat makes the cab method unfeasable (considering that it would affect all of the other user settings...). Also compared complete registry dumps and nothing was changed so the reg method is out. Would be however possible to Mortscript this (may need to be adapted according to Opera version which could be a pain).
EDIT2: Searched xda and found this. Took a peek with MSCEInf and found these cabs just change a few lines in the registry (no files). No for my version but may interest you.
you also can use my free software "UA_Change" :
http://www.i900playeraddict.com/corwin.php?soft=evb_ua_change
or here :
http://forum.xda-developers.com/showthread.php?t=848812
All Opera Mobile/Mini versions: Official thread
Yes, there is great information collected in here, have a deep read to 1st page
frmariam said:
Been looking for alternative browser for this sole reason. Nice and easy workaround (with proper credits given and a link to the source... you rock). Thanks for the share.
The opera repo thread is riddled with so much "spam" posts that I'm sure I'd have never found it. Definitely the most useful hack I read in quite a while.
EDIT: I used this in Opera 9.5. Did some digging and this info seems to be stored in opera.ini (stored in Application Data in Opera's folder... don't know if this is a constant over versions) which somewhat makes the cab method unfeasable (considering that it would affect all of the other user settings...). Also compared complete registry dumps and nothing was changed so the reg method is out. Would be however possible to Mortscript this (may need to be adapted according to Opera version which could be a pain).
EDIT2: Searched xda and found this. Took a peek with MSCEInf and found these cabs just change a few lines in the registry (no files). No for my version but may interest you.
Click to expand...
Click to collapse
Glad it helped!
the setting are stored in "opera.ini" you said..
how about a banal copy-paste from the old ROM to the new one of this file?
I also use opera 9.7, latest build. Are the setting still stored in the opera.ini file?
EDIT: Someone says yes.. someone no.. mhmhm... Anyone has a proven answer pls?
What's Mortscript?
Corwin9S said:
you also can use my free software "UA_Change" :
http://www.i900playeraddict.com/corwin.php?soft=evb_ua_change
or here :
http://forum.xda-developers.com/showthread.php?t=848812
Click to expand...
Click to collapse
What you said changes only the UA
In the process I wrote in the first post there's other tricks not related to the UA setting. Also I don't speak french
but thx.
orb3000 said:
Yes, there is great information collected in here, have a deep read to 1st page
Click to expand...
Click to collapse
looked as deep as I could.. didn't find anything answering my question.. lol
So, opera is the best brower for android. I solved the problem by this way too. Thanks you for your tip, and opera too.
you the man
you are freaking awesome.. i would need a degree in networking to be able to do those stuffs
thank you
I currently have a CD for squaredancers that I sell. The app is a simple app that uses HTML tables and Adobe SWF movies. Samples of this app can be viewed at http://www.squaredancecd.com
I have copied all files to the MicroSD card, and clicked on the introductory page "welcome.htm"
The browser does not come up as an "opening" option, only the choice of HTML editor or HTML viewer...choosing the viewer, I get an error web page basically saying that it can't find content....although the actual hyperlink printed is long.
The same thing happens when I click on an SWF file...get the same response.
Thinking that it needed to be installed on the mnt/SDCard, I moved all files over to the Prime itself.....Still the same page came up.
If I open the stock browser and go to the "sample" website shown above, the pages display perfectly.
How do I get the program to run from the tablet itself. I am trying to stick with the stock browser, because I don't want to make users install a special browser just to run the program.
Can anyone help?
Thanks in advance
bump
Before buying my One X+, I used to own an HTC Desire HD.
In the Internet app, whenever I wanted to share a picture (say on Whatsapp, GMail, Viber or any other program) I used to long-press on the image, and from the popup menu, I would select "share image with", then from the new popup screen I would choose the program I want to choose said image from.
Now, with Jellybean, my only options are to:
Save image
View image
Set as wallpaper
or
Share link
no "share picture"
And unless I'm mistaken, this should be bugging a whole lot of other people too, as this is not limited to the Internet app, but the same applies to Chrome (where the only 3 options for an image long-press are "save, open or open in new tab"
Because of this, I now have to save the file, go to Whatsapp or to the Gallery app, select the picture, and share the picture, then when i'm done, i have to delete the pic from the gallery, because well... i don't like to pile up stuff i no longer need.
I searched the forum and the web, and couldn't find a fix for it.
Which is worse, either very little people are raising this issue, or I'm unable to find these posts... everybody with Jelly Bean is suffering from this problem, but Googleing for "share image with option directly from browser on Jelly Bean" doesn't really yield that many relevant results! The keywords are just too generic!!!
So my question is: Can this situation be remedied by some sort of add-on to Chrome Mobile, a custom apk that modifies Chrome's sharing options or something???
PS: I know I can share the URL of the picture, but that's not the point now, is it? I want to be able to share the picture, not its URL.
Update: I just installed Firefox Browser for Android, and it has the option to share an image directly from the browser! It's a pity I won't be using Chrome anymore since it's super fast and it allows for bookmarks sharing between my laptop and phone, but well... I guess I'll have to make do with Firefox for now.
I don't get it though... why would Firefox have the option enabled and Chrome be so retarded that way? Pity! Firefox even has an extension that allows for a full-screen experience, like with the Internet app!
Chrome needs to improve on these basic stuff real soon!!! For many, like myself, not being able to directly share images from the browser is a deal-breaker (as soon as I found a browser that could)
Hi everyone!
For those of you who want to give some extra behaviour to the browser key on the dock, here's one solution.
Although mod Aroma "kind of" does this, it should be noted that this solution is easier to recover from.
The browser key launchs any apk with ˋcom.android.browser.BrowserActivity´ as main activity, so I made a small app that mimics that.
It gathers a list of installed browsers and prompts a choice to the user; With the help of intents.
You can build it directly within the prime using AIDE, as it was coded in it.
GitHub repository: github.com/bit2shift/BrowserShortcut
In order to install it, you first need to remove the stock browser. Use Titanium Backup or ES File Explorer.
Install the replacement app as usually.
A screenshot of its choice prompt is attached.
EDIT: The google homepage is the URL used to query the installed browsers and start the chosen one. You can change it to something else.
TIP: For some browsers, about:blank does not get recognized properly.
Moderators: If this thread fits better on the development board, feel free to move it there.
Hello everybody,
I am looking for an app to view p7s files on my Nokia 8 with Android 9.
So far each app was compatible with Windows or OS.
Does anybody know apps for Android,too? Thanks.
Best regards,
Arye
Before today I never knew what s .p7s file is. But a quick search revealed that it is an email message that includes a digital signature. I have come across this website: "https://techspirited.com/how-to-open-p7s-files" which explains how to open it on android and mentions an app named: "X509Tools".
I could not find such an app on the Play Store, only on other Android website which will require sideloading, however I did find an app on the Play Store which mentions that is can open such files, R2Mail2.
R2Mail2 link: "https://play.google.com/store/apps/details?id=at.rundquadrat.android.r2mail2&hl=en"
Try that, and see if it maybe works, I have never used it before though.