[Q] Code for Copying Page URL in WebView - Android Q&A, Help & Troubleshooting

Hi All, i need some help with copy page url button, what i actually need is a Button in the WebView's layout which copies the page URL to the clipboard (no url bar is there in my webview ) so that i can paste it come where else.
Thanks :victory:

Related

Widget Tutorial for 2.3.3

Someone can post an example of Home Screen widget for Android SDK 2.3.3 with the source files? Just with a TextView will be enough.
In this page you'll find a very basic example (sorry, in Spanish). Don't forget to read the oficial documentation (basically the same info that is posted in the web, but less explained ).
Basically, you need:
Declare a layout for your widget.
Create a xml file, to store basic info about your widget (i.e its size in the homescreen).
Develop the callback methods (onUpdate at least, all others are optional).
Modify the Android Manifest, in order to obtain a widget and not an app.
Compile and test (if you wish to pray, you can do it )
I have tried all that I could.Followed tutorials from theNewBouston,vogella.de,android-dev.
First It was the No Launcher Activity Problem.I Fixed it with a configurator class.But now,after calling the configurator,the app closes.

Enable Hidden CSC Features on rooted SGY

guYs this stuff has come to my attention lately:
source: http://www.droidviews.com/tag/csc-codes-for-samsung-firmwares/
add features via .xml CSC file
now we need a ready-made file for download to SGY, which will appear below...
Feature: Pressing Enter key takes the cursor to a new line in stock SMS
<CscFeature_Message_ReplaceCRToNewLine>true</CscFeature_Message_ReplaceCRToNewLine>
Feature: Stock Samsung keyboard with sub symbols
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey> <CscFeature_Sip_EnableSymbolInSecondary>de;en_US;en_GB</CscFeature_Sip_EnableSymbolInSecondary>Note: To enable your preferred input language on your device’s keyboard, you would have to replace the language code (highlighted in red) with those you want on your device. Below is a list of language codes (in small letters) followed by country code (in capital letters).​en_GB;en_US;en_AU;en_CA;en_PH;en_IE;en_NZ;en_ZA;
ko_KR;
de_AT;de_CH;de_DE;
fr_FR;fr_CH;fr_BE;fr_CA; bg_BG;
cs_CZ;da_DK;el_GR;es_ES;et_EE;fi_FI;
ga_IE;hr_HR;hu_HU;is_IS;it_IT; lt_LT;lv_LV;
mk_MK;ms_MY;nb_NO;nl_NL;nl_BE;pl_PL;pt_PT;pt-BR;ro_RO;sr_RS;sv_SE;tr_TR; ca_ES;eu_ES;gl_ES;kk_KZ;ru_RU;sk_SK;sl_SI;uk_UA;uz_UZ;az_AZ;hy_AM;ka_GE;
pt_BR;in_ID;ja_JP;vi_VN;
zh_CN;zh_TW;
ar_AE;ar_IL;
fa_FA;ur_PK;iw_IL;th_TH;
zh_HK;zh_SGFor an Easier Way to Get Your Native Language, Read This Article (see source link above)​Feature: Enable scheduled message
<CscFeature_Message_EnableScheduledMessage>true</CscFeature_Message_EnableScheduledMessage>
<CscFeature_Message_EnableScheduledMsgBox>true</CscFeature_Message_EnableScheduledMsgBox>
Feature: Dialer search matches numbers in contacts and call logs
<CscFeature_Dialer_PhonebookNdigitsMatching>true</CscFeature_Dialer_PhonebookNdigitsMatching>
<CscFeature_RIL_CallerIdMatchingDigit>true</CscFeature_RIL_CallerIdMatchingDigit>
Feature: Join unlimited contacts together
<CscFeature_Contact_SetLinkCountMaxAs>999</CscFeature_Contact_SetLinkCountMaxAs>
Feature: Get 100 speed dial shortcuts on phone’s dialer (you can personalize the number)
<CscFeature_Contact_ExtendSpeedDialTo100>true</CscFeature_Contact_ExtendSpeedDialTo100>
Feature: Extend Contact name length limit to 1280 characters (you can personalize the number)
<CscFeature_Contact_LimitNameLength>1280</CscFeature_Contact_LimitNameLength>
Feature: Add exit menu to stock web browser
<CscFeature_Web_AddOptionToTerminate>true</CscFeature_Web_AddOptionToTerminate>
Feature: Turn camera shutter sound on/off
<CscFeature_Camera_ShutterSoundMenu>true</CscFeature_Camera_ShutterSoundMenu>
Feature: Enable infinite scrolling in home screen, app and widget drawer
<CscFeature_Launcher_DisablePageRotation>false</CscFeature_Launcher_DisablePageRotation>
Feature: Enable rotation control icon in Gallery
<CscFeature_Gallery_AddAutoRotationIcon>true</CscFeature_Gallery_AddAutoRotationIcon>
Feature: Show hardware revision in Settings> About
<CscFeature_Setting_EnableHwVersionDisplay>true</CscFeature_Setting_EnableHwVersionDisplay>
Feature: Enables stock browser to load sites in Desktop mode.
<CscFeature_Web_EnableDesktopSiteAsDefault>true</CscFeature_Web_EnableDesktopSiteAsDefault>
Which file should i edit???
mms047 said:
Which file should i edit???
Click to expand...
Click to collapse
Every Android device from Samsung has a folder called csc under system directory. This folder contains some XML files that keep the configuration codes for country and carrier based customization options. If you have root access on your Samsung phone or tablet, you can access this directory and edit those XML file to enable or disable the features that are available or unavailable on your device. In other words, by editing the XML files present in the csc folder, you can easily personalize your device by adding features like your native language pack, screen rotation control, infinite scrolling on home screen, turn on/off camera shutter sound and so on.
mai77 said:
Every Android device from Samsung has a folder called csc under system directory. This folder contains some XML files that keep the configuration codes for country and carrier based customization options. If you have root access on your Samsung phone or tablet, you can access this directory and edit those XML file to enable or disable the features that are available or unavailable on your device. In other words, by editing the XML files present in the csc folder, you can easily personalize your device by adding features like your native language pack, screen rotation control, infinite scrolling on home screen, turn on/off camera shutter sound and so on.
Click to expand...
Click to collapse
In the csc folder there are only two xml files, a database file and a dat file..... others are folders....
two xml files are customers.xml and others.xml in Hyperion 8
which file to edit?
did you read the source link ?
pretty extensive
Not before u asked....
awesome,i have asked myself long time about this,because did we can have this and how its working,many thanx, :good::good::good:
i know about this
but i dont know how to do...
nice guide

Youtube Data API v3 - Help please!

Hi, i'm trying to develop one app for a youtube channel. This app will show the uploaded videos as a list (with some infos), show channel infos, trigger notification when a new video is uploaded and etc..
I'm a newbie in Android app development and i'm having trouble with the Youtube Data API... I saw the samples code from google, but when i copy it to my project and try to build it doesnt work at all...
Everything i did until now is just the basics and the designe (a part of it).
Do you guys have some app sample that does the samething i'm trying to do to help me?
Thanks.
I made some progress here, but now i need load the "client_secrets.json", but when i do the command "
getResourceAsStream("/client_secrets.json")", always return null.
The .json is inside "src/main/res" right now, but i tried in almost any other folder and changing the patch in code bellow but got no other result, just null exception ;/
Any help?
Code:
// Load client secrets.
Reader clientSecretReader = new InputStreamReader(Auth.class.getResourceAsStream("/client_secrets.json"));
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, clientSecretReader);

Need help: Adding Refresh and image to my webview with slidingmenu app.

Dear Android developers!
I have made a simple webview application with a sliding menu. I would like to add 2 changes to my application, but I have no idea how to:
Number 1:
Above 'Home' where you see 'ConsoleHax Menu' I would like to place a header image:
w-w-w. consolehax .com /images/ xda02.png
[B]Number 2:[/B]
In the heading on the right, you see 3 dots. When users click on it, they'll see the text 'Coming Soon'. I would like to add a refresh functions to that menu.
[IMG]w-w-w. consolehax .com /images/ xda01.png
My Github Repository:
ConsoleHax/ConsoleHaxApp
I hope someone can help me figure this out!
Thanks in advance!

some help to finish an Huawei theme (Honor 6x ,Emui 5.0.1)

Hi, i hope some help , if i am in the right place for finish my first attempt to make a theme for Huawei Emui 5.0.1...in fact ,modestly, i start from basic template ,change this ,change that but i fail to change all the color of "delete" text (supprimer in french) that appear in the dialog box when you want to suppress a message,mail, photo, alarm etc...So , i know that it is in the Theme.xml file and need to change the color code , i find a line for most of the tools like : "<color name="delete_text_color">#f1f1f1</color> " so it can be changed easily but i cannot find the same for : deskclock (delete an alarm) , calendar (delete an event) or files (delete a file, document ,etc) MMS, (delete a message) . Perhaps , there is ,as system original tools, an other file where i can find that , but i search also in "SystemUi" and "Framework" with no success...Is the answer outside the "themes" , but where in the numerous files of the system ? I precise that i have succeed to change text color in MMS when i want to suppress a conversation but not for a message ...in complement , is there a good tool for edit or construct a theme ? Thanks in advance for your interest. Sincerely.

Categories

Resources