[HOW TO] Creating custom LOCAL homepage for stock web browser (updated) - Samsung Galaxy Nexus

Hi,
Here I show you how to create custom local homepage for the stock web browser.
So, basically, when you start the web browser, it will load this custom web page.
This is very useful, for example: You can create quick shortcuts for all your frequent visit of websites.
(1) Download the attached "bookmark.zip" and put it in the a folder, for example \Download
(2) Extract the content, for example in \Download\bookmark
After this second step, you can access \Download\bookmark\bookmark.html
(3) Open the stock web browser, go to:
Settings --> General --> Set homepage
(4) Choose "Other"
(5) Set to:
file:///sdcard/Download/bookmark/bookmark.html
Click to expand...
Click to collapse
There you go!
You can modify the bookmark.html as you pleased.
bookmark.zip has been updated.
Disable page zoom added:
Remove the "initial-scale=1" in the bookmark.html as shown here:
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=0"/>

There is already a most visited sites option in the browser so I'm not too sure why I would want to do this?

Admittedly this isn't really needed, but is quite cool. I've just started learning html/css. So I will have a play with it later.
Sent from a phone that is not running ICS

Because this is the fastest way to get all your favorite websites!
Start the web browser and it is all there, right in front of you ... With all the thumbnails, ready to visit
There, two clicks you got the page.
Even better, when you go back by clicking the back button, you will see all those shortcuts again
Efficient ... Fast ...
And ... You can customize the way you want!
On the other hand, your way is too slow.
You need to start the browser, long click the back button, click the most visited, and you might need to scroll ...
RTContent said:
There is already a most visited sites option in the browser so I'm not too sure why I would want to do this?
Click to expand...
Click to collapse

Incorrect. There is a 'most visited sites' homepage you can assign in the settings. Plus if you want to talk about efficiency for certain sites why don't you just add a bookmark widget to the desktop?

i will try this.thank you

Right, you right about that most visited as homepage ...
But, the order can change at any time depending on your frequent visit. Also, I dont like the white background that consume more battery power.
With my way, I can have fixed loaction of thumbnails which for sure easier to navigate.
And because of that, we can have flexibility to arrange the thumbnails the way we want
Bookmark widget ... problem is that I must swipe to that home, and I dont like to clutter my launcher! Dont forget that widget consume more memory and might slow down your launcher if redraw is required!
So, still, my solution is better, faster, more flexible
RTContent said:
Incorrect. There is a 'most visited sites' homepage you can assign in the settings. Plus if you want to talk about efficiency for certain sites why don't you just add a bookmark widget to the desktop?
Click to expand...
Click to collapse

Alright you win . Have you tried allowing the table to use 100% instead of defining the number of pixels?
Sent from my Galaxy Nexus using XDA App

gogol said:
Hi,
See the attached screenshot.
Do you know how to format the <table> or use CSS so it will utilize the whole screen?
I set the <table> width to 720px but that does not help.
So, please please please ... if you are HTML/CSS expert ... help us!
Thank you
Click to expand...
Click to collapse
Is this what you mean???

<table> width 100% does not work.
But, I found it ... We need to prevent "zoom" which can be done using this:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
bookmark.zip has been updated in the first post.
RTContent said:
Is this what you mean???
Click to expand...
Click to collapse

RTContent said:
There is already a most visited sites option in the browser so I'm not too sure why I would want to do this?
Click to expand...
Click to collapse
Because you want to solve your problem.
---------- Post added at 05:57 PM ---------- Previous post was at 05:56 PM ----------
Can I say what I want to say at here?

Updated, remove the "initial-scale=1" in the bookmark.html as shown here:
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=0"/>
This will give you the correct view

Related

Questions about Home Screen

I am pretty new to the Dash so I need some more help (already given a lot of help, thanks) I am wondering how to install and where to find new Home Screen's and how to change the background colour in the start menu?
Thank you for your time and when you help me please remember I am new so please use new person terms haha.
carltmac said:
I am pretty new to the Dash so I need some more help (already given a lot of help, thanks) I am wondering how to install and where to find new Home Screen's and how to change the background colour in the start menu?
Thank you for your time and when you help me please remember I am new so please use new person terms haha.
Click to expand...
Click to collapse
Alrighty... First of all, which ROM are you using?
Well, no matter which ROM you use--you can access your homescreen options this way: Start -> Settings -> Home Screen -> scroll down to Background Image. When you get here, just choose which image you'd like to be the background/wallpaper. (before making these steps, you can search Google or Yahoo! images for whatever wallpaper you'd like) Once you've saved an image (preferrably .jpeg), use ActiveSync to place the file on your device. Click Explore button -> Windows Mobile Device -> Application Data -> Home (this is where you store downloaded homescreen images).
i am using kavana rickwyatt v20 thank you for such quick replys but i dont mean the background pictures but like new homescreens as in new paneling and everything. i should have said that in my first post sorry.
The Home screen is controlled with XML files which lets you specify the position of certain panels, etc. Here is a tutorial on modifying the file:
http://pocketnow.com/index.php?a=portal_detail&t=reviews&id=916
If you have any specifics questions about that let me know.
thank's a lot and I am going to read through that tutorial when I get some free time for sure.
I have another question but I don't want to open a new thread so I will ask it here. Are there any program's that have city map's? I need some map's of my city on my phone (I am a delivery driver).?
carltmac said:
I have another question but I don't want to open a new thread so I will ask it here. Are there any program's that have city map's? I need some map's of my city on my phone (I am a delivery driver).?
Click to expand...
Click to collapse
If I'm not mistaken, Windows Live has mapping and directions within it. It should already be a part of your Windows Mobile 6.1. Just look in the programs under the 'Start' menu.
I you dont want all the baggage of Windows Live, which permanently gloms all over your phone. just install "Windows Live Search". I think it is a better, leaner choice unless you already use Live Spaces and/or Hotmail.
I was wondering if you guy's knew of DLable maps because I don't want to rack up my data charges on the road?
I have the Kavana 6.1 rom... A link to open up Windows Live is built into the panels... Isn't there another option for that panel? I'm new to this, so bear with me please...
uansari1 said:
I have the Kavana 6.1 rom... A link to open up Windows Live is built into the panels... Isn't there another option for that panel? I'm new to this, so bear with me please...
Click to expand...
Click to collapse
Look at a sticky named CHome configurator
That is a program that you can use to customize the panel.
Thanks, I'm working with that as well... I just remember when I was setting up my phone that there were two ways to set up the Windows Live panel. I don't see the option in the Configurator however.
Oh, and I'm still trying to figure out what app you all use/recommend for editing .cpr files. Any help is appreciated..
uansari1 said:
When I was setting up my phone that there were two ways to set up the Windows Live panel. I don't see the option in the Configurator however.
Click to expand...
Click to collapse
Setting it up how?
You need to install My Links for Windows live.
Go here
You will find your file at this link
uansari1 said:
Oh, and I'm still trying to figure out what app you all use/recommend for editing .cpr files.
Click to expand...
Click to collapse
Notepad.
Drag the file to your computers desktop, edit it by opening it with Notepad.
Drag it back to your phones \Windows folder and reboot.
Ok, you beat me to it... thanks!

eBookLauncher (new homescreen)

I have finally got a nook
so, I have started porting my Sony homescreen replacement to work on the nook
so far it can get the list of books and shelves (collections), but not much else.
http://code.google.com/p/sonyprst1home/
I'll try to keep this thread updated with how it's going
please let me know if you would like to test this out (I can send you an apk to install)
All new releases will now be made on the google code page above.
it would be grat to have the apk and some screenshot
i would be interested to see a screen shot...
Awesome! Time to test it! I'm at school right now, so this is probably a terrible idea, but I might as well have something to do, right?
Edit: Have some screen shots. Ignore the 10:16 in corner of all the screen shots, I have an app that does that. (Sorry for the massive post)
Mini-Library / Homescreen
Pressing Menu on the Homescreen
Pressing "My Home Settings" here brings you to this screen
Library
Apps Page 1
Apps Page 2
It still seems to have various elements in color besides the app icons and the book covers.
Googie2149 said:
Awesome! Time to test it! I'm at school right now, so this is probably a terrible idea, but I might as well have something to do, right?
Edit: Have some screen shots. Ignore the 10:16 in corner of all the screen shots, I have an app that does that. (Sorry for the massive post)
Mini-Library / Homescreen
It still seems to have various elements in color besides the app icons and the book covers.
Click to expand...
Click to collapse
How does Cover flow work??
persichini said:
How does Cover flow work??
Click to expand...
Click to collapse
The screen flickers and does nothing when I click it :/
I`m trying t use your launcher, but got this:
pilson66 said:
I`m trying t use your launcher, but got this:
Click to expand...
Click to collapse
And you are running the apk you downloaded from this thread?
I'll have a look, but I thought I had taken out the code trying to open the database directly.
Googie2149 said:
The screen flickers and does nothing when I click it :/
Click to expand...
Click to collapse
Only the main page, books and collections screen have been worked on so far.
I haven't even opened the other screens yet, so opening them could do anything (including crash)
It is worked ! , thank you
aspellclark said:
And you are running the apk you downloaded from this thread?
I'll have a look, but I thought I had taken out the code trying to open the database directly.
Click to expand...
Click to collapse
i`m use apk from http://code.google.com/p/sonyprst1home/downloads/detail?name=SonyPrsT1Home-0.0.4.14.apk&can=2&q=
At now, i solved this issue by editing permissions of file from screenshoot path "chmod 666".
pilson66 said:
i`m use apk from http://code.google.com/p/sonyprst1home/downloads/detail?name=SonyPrsT1Home-0.0.4.14.apk&can=2&q=
At now, i solved this issue by editing permissions of file from screenshoot path "chmod 666".
Click to expand...
Click to collapse
if you use the apk from this thread, it uses a different method of accessing the database, and doesn't need permissions changed on the database file.
Wow, I love this forum!!
From what Googie posted, I can see this is another cool thing to try out.
Now to get an SD card.
Screensaver
aspellclark said:
if you use the apk from this thread, it uses a different method of accessing the database, and doesn't need permissions changed on the database file.
Click to expand...
Click to collapse
Wow, thanks for the great work. Really nice application for too many books and collections.
However, as the project was opensource, are you going to release the modified source somewhere? in a branch or tag or something?
I would like to see the screensaver feature working for last launched book, would try myself if the code was available.
the code is already available at the google code site in the first post
aspellclark said:
the code is already available at the google code site in the first post
Click to expand...
Click to collapse
As you mentioned the APK here has a different way of accessing some file, and I don't see a tag or branch for the nook, I understand that the code is the one for the PRS-T1, correct me if I am wrong.
It's the same code. I am making a single apk that will run on a Sony and a nook (and other devices in future)
First general release (0.1.0.00) which runs on both the Nook and Sony is now available on my google code page.
aspellclark said:
First general release (0.1.0.00) which runs on both the Nook and Sony is now available on my google code page.
Click to expand...
Click to collapse
THANKS, great work! Watching for code check-in
I can't check in the code until I get home tonight, sorry.

[Q] Launch Youtube App By Default

I know this was asked before, I've looked at the threads. How about getting an answer this time? I'm going to give an example so you can understand my problem if you don't. If i'm in an app like Facebook and a friend posts a link to Youtube, a box come up that says complete action using with a few choices of apps to choose from, none of being the Youtube app. I've included an attachment of the screen shot. How do I get Youtube to appear on that list of complete action using? Is there a code? if there is a code, where do I put it? Is this the right code....Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube://" + id);
startActivity(intent);
I don't know what may be wrong, maybe your borked something because mine works fine.
CNexus said:
I don't know what may be wrong, maybe your borked something because mine works fine.
Click to expand...
Click to collapse
I believe it has to do with the link itself. A lot of times, even though it says you're going to youtube, the link facebook is actually using is a facebook link.
For instance, my wife is a teacher and chipotle was giving out free burritos to all teachers a week or two ago. The link she shared was supposed to be:
ra.chipotle.com/email/13-all-019/13-all-019.htm
Click to expand...
Click to collapse
The link that facebook actually gave out was:
http://www.facebook.com/l/uAQFNsXsG/ra.chipotle.com/email/13-all-019/13-all-019.htm
Click to expand...
Click to collapse
It should be easy to see that even though your friend links that crazy cat video directly to youtube, facebook will add their http://www.facebook.com/l/[gibberish]/ to the front of it. When your phone tries to open that link, it sees it as the browser would, to a website (facebook.com), not to youtube. That's why it only gives you browser options, not youtube options.
The problem with trying to set youtube to "see" those links is that this is how facebook links any page. Assuming you could add an intercept to "http://www.facebook.com/l/" to open in youtube (or at least include it in the open prompt), that'll mean all facebook links will have that prompting. That shouldn't be too much of an annoyance, though.
All that being said, I don't know how to add that "intercept" so that youtube is on the prompt. Maybe others can tell you which files to modify.
True...I interpreted it as him just saying that YouTube links would not come up with YouTube in the list
But if you wanted to change it and then choose yourself which links should be open in YouTube, you'd need to change the BroadcastReceiver in the AndroidManifest.xml of the YouTube app to receive all links
CNexus said:
True...I interpreted it as him just saying that YouTube links would not come up with YouTube in the list
But if you wanted to change it and then choose yourself which links should be open in YouTube, you'd need to change the BroadcastReceiver in the AndroidManifest.xml of the YouTube app to receive all links
Click to expand...
Click to collapse
Interesting. I'm trying to look through that file on my computer, but my xml editors (read: notepad and notepad++) don't seem to like that file.
But from your explanation, I'm beginning to see that each individual app determines if it's involved in an action. I was hoping there was a mod or app that could "intercept" the requests and let you edit the list right then and there. I was thinking more like Window's "Open with..." command where you can choose any .exe to open a given file. But it appears that you have to modify the apk itself.
If you select the browser ie:dolphin it will then open up the box giving you the choice to select you tube. That is because the link was posted through the browser. If at the point you get to the box with the you tube choice you select it as default it should work from that point on unless you clear cache.
Transmitted with a portable device using Xparent Blue Tapatalk 2
topherk said:
Interesting. I'm trying to look through that file on my computer, but my xml editors (read: notepad and notepad++) don't seem to like that file.
But from your explanation, I'm beginning to see that each individual app determines if it's involved in an action. I was hoping there was a mod or app that could "intercept" the requests and let you edit the list right then and there. I was thinking more like Window's "Open with..." command where you can choose any .exe to open a given file. But it appears that you have to modify the apk itself.
Click to expand...
Click to collapse
Yup, apps define what actions they wanna receive (scientific term is "Intents" )
And you decompiled the apk first, right?
If it's not specified in the manifest, I don't know of any other way to do it/force it
CNexus said:
Yup, apps define what actions they wanna receive (scientific term is "Intents" )
And you decompiled the apk first, right?
If it's not specified in the manifest, I don't know of any other way to do it/force it
Click to expand...
Click to collapse
It seems like a dev could make an app that does just that, though. It could be called "Link Chooser" and it's manifest.xml would indicate that all links open in that program. It would then have it's own whitelist of installed apps and you could indicate which apps you want to open based on link type... I don't even think it'd have to have root access.
Ooohhh, if I had more expertise with android programming, I'd totally make that app and it'd sell like hotcakes on the Play store.

to only access a website via an app?

Hi folks, I'm hoping someone has advice for my really simple app. I have a basic app that essentially gives a portal to a website. (This is my app.) This is my question: Is there a way to restrict access to the website so that it can only be accessed by clicking through the app? I want to make it so people don't just post links to my website ooutside of my app. I don't monetize or advertise on anything, so it's not about that. It's just a matter of respect... I would like to be able to embed a link in the app that users of the app can click on, which will open their browser allowing access to this website. I want to also block access coming from anywhere other than the app.
Any advice is appreciated. It's a super basic app, made using Eclipse. Thanks X 10 for any help.
Edit:
bassie1995 said:
You might want to check it in your web page's code what user agent the browser is using.
If you see any other than an Android phone (I don't know how specific it can get, i.e. if you can get a WebViews UA), you can show an error or certain page that denies access?
Click to expand...
Click to collapse
Thanks. That's a good idea to start with. It doesn't limit anyone clicking through a direct line while on their phone but it's something. Thanks again.
Edit:
vultuk said:
You could make the app post a specific GET variable to the initial start page, then make your web menu bar add that GET variable to all further links.
E.G. Your first page requested by the app is.
http://yourwebsite.com/index.php?check=kg&TugugkD
Then the menu would link to the correct page such as
Home Page : http://yourwebsite.com/index.php?check=kg&TugugkD
About Page : http://yourwebsite.com/about.php?check=kg&TugugkD
Contact Page : http://yourwebsite.com/contact.php?check=kg&TugugkD
If the site detects an incorrect 'check' value then it will just default to a 404 error page.
You could even use this in the future to track the version of the app people are using if you wanted to.
Hope that helps!
Click to expand...
Click to collapse
This is great! I appreciate you taking the time to reply. Thanks so much. This I will figure out. The app right now is serving content to users of one specific device. No one else would want it - it's files for the stock 4.1.2 build for that phone. I plan to add support for a second device soon, and I think I should be able to use a similar process to what you're saying to direct to page A or page B based on which device in use... Or, the landing page would have two gigantic tabs and users could click the right tab for their device, I suppose. My temporary fix is just a screen width redirect, to keep people who are on their laptop from using my bandwidth... And that's my only real goal, that and some respect. Thanks again, bud.
You might want to check it in your web page's code what user agent the browser is using.
If you see any other than an Android phone (I don't know how specific it can get, i.e. if you can get a WebView's UA), you can show an error or certain page that denies access?
You could make the app post a specific GET variable to the initial start page, then make your web menu bar add that GET variable to all further links.
E.G. Your first page requested by the app is.
http://yourwebsite.com/index.php?check=kg&TugugkD
Then the menu would link to the correct page such as
Home Page : http://yourwebsite.com/index.php?check=kg&TugugkD
About Page : http://yourwebsite.com/about.php?check=kg&TugugkD
Contact Page : http://yourwebsite.com/contact.php?check=kg&TugugkD
If the site detects an incorrect 'check' value then it will just default to a 404 error page.
You could even use this in the future to track the version of the app people are using if you wanted to.
Hope that helps!
erikalin said:
Hi folks, I'm hoping someone has advice for my really simple app. I have a basic app that essentially gives a portal to a website. (This is my app.) This is my question: Is there a way to restrict access to the website so that is can only be accessed by clicking through the app? I want to make it so people don't just post links to my website ooutside of my app. I don't monetize or advertise on anything, so it's not about that. It's just a matter of respect... I would like to be able to embed a link in the app that users of the app can click on, which will open their browser allowing access to this website. I want to also block access coming from anywhere other than the app.
Any advice is appreciated. It's a super basic app, made using Eclipse. Thanks X 10 for any help.
Edit:
Thanks. That's a good idea to start with. It doesn't limit anyone clicking through a direct line while on their phone but it's something. Thanks again.
Click to expand...
Click to collapse
vultuk said:
You could make the app post a specific GET variable to the initial start page, then make your web menu bar add that GET variable to all further links.
E.G. Your first page requested by the app is.
http://yourwebsite.com/index.php?check=kg&TugugkD
Then the menu would link to the correct page such as
Home Page : http://yourwebsite.com/index.php?check=kg&TugugkD
About Page : http://yourwebsite.com/about.php?check=kg&TugugkD
Contact Page : http://yourwebsite.com/contact.php?check=kg&TugugkD
If the site detects an incorrect 'check' value then it will just default to a 404 error page.
You could even use this in the future to track the version of the app people are using if you wanted to.
Hope that helps!
Click to expand...
Click to collapse
Cool.
Thanks.

Manage attachments

I'm not sure if I'm missing something, but I don't see the manage attachments button under the text field. I searched the FAQ, but could not find if there is some post limit/minimum before being able to do this?
TraceFormer said:
I'm not sure if I'm missing something, but I don't see the manage attachments button under the text field. I searched the FAQ, but could not find if there is some post limit/minimum before being able to do this?
Click to expand...
Click to collapse
You have to select edit, then select advanced edit. That should be what you're looking for.
Sorry, I'm not seeing edit or advanced edit buttons under the text field. I see Post Icons, Image Verification, and then Submit Reply & Preview Post. I tried both Firefox and Internet Explorer, even turned off ad blockers.
I just realized, you meant edit an already existing post. What I am trying to do is attach a file to a post/reply.
TraceFormer said:
I just realized, you meant edit an already existing post. What I am trying to do is attach a file to a post/reply.
Click to expand...
Click to collapse
If you click on the reply button, it will open a new screen allowing you to write your post, above the text field you will see lots of buttons, don't you see this "manage attachment" button in this create post screen like shown in my screenshot?
The UI may differ depending on the used theme of course.
No that button is missing for me. Tried to attach a screen shot, but it won't let me do that either (only put in a URL). Tried on mobile device too, and that button is not there.
TraceFormer said:
No that button is missing for me. Tried to attach a screen shot, but it won't let me do that either (only put in a URL). Tried on mobile device too, and that button is not there.
Click to expand...
Click to collapse
This attachment feature is not present for members below 10 posts but you are above this limit so it should be there, I don't understand. Some ideas of tests:
- wipe cache of your browser
- try Google Chrome
- try another xda theme
- wait 24h or 48h and it may be fixed by itself
- or if still not working we may need admin assistance
TraceFormer said:
No that button is missing for me. Tried to attach a screen shot, but it won't let me do that either (only put in a URL). Tried on mobile device too, and that button is not there.
Click to expand...
Click to collapse
I've no experience with IE but I'd the same issue quite a while ago on FF when I used the add-ons uBlock Origin and NoScript. For this reason, I've created an own profile for FF to use XDA.
Post reset
I had many posts years ago, had not been here for Ca. 2years and now I have 0 posts. So can't post link or attacment. /RANT/

Categories

Resources