Search:

Type: Posts; User: aussiemcgr

Page 1 of 20 1 2 3 4

Search: Search took 0.75 seconds.

  1. Replies
    9
    Views
    10

    Re: Forum's policy on self promotion?

    Have we ever thought about adding a section to the forum for self-promotion? A sort of "what I'm working on" section or something for people to post projects and others to give feedback?
  2. Replies
    9
    Views
    10

    Re: 'new' instantiating command ??

    Consider the three example classes below, which I will use to answer your question:

    public class Value {
    private int value;

    public Value(int val) {
    value = val;
    }

    public int...
  3. Replies
    9
    Views
    10

    Re: 'new' instantiating command ??

    On the left side, you are creating a variable, named object_name, with the type class_name. On the right side, you are initializing a new class_name object. This is an important distinction.
    The...
  4. Re: Best way to implement Ad-Supported and Paid app versions

    Actually, I came across something interesting: Managing Projects from Eclipse with ADT | Android Developers
    I wonder if this will serve my purpose. Since it sounds like you are having a similar...
  5. Best way to implement Ad-Supported and Paid app versions

    I have an app and I am looking to have two version: a free, ad-supported version, and a paid $0.99 version. The two apps should be identical, with the only exception being one has ads and the other...
  6. Replies
    8
    Views
    9

    Re: Java webservice

    Are you the person who writes the clients? If so, the easiest solution would be to attach the IP to the request header.
    Alternatively, the first thing I would suggest doing is temporarily logging...
  7. Replies
    8
    Views
    9

    Re: Java webservice

    Does this help? java - Geting the IP Address Of A client For a webservice - Stack Overflow
  8. Re: Continuously get user's input until an empty string is entered

    That's not an empty String, that's a String with a space in it.
    Do:

    if(name.trim().equals(""))

    name.trim() will remove any leading or trailing spaces, and "" is an empty String. So this will...
  9. Replies
    1
    Views
    2

    Single Instances of Activities

    I have a very specific program flow for my activities. There are two flows, which look like this:
    Flow 1)
    Main Activity - contains button to take you to the New Puzzle activity
    New Puzzle...
  10. [SOLVED] Re: Illegal start of expression? // begginer

    The main is in itself a method, and you cannot have methods inside methods. You just need to reorganize your brackets:

    public static void main (String args[]) {

    Scanner in = new...
  11. Replies
    6
    Views
    7

    Re: Drawing and Scrolling

    My current plan for panning is to shift all the graphics and redraw everything. But that seems extremely memory intensive (I could only draw what is visible I suppose). I was hoping to see if there...
  12. Replies
    6
    Views
    7

    Re: Drawing and Scrolling

    FYI: so I have figured out the drawing stuff.
    However I am still trying to figure out the scrolling. I think what I'm looking for is panning, not scrolling.
    I have a view and an activity. The...
  13. Replies
    6
    Views
    7

    Drawing and Scrolling

    I need to create a view which basically just consists of drawing and the ability for the user to scroll the drawing.
    Does anyone know of any good tutorials which cover this?
  14. Re: Best way to port a Swing Application to Android

    If you have a specific phone you are making the program for (or a specific group of phones), find out what version of Android they run, and build your program with it. If you do that, there should be...
  15. Re: Best way to port a Swing Application to Android

    The emulators are accurate enough. They are slower (normally), but functionally okay. You can configure the emulators to emulate specific devices to test with, so there is a lot to work with there...
  16. Re: Best way to port a Swing Application to Android

    The GUI needs to be created from scratch, but you can port the operational code by refactoring your Swing Application.
    To do this refactoring:
    1. Create a new project (let's call it: "Core")
    2....
  17. Replies
    6
    Views
    7

    Re: Sending XML to PHP Service via POST

    No. It is still compiled in Java SE 7 and the runtime is still Java SE 7. It shouldn't have any Java 8 stuff.
    I use a DocumentBuilder created by the DocumentBuilderFactor (which I have set to be an...
  18. Re: how to ensure that my method wont return the same random number twice in a row

    Then make i the lowest possible number if it goes out of range. That way you would cover the entire range. If the entire range has been used, you would have to throw an exception or something.
  19. Replies
    6
    Views
    7

    Re: Sending XML to PHP Service via POST

    Well it only takes that long when attempting to do it from the Android emulator. I have an android platform and a desktop platform. The two call the exact same code, which performs the request to the...
  20. Replies
    6
    Views
    7

    Re: Sending XML to PHP Service via POST

    I'll have to look into that. I've used JSON at work before, but never on my personal time.
    One of my services returned a 128kb (I think) XML result to my android app, and it took 10 minutes or so...
  21. Replies
    6
    Views
    7

    Sending XML to PHP Service via POST

    I have a server with a handful of php services. I communicate with these services by creating connections from java code. The services currently respond with XML, but that can be changed if an...
  22. Re: NullPointerException but dont know why

    Can you provide updated code? Did you call r.openFile() BEFORE getZender()?
  23. Replies
    7
    Views
    8

    [SOLVED] Re: How to create your own packages?

    Packages are just folder structures (well, they are more than that, but digging deeper is unnecessary).
    You also need to specify the package for each class at the top (before the imports). Like:
    ...
  24. Replies
    5
    Views
    6

    Re: What's wrong with my method?

    I never thought about that. Clever, lol.
  25. Replies
    5
    Views
    6

    Re: What's wrong with my method?

    Most likely because you are modifying the size of the members list while looping it with an iterator.
    Try this instead:

    for(int i=0;i<members.size();i++) {
    Membership membership =...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4