d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Navigation In Java - Creating New Slides
Add Reply New Topic New Poll
Member
Posts: 13,172
Joined: Apr 29 2008
Gold: 167.50
Jul 13 2012 08:25pm
I am brand new to Java. Am I write in saying this.

With an FTP you basically have files.

Is it a files/folders set up you'd use in Java kind of?

I want to make a main (home page) for a java application then on click of a button it goes to (second page).

This is for Android / Indigo.

1. You create two projects.
2. Link the two projects?

What am I not understanding with this. It seems so simple.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 13 2012 09:53pm
im not entirely sure what you're asking. first you talk about "slides", then FTP, then using java for files/folders, then about navigating from one page to another, then about linking two projects. Make up your mind.

if you want to go from one android activity to another with the click of a button:
1. add a button to the activity
2. in the onClick event, launch a new intent with the new activity you want to launch
3. done

This post was edited by carteblanche on Jul 13 2012 09:54pm
Member
Posts: 13,172
Joined: Apr 29 2008
Gold: 167.50
Jul 13 2012 10:53pm
Quote (carteblanche @ Jul 13 2012 09:53pm)
im not entirely sure what you're asking. first you talk about "slides", then FTP, then using java for files/folders, then about navigating from one page to another, then about linking two projects. Make up your mind.

if you want to go from one android activity to another with the click of a button:
1. add a button to the activity
2. in the onClick event, launch a new intent with the new activity you want to launch
3. done


was kind of talking about web layouts. Do you just create one slide then you have to create another one?

You know basically in web architecture that you just use files and folders. Is that the same with Java kind of? Each slide is a new project? They are independant of each other then you connect two projects together like you would two files for building a website?

This post was edited by Web_Designer on Jul 13 2012 10:55pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 14 2012 12:19am
I recommend you read tutorials or a book so you can gain a better understanding.

tldr java classes/objects interact with each other, not files

and a project contains many classes
Member
Posts: 13,172
Joined: Apr 29 2008
Gold: 167.50
Jul 14 2012 04:12pm
Quote (carteblanche @ Jul 14 2012 12:19am)
I recommend you read tutorials or a book so you can gain a better understanding.

tldr java classes/objects interact with each other, not files

and a project contains many classes


Am I right in saying Java files are huge lines of code since there's no seperation of pages?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 14 2012 04:30pm
can you give me an example of "separation of pages"?

You generally don't focus on "files", but rather "classes". usually you have one class per file and many methods per class. but you can also have multiple classes per file (anonymous, inner, private classes). in C#, you can also have partial classes so a single class spans multiple files.

classes and methods are inside code blocks, which are separated via braces {}

in the android world, each screen you see is usually in a dedicated activity which is its own class and in another file. in addition to the activity, you also have the corresponding xml files (layout, style, user controls, etc), then another class to handle business logic, and another to handle data access

This post was edited by carteblanche on Jul 14 2012 04:36pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll