Archive for the ‘Programming’ Category

Microsoft Visual Studio & ASP.NET MVC 3: Add jQuery IntelliSense support for Razor pages

To enable Visual Studio’s IntelliSense support for jQuery on Razor pages just add the following code line to your view: @if (false) { <script src="~/Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script> }@if (false) { <script src="~/Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script> } Note: The if-statement prevents the script tag from being rendered into the html source code. Unfortunately, with the Razor view engine, there […]

Read more…

Eclipse ADT & Google APIs: Fixing “MapActivity cannot be resolved to a type”

After using the SDK Manager to download and install the Google APIs Add-On (see http://code.google.com/intl/de-DE/android/add-ons/google-apis/installing.html) one can start to develop Android applications that uses the Google services like Google Maps. After changing the parent class of your activity to MapActivity one has to select one of the Google APIs as “Android Built Target” (Right click […]

Read more…

ASP.NET: Programmatically adding <script> tags to include JavaScript files in the master page’s <head> tag

One common task of ASP.NET master pages is the definition of the page’s <head> tag, which could include <script> tags to include external JavaScript files>. If you do not use absolute paths to refer to the JavaScript file, adding a <script> leads to the problem, that the path to the JavaScript file has to consider […]

Read more…

Windows 7 64bit: ADB (Android Debug Bridge) & Archos 101 internet tablet

Here are short step-by-step instructions how to connect ADB (Android Debug Bridge) with an Archos 101 internet tablet on Windows 7 64bit. IMHO, the instructions should also work on 32bit systems. After you have installed the Android SDK (see http://developer.android.com/sdk/index.html) follow the instructions below: Download the Archos ADB drivers ftp://support.archos.com/ARCHOS%20it/ADB/adb_winusb_driver.zip Add a new line with […]

Read more…

Android development: Restart application programmatically

Here are two short code snippets that I used to restart my Android application programmatically. First, I added the following code in the onCreate method of the activity I would like to restart and saved references to the activity and the restart-intent to static attributes: […] @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); […] ACTIVITY […]

Read more…