Search:

Type: Posts; User: Fabgio

Search: Search took 0.50 seconds.

  1. Replies
    6
    Views
    125

    Re: ArrayList(s) tabs

    no, not yet. I think I need to clean up my mind. I am lost, I need to rethink about this stuff!
  2. Replies
    6
    Views
    125

    Re: ArrayList(s) tabs

    public class CommandGridFragment extends Fragment {
    private GridView mGridView;
    ....

    public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle SavedInstanceState) {
    ...
  3. Replies
    6
    Views
    125

    Re: ArrayList(s) tabs

    I tried to replace setupAdapter with:


    void setupAdapter(ArrayList<Command>commands) {
    if (mCommands != null) {
    mCommandAdapter = new CommandAdapter(commands);
    ...
  4. Replies
    6
    Views
    125

    ArrayList(s) tabs

    I have been working with an ArrayList and two tabs in Android. Here is the code.
    CommandGrid Fragment.java:




    public class CommandGridFragment extends Fragment //"List" fragment {
    ........
  5. Replies
    4
    Views
    524

    [SOLVED] Re: Concurrent Modification Exception

    Yes I got it thanks a lot
  6. Replies
    4
    Views
    524

    [SOLVED] Re: Concurrent Modification Exception

    Yes I am modifiying the data structure of mGroups over the loop which causes C.M.E. so which is the best way to solve the problem? I tried HashMap... but I got difficulties in implementing...
  7. Replies
    4
    Views
    524

    [SOLVED] Concurrent Modification Exception

    I have been developing an Android home automation application. Every Command belongs to a Group which describes a particular category of Commands, e.g. Warming management, lighting, etc....
  8. [SOLVED] Finding an object containg a given property in an ArrayList

    I have got the code listed below:


    class Address {
    String name;
    String street;
    String city;
    String state;
    String code;
  9. Replies
    3
    Views
    670

    [SOLVED] Re: Passing parameters to an Applet

    I have just solved the problem. Following your tip I verified the information source was present. So I commented out the HTML block and exported it to an HTML file. So everything works! I made a...
  10. Replies
    3
    Views
    670

    [SOLVED] Passing parameters to an Applet

    I am in the throws of passing parameters to an applet using getParameter method. I am completely new to HTML tags.
    Here is the code:


    import java.awt.*;
    import java.applet.*;
    /*
    *
    ...
  11. Re: Problems in reading/writing from/to a socket

    For information about Bticino my home system go to the following link:
    bticino - Local and remote control
  12. Re: Problems in reading/writing from/to a socket

    By the way, hanging around the Internet I found out a dedicated Java class performing what I need. Anyway thank you so much for your support!
  13. Re: Problems in reading/writing from/to a socket

    Basically I set up a thread just to give a sleep() to the main() with the aim to get any result. Still I desided to comment it out afterwards. So you could not take it into consideration.
  14. Problems in reading/writing from/to a socket

    I have been trying to send a command string to my domotics web server which is connected to a bus and then to my LAN. The command that has to be sent to the web server through the bus is a ...
  15. Replies
    7
    Views
    467

    Re: Confused with constructor

    Basically you need to define a non-static context if you want to use constructors.
    Here is a modified version of the code.
    Hope this will work properly


    public class ClassWork {
    ...
  16. Replies
    14
    Views
    801

    Re: Very Beginner...very frustrated...

    First and foremost you need to define the s symbol. It could be an instance variable or an object. If s were a cat type object you should define a "Cat" class. Therefore the s object would be...
Results 1 to 16 of 16