QR Code Business Card

Android Wifi Hotspot Manager Class

Android has the great option to let you Tether your connection via wifi, but as developer you got little to none control over this mechanism.

Therefore i wrote a class to correct this: WifiApManager.

With this class you can enable the check the current Status of the Hotspot, enable/disable it, get/set the current AP configuration and also get the list of currently connected clients.

 

I also made an example to demonstrate it’s capabilities:

Continue reading »

Comment » | Android

Flexible Displays and Surfaces

We read everywhere about new tablets, new smartphones or new televisions. These gadgets get thinner and yet we still can’t transport our televisions in our pockets. One essential display technology still didn’t arrive: The Flexible Displays.

Flexible Displays are obviously the next level in the development of displays technologies. They will change our lives in many ways. To find out what flexible displays actually are and what concepts exist in this area (there are really some extraordinary ideas out there). You can take a look at our paper and the references. Its only available in german, at the moment:

You can download our Paper here: Flexible_Display_and_Surfaces.pdf

Continue reading »

Comment » | Publications

Download and Display Image in Android

When you want to download a Image from the Web and Display it in Android in a ImageView i encountered two different approaches:

1. Download the Image and Display it:

Drawable DownloadDrawable(String url, String src_name) throws java.io.IOException {
	return Drawable.createFromStream(((java.io.InputStream) new java.net.URL(url).getContent()), src_name);
}
 
[...]
 
try {
	Drawable drw = DownloadDrawable("http://www.google.de/intl/en_com/images/srpr/logo1w.png", "src")
	ImageView1.setImageDrawable(drw);
} catch (IOException e) {
	// Something went wrong here
}

Continue reading »

Comment » | Android

Find File Snippet – Depth First And Breadth First Search

Two usefull snippets, if you need to do a quick file search, here a recursive and a breadth first implementation (ignored the not-authorized-exception):
(took me only 2 mins, love .Net :)

Depth First Implementation:

static string[] FindFile_DepthFirst(string directoryName, string fileName)
{
   return Directory.GetFiles(directoryName, fileName, SearchOption.AllDirectories);
}

Breadth First Implementation:
Continue reading »

Comment » | Snippets

Update GUI Control From Non-GUI-Thread Without Marshalling

In .Net when you want to update a GUI Control, for example a ListView, you have to execute your update code in the GUI Thread which controls your Form and its child GUI Objects. While you are in another Thread, you call the Invoke or BeginInvoke (for async.) method of your GUI Control for this purpose. You pass this method a delegate of your method, which contains your update code, and the GUI Thread invokes the method that is passed. Well the whole story is infact much more complicated and this article gives you a nice in-depth view on this topic:
WinForms UI Thread Invokes: An In-Depth Review of Invoke/BeginInvoke/InvokeRequred

 

This is how Microsoft wants us to manage our GUI stuff, Continue reading »

Comment » | Snippets

FishClip – Enjoy Two Clipboards

I named this little program FishClip, as an homage to the short fish memory myth :D What good this program is? This gif should explain everything:

fishclip_demo

FishClip allows you to access your previous clipboard content. Continue reading »

Comment » | Programming

How to Upload a Folder Recursive to FTP and display the Progress

I found a nice open-source FTP-Library that can upload files, change the directory etc.  (ftpLib.cs was originally written by Jaimon Mathew and modified by Dan Rolander and others).

But it lacks the feature to upload a Directory recursiv, therefore i coded a class with some Extension Methods.

I also made up a small Example:

Continue reading »

Comment » | Programming

SaveProgress Example for DotNetZip

When i was coding Send2FTP i needed a ZIP-Library that would be able to notify me about the progress while the compression.

After a littlebit research i found DotNetZip a really impressive ZIP Libary for dotNet.

But what i couldn’t find was a good WinForms example for the Save Progress Event. I Also don’t like to deliver my application with alot of dll’s therefore i packed the sources of DotNetZip into the Example.

So i made a small WinForms Example for implementing the SaveProgress Event of the DotNetZip Library and want to share it with you:

Continue reading »

Comment » | Programming

Send2FTP

We just published the first version of Send2FTP.

Send2FTP is an easy to use FTP Upload Tool it  helps you to upload your Files and Folders quickly to your FTP Servers.

Continue reading »

Comment » | Send2FTP

RarClicker

I often encounter a problem when downloading my daily Series in form of rar parts. When doing that i want to open the movie-file already while downloading (like Streaming).

Therefore i made up a small application that clicks the button of the rar application every 1,5s.

Winrar

Because of that i can watch the partial extracted movie with vlc (i guess several other players can do that too).

The code of the Application basically consists of two functions:
Continue reading »

Comments Off | Programming

Back to top