peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Edit: LOL, beaten by seconds


To go to advance search simple do not fill in search filed and just click on Search button. You will be redirected to form for advanced search where you can set number of search options

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Christmas coming and I'm planning on reading Android and Python. Just wait till I start spamming :twisted:

~s.o.s~ commented: Hey, I thought I was the only Java programmer trying out Python! ;-) +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It would be good idea to close this thread, we more likely heard all movie stars name at least twice. It was fun while lasted and we should say good bye our fateful signature spammers

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Perhaps reading sticky post in this forum section called Starting mobile development [SDK / tutorials / resources / faq]

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As already pointed out we do not help with this sort of "applications".
You can either:
A)Come with something useful
B)Find other forum where they would be willing to help you with this

Thread closed. Adhere rules in the future!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I was expecting some conclusion out of this...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you have no ideas that is bad. It means you have no interests/hobbies, have no work and have life. There is just somebody who comes every morning to switch you on and the that person will switch you off in the night. Rest of day you spend in some pre-programmed mode.

Project ideas, browse forum to find thousands of threads (do not be surprised you many in which people are told of for no imagination or intentions to come up with some topics even to describe their interest, just like you)

What teachers want to see is average or interesting idea with possibly new technology that is not showed to you at school. In this case even a website with some new technology can do it as long you can well explain and document why this site with this technology is different from others. (Android, Scala, Wicket, Cloud Computing are some of the buzz words at the moment)
What teachers do not want to see is another HTML/PHP/JSP with JavaScript and some lame database connectivity.

As for me, back in the day I produced peace of application that was manipulating images and PDF. Providing various operations - converting, resizing, paginating, page counts, format counts, split/join. Even though it was Java app, I did use some advanced imaging and PDF libraries and provided unique application

kvprajapati commented: Words! +11
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@shanebond you seriously started off on wrong foot in this forum.
1. Creating multiple posts on some question (C, C++ and Computer Science)
2. Not sing code tags when posting
3. Now this is action you need to take ==>> READ FORUM RULES

jonsca commented: Yes +5
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

its soo shit

Language please! No swearing.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is already there. Check first line ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Then this will make you sad (specifically for xBox360)

[youtube]lYGAYL5o200[/youtube]

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

how can i make program using for loop only that display the output below

By starting reading some C++ books or notes given to your tutor, practising out given examples and then writing up for following assignment. Do not double post again or I will remove your posts and give infraction. People here are not to do your homework by guide you. End of story, start coding or you get no help!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Do not hijack old threads by posting a new question as a reply to an old one
2. Do provide evidence of having done some work yourself if posting questions from schoolwork assignments
3. We only give homework help to those who show effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

My favorite games are "Ban all spammers" and "Delete posts by signature spammers"...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Do not hijack old threads by posting a new question as a reply to an old one (post already moved to new thread)
2. Learn some spelling
3. Here is your chat "massanger" application
4. You may also want to read this

nssltd commented: Loved your link to the chat messenger search! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is plugin for IntelliJ IDEA, but you have to have Commercial version that cost about £195 (no support for Android in Community Edition, from above link you can see it as 5th item from bottom of first table - IDE Features). There been attempts for NetBeans plugin through Kenai project but they got only as far as 1.5.
Generally you can use Android SDK with any IDE as long as you know how to create/build/compile/execute your code with Ant build provided with SDK. I know plenty people that use Eclipse, personally I use IntelliJ as I prefer this IDE even though I have to pay for it...

Gatsby commented: Very helpful indeed. +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is not homework service, We only give homework help to those who show effort. Therefore show some results or fail your homework...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

First, start writing in proper English chat/sms approach is not welcome.
Second, post problem description and not general subject/topic.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK here is solution, enjoy it!

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class JProgressBarDemo extends JFrame {

  protected int minValue = 0;

  protected int maxValue = 100;

  protected int counter = 0;

  protected JProgressBar progressBar;

  public JProgressBarDemo() {
    super("JProgressBar Demo");
    setSize(300, 100);

    UIManager.put("ProgressBar.background", Color.BLACK); //colour of the background
    UIManager.put("ProgressBar.foreground", Color.RED);  //colour of progress bar
    UIManager.put("ProgressBar.selectionBackground",Color.YELLOW);  //colour of percentage counter on black background
    UIManager.put("ProgressBar.selectionForeground",Color.BLUE);  //colour of precentage counter on red background


    progressBar = new JProgressBar();
    progressBar.setMinimum(minValue);
    progressBar.setMaximum(maxValue);
    progressBar.setStringPainted(true);

    JButton start = new JButton("Start");
    start.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        Thread runner = new Thread() {
          public void run() {
            counter = minValue;
            while (counter <= maxValue) {
              Runnable runme = new Runnable() {
                public void run() {
                  progressBar.setValue(counter);
                }
              };
              SwingUtilities.invokeLater(runme);
              counter++;
              try {
                Thread.sleep(100);
              } catch (Exception ex) {
              }
            }
          }
        };
        runner.start();
      }
    });

    getContentPane().add(progressBar, BorderLayout.CENTER);
    getContentPane().add(start, BorderLayout.WEST);

    WindowListener wndCloser = new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
    };
    addWindowListener(wndCloser);
    setVisible(true);
  }

  public static void main(String[] args) {
    new JProgressBarDemo();
  }
}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can find solution here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not surprised with all the restrictions Apple is putting on developers with every new release. As my friend put it, soon will be mandatory to write "public ThankYouSteveJobs" before you could start writing any code for iPhone

ChrisHunter commented: funny post +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Put these two together and you should be able to make it Google Maps API in Java ME and How to get Location Using Location API JSR 179

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

When you get errors, please copy the full text and paste them here.

That will be impossible since all catch statements are simple system calls System.out.println("Error"); .

@blknmld69 replace all System.out.println("Error"); with printStackTrace(x); (x is the exception object treated by catch block)

tux4life commented: Incredibly good suggestion :) +8
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

peter_budo i did it before but the part i am trying to do is it to autorun on a usb drive

You are ignorant fool. Close the other thread! Forum rules clear states

Do not post the same question multiple times

. Your present question is just plain continuation of your other thread with which you should have been continuing....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

ps aux - to show list of running processes
ps aux | grep jetty - get list of all processes containing jetty and colour highlight them
kill 12345 - terminate/kill process with given ID

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

To be fair I know only of XML libraries provided for JME and no Excell (Office) one. I know there are some midlets available but these are commercial products. Try to look into BlackBerry libraries if there is any chance to get their library on common mobile device. Do not invest much time in it, JME is dying by slow painful death

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Liana that is highly unlikely. You have following options
1. Host it at home and open, made it accessible through IP and port
2. Ask your school if they have database hosting available to students
3. Get (buy) your self hosting on some server

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You would need use WURFL that in scenario that device is connecting to a server.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

PHP+JSON to MySQL approach from helloandroid.com is what I found so far

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any moderator or administrator can and no moronic personal messages would change that

Who the hell are you to stop me posting a thread multiple times? I m the owner of daniweb

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Android Tools/SDKs

Simple start/how-to developing in:

  • IntelliJ IDEA (community version 10 does support Android, version 9 only commercial support Android)
  • Eclipse
  • NetBeans 1 or 2 (WARNING!!! NetBeans been always behind with Android SDKs they only on SDK 1.5, they are more active with JavaFX)

Android Books

  • Beginning Android 3 by Mark Murphy, Published: July 4, 2011, (Publisher website with forum threads related to book)
  • Pro Android 3 by Satya Komatineni , Dave MacLean , Sayed Hashimi, Published: April 21, 2011 (Publisher website with forum threads related to book)
  • Beginning Android Games by Mario Zechner, Published: April 21, 2011 (Publisher website with forum threads related to book)
  • Pro Android Media Developing Graphics, Music, Video, and Rich Media Apps for Smartphones and Tablets by Shawn Van Every, Published: December 23, 2010 (Publisher website with forum threads related to book)
  • Beginning Android Tablet Programming - Starting with Android Honeycomb for Tablets by Robbie Matthews, Published: November 7, 2011 (
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You better use Eclipse as NB Android plugin

  • never worked properly,
  • they been behind version deployment bellow is quote from official documentation
    • platforms/android-1.1 - a target matching to older SDK1.1 platform
    • platforms/android-1.5 - SKD1.5
    • add-ons/google_apis-3 - SDK1.5 + Google Maps API
  • lastly this plugin was developed as part of Kenai project that was few months back axed by Oracle so dunno how much support and progress is there...
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@har58 if you already have code why don't you post it so we can see it and help you with what you already have instead of redoing it?

@musthafa.aj nice attempt but you misunderstand question

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have had the same issue... The dani web post is appearing as a higher rank in google then the website. Can someone pleeeeeease delete the html and css from the code from my posts.. and the images? You can leave the questions etc.

The thread is here -> http://www.daniweb.com/forums/thread294173.html

Done, removed images and coding.

For the future please do us favour and do not post your contractor work as it will not be deleted again and your incompetence will be on show for all.

Can assigned mod/admin close this thread (outside of my jurisdiction)?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Only link between them is Java. Where JME provides only subset of traditional Java (JSE), Android adds-on plus relays on XML configuration files. Short comparison of platforms is here http://books.google.com/books?id=8nqlWoGW30sC&lpg=PP1&dq=Professional%20Android%202%20Application%20Development&pg=PA5#v=onepage&q&f=false

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i want u to assist me to start a project

Also this thread close for time travellers...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Threads merged. Please do not flood forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Right click on the project >> select PROPERTIES. In the pop-up window, in CATEGORIES (left side listing) select Libraries & Resources >>on the right press Add JAR/Folder and navigate to place where is the driver or any other library you wish to add >> highlight file/s you want to include and press OK.
You can see sample here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Threads merged

jonsca commented: Thanks Peter! +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@iskalabatoto I'm closing thread as you show bad attitude and instead of discussing coding issue you rather moan about people for not helping you and attempting to flame. Take it as a warning for the future.

One more thing, when you create new thread provide full description of problem. Neither of your new threads show any quality in them

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You should better check what installation of Java you using because Ubuntu 10.04 doesn't come with Sun Java and this has to be add it manually.
Simple check

java -version
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ezhekhyel89 failing to specify what language and technology you prefer, you just lost 80% of forum audience

@Tharanga05 no innovation just repeating what was already done and teachers had to mark years before. In doing so you are putting students in difficult situation being compared with same project idea done previously and often better. Creativity, innovation with use of additional technologies not touch at school is the high score project

@pasindu pathira spelling laziness will not be tolerated. No personal research and ability to assets technology on your own trying to find out how easy/hard will be to add and use these technologies and ideas in your project will be your downfall.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry for delay, here is a working example
HelloMIDlet.java

package hello;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

public class HelloMIDlet extends MIDlet{
  private Display display;

  public void startApp() {

        if(display == null){
            display = Display.getDisplay(this);
        }
        display.setCurrent(new MainScreen(this));
  }

  public void pauseApp(){}

    public void destroyApp(boolean unconditional){}

    public void close(){
        destroyApp(true);
        notifyDestroyed();
    }
}

and form view MainScreen.java

package hello;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.ImageItem;
import java.io.IOException;

public class MainScreen extends Form implements CommandListener, Runnable {
  private HelloMIDlet midlet;
  private Command exitCommand;
  private ImageItem im_item;
  private Image image1, image2;
  private String[] imgSrc = {"/res/r001.png", "/res/r012.png",
    "/res/r024.png", "/res/r033.png", "/res/r039.png", "/res/r048.png"};


  public MainScreen(HelloMIDlet midlet) {
    super("My Form");
    this.midlet = midlet;
    init();
  }

  private void init() {
    image1 = imageLoader(imgSrc[0]);
    im_item = new ImageItem("", image1, ImageItem.LAYOUT_CENTER, "");
    append(im_item);
    exitCommand = new Command("Exit", Command.EXIT, 0);
    addCommand(exitCommand);
    setCommandListener(this);
    Thread t = new Thread(this);
    t.start();
  }

  public void commandAction(Command c, Displayable d) {
    if (c == exitCommand) {
      midlet.close();
    }
  }

  private Image imageLoader(String src) {
    Image img = null;
    try {
      img = Image.createImage(src);
    }
    catch (IOException e) {
      e.printStackTrace();
    }
    return img;
  }

  public void run() {
    try {
      Thread.sleep(3000);//set for 3 seconds
    }
    catch (InterruptedException e) {
      e.printStackTrace();
    }
    appendForm();
  }

  private void appendForm(){
    image2 = imageLoader(imgSrc[1]);
    ImageItem ii = new ImageItem("", image2, ImageItem.LAYOUT_CENTER, "");
    append(ii);
  }
}

PS: Try to keep image outside of Java package for better organization.

Software guy commented: Perfect Example for my Question +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Beginning J2ME: from novice to professional - Chapter 10 Connecting to the World

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is problem with viewing menu option while in Control panel. Please attached screenshot


Also having start new thread button on the top rather at the bottom would be more preferable.

lllllIllIlllI commented: yeah i showed that exact thing a day ago.. no reply yet +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What if I want to display this pattern without the space in between the stars?

Then you will create new thread and show what you did.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If @selviManoharan finds that he/she need still some help than is more then welcome to post in new thread and I really hope it would be proper post.

Since discussion is going off topic, I'm closing this thread

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed thanx to spammers JamesMatthew, MatthewGrace and GraceTaylor which are posting same rubbish

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

isSelected() method inherited from AbstractButton