Recent Notes
Displaying keyword search results 91 - 100
Created by magnum on September 19, 2011 08:33:40
Last update: September 19, 2011 08:34:25
From Control Panel , double click Network Connections , select New Connection...
Click Next in Connection Wizard , select Set up an advanced connection , click Next
Select Accept incoming connections , click Next
Select Allow virtual private connections , click Next
Check the users allowed for connection, or add a new VPN user by clicking Add . Click Next .
Select Internet Protocol (TCP/IP) and click Properties .
Check Allow callers to access my local area network , enter a TCP/IP address range and click OK
Click Next and Finish
Created by magnum on September 16, 2011 16:04:05
Last update: September 16, 2011 16:05:06
Linux distros come with PPTP client bundled. This is how to configure Linux as PPTP client:
Click System->Preferences->Network Connections:
Select the VPN tab, click Add :
Select PPTP from the list and click Create... :
To connecto to the PPTP VPN: click the Network icon on the launch Panel and select the VPN name just created.
Created by freyo on September 08, 2011 07:45:35
Last update: September 08, 2011 13:22:13
Activity test:
AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifes...
Test code:
package com.example.android.test;
import co...
Notes: Methods setUp and tearDown are called repetitively for each test method. If you override them, you must call the corresponding super methods for the tests to work.
Self-instrumentation test (the target package is the test package itself):
AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifes...
Test code:
package com.android.test;
import android.ut...
Created by freyo on September 07, 2011 16:46:14
Last update: September 07, 2011 19:23:00
The Android unit test framework is based on JUnit 3 , not JUnit 4. Test cases have to extend junit.framework.TestCase or a subclass (such as android.test.InstrumentationTestCase ). Tests are identified by public methods whose name starts with test , not methods annotated with @Test (as in JUnit 4). An Android test suite is packaged as an APK, just like the application being tested. To create a test package, first you need to identify the application package it is testing. Google suggests to put the test package source in a directory named tests/ alongside the src/ directory of the main application. At runtime, Android instrumentation loads both the test package and the application under test into the same process. Therefore, the tests can invoke methods on...
Created by woolf on September 07, 2011 08:09:03
Last update: September 07, 2011 08:09:03
Use the shortcut Alt+F2 to bring up the "Run" dialog. This may be handy when you lost the Gnome panel on the desktop.
Created by freyo on August 25, 2011 07:24:31
Last update: August 25, 2011 07:24:31
Android adds two permissions by default ( android.permission.WRITE_EXTERNAL_STORAGE and android.permission.READ_PHONE_STATE ), even though there are no uses-permission declarations in AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifes...
But this is no longer true for later versions of Android. Those permissions are not added when you add:
<uses-sdk android:minSdkVersion="8" />
to the above.
Created by incognito on April 24, 2011 15:14:54
Last update: August 19, 2011 17:33:49
Buscador standard de Noticiero Digital Esto no es un bookmarklet, sino el buscador normal de ND colocado aquí por conveniencia PARA FIREFOX, GOOGLE CHROME, OPERA , SAFARI, etc. Noticiero Digital Buscar ND forista temas ND forista mensajes PARA INTERNET EXPLORER Noticiero Digital Buscar ND forista temas ND forista mensajes Para cualquier browser ( o casi) paginaForista Este bookmarklet es útil para listados de mensajes de foristas con numerosas páginas. En ese caso cuando se intenta pasar de la página 1 obtenemos un mensaje como el de la figura. El bookmarklet pregunta "Que pagina quiere ver ?" e inicia la búsqueda de los mensajes del forista en cuestión en la página deseada. Lo mejor es esperar entre cada búsqueda unos 3 minutos al menos ya que...
Created by freyo on August 17, 2011 12:29:46
Last update: August 17, 2011 12:29:46
In Android.mk , you can define LOCAL_JARJAR_RULES like this:
LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.t...
and in jarjar-rules.txt define a rule like this:
rule org.bouncycastle.** com.android.@0
The build will change all org.bouncycastle to com.android.org.bouncycastle . Therefore, in your classes which are dependent on the library produced, the import statements should look like:
import com.android.org.bouncycastle...
Help for the jarjar utility (in prebuilt/common/jarjar/ ):
$ java -jar jarjar-1.0rc8.jar
Jar Jar Links - ...
Created by woolf on August 07, 2011 15:17:12
Last update: August 07, 2011 15:17:12
Normally opkg installs packages from a repository which is specified in /etc/opkg.conf :
src/gz packages http://downloads.openwrt.org/backf...
What if you built a package locally and want to install that instead? Do this instead of setting up your own web server:
Copy your package ( .ipk file) to /tmp on the router:
$ scp mypackage_brcm63xx.ipk root@172.30.33.1:/tmp...
Copy the Packages file to the router:
$ scp Packages root@172.30.33.1:/var/opkg-lists/pa...
Log on the router, cd /tmp and install the local package:
root@OpenWrt:~# opkg install mypackage_brcm63xx.ip...
Created by freyo on July 27, 2011 12:13:52
Last update: July 27, 2011 12:13:52
Implement the provider. Put the initialization code in onCreate , implement the necessary query and update methods. This is a skeleton:
package my.package;
import android.content....
Declare the content provider in AndroidManifest.xml , with content authority (any string identifier):
<?xml version="1.0" encoding="utf-8"?>
<manifes...
Use the provider (content consumer code):
// import android.content.ContentResolver;
Cont...