Video tutorial
How to add or remove widgets home screen Android 4.
85 views
How to add or remove widgets home screen android 4
How to Add Home Screen Widgets on Your Android Phone
Long press by finger on screen
From dialogue select Widgets
Select your widget
Put your widget on the screen
Video tutorial – to add home screen widgets – Android 2.1
Eclipse – How open deleted project from workspace
If project is in workspace and only not visible in project explorer using this:
Click on some project in project explorer
Menu:
File
Import project
Existing Projects into Workspace
setTesting(boolean) from the type AdRequest is deprecated
Admob testing on emulator issue.
Android Eclipse code warning:
setTesting(boolean) from the type AdRequest is deprecated
Solution:
adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
AdView adView = new AdView(this, AdSize.BANNER, "a14d9..........");//MY_AD_UNIT_ID AdRequest adRequest = new AdRequest(); adRequest.setTesting(true); // deprecated adRequest.addTestDevice(AdRequest.TEST_EMULATOR); // OK adView.loadAd(adRequest);
Eclipse revert old version Android Development Tools
If you have trouble with compilation of new project after you make a update of android development tools you can go back to old version of the tools.
-
- Open Help > About Eclipse… use the menu > About…
- Click the “Installation Details” button.
- Select the “Installation History” tab.
- Select one of the previous configurations.
- Click the “Revert” button at the bottom.


No resource identifier found for attribute ‘showAsAction’ in package ‘android’
Try this:
Open file \res\menu\main.xml and other xml in this folder
Find row with android:showAsAction=”never”
Remove this.
Select Get Selected Item JavaScript Html Example
<select id="idSelNick"> <option value="neuveden">Neuveden</option> <option value="hlavni-mesto-praha">Hlavní město Praha</option> <option value="stredocesky">Středočeský</option> <option value="jihocesky">Jihočeský</option> <option value="plzensky">Plzeňský</option> </select> // in script var mysel = document.getElementById('idSelNick'); var seltxt = mysel.options[mysel.selectedIndex].text; var selval = mysel.options[mysel.selectedIndex].value;
Timer JavaScript Example Code
Best of timer in JavaScript – preciseness in milisecond
// global variables var _startDate = null; var _stopDate = null; var go = null; // timing function startFC(){ _startDate = new Date(); if(go==null)timingFC(); } timingFC(){ if(go==null){ _startDate = new Date(); // document.getElementById('idStartTime').innerHTML= _startDate.toLocaleTimeString(); go=setInterval("s()",1000); // every 1 second == 1000 milisecond call function s() } } function s(){ var currentMiliSecond = new Date() - _startDate; var currentSecond = currentMiliSecond / 1000; document.getElementById('idCurrentTiming').innerHTML= currentSecond.toString(); } function stopFC(){ clearTimeout(go); // stop calling of s() _stopDate = new Date(); var timeInMiliSecond = _stopDate - _startDate; var timeInSecond = timeInMiliSecond / 1000; var timeInMinute = timeInSecond / 60; }
