Posts

Showing posts from May, 2008

what i need for bluetooth in suse

Image
How to send files to your mobile phone in linux if you have bluetooth dongle and you want to send files to your mobile phone may be and vice versa. you need to install gnome-bluetooth http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=gnome-bluetooth and bluez-gnome install with one-click install http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=bluez after installed started two of themwe should make some easy configurations as you see in this screenshot two icons will be placed in panel when you right click to bluetooth manager and open preferences you need to "visible for other devices " -> checked "make adaptor invisible after" -> never if you want you may restart service like this sertac@linux-mlpd:~> su Password: linux-mlpd:/home/sertac # /etc/init.d/bluetooth restart Shutting down bluetooth ( hcid) done Starting bluetooth: hcid rfcomm

RadioSC J2ME Radio

Image
i have tested RadioSC with nokia 5200 and listening now :D plug in your earphone before starting RadioSC if you get exception about headset just simply exit RadioSC unplug earphone plug in earphone start RadioSC get RadioSC jar java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package paket; import java.io.IOException; import javax.microedition.media.MediaException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.media.Manager; import javax.microedition.media.Player; /** * @author sertac */ public class RadioSC extends MIDlet implements CommandListener{ Display d; Form f; Command cmdPlay; String channel; TextField tfFreq; Player player; Command cmdExit; static final String banner="www.SmobileZ.blogspot.com"; public RadioSC() { d = Display.getDisplay(this); f = new Form(banner); tfFreq = new TextField("Channel", "90.60",5, TextF

CanvasSC

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package paket; import java.io.IOException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author sertac */ public class Main extends MIDlet implements CommandListener { Display d; Form f; Command cmdDisplay; TextField tfWord; Canvas canvasSC; Displayable curr; String s; public Main() { f = new Form("CanvasSC"); tfWord = new TextField("Yazdırmak istediğiniz yazıyı girin ", null, 10, TextField.ANY); cmdDisplay = new Command("Display", Command.OK, 1); f.addCommand(cmdDisplay); f.append(tfWord); f.setCommandListener(this); } public void startApp() { d = Display.getDisplay(this); if (curr != null) { d.setCurrent(curr); } else { d.setCurrent(f); curr = f; } } public void