Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

by Binxalot » Wed, 21 Apr 2010 05:41:23 GMT


Sponsored Links
 I'm coming over from C# where I can make a namespace and then have
each class placed into its own .cs file if I want, but in all of the
examples I've seen for android all of the methods and classes are all
in one big java file.

Is it possible to put my classes in to their own java files and then
import those classes into a main program java file as needed like I do
in C#?

--



Other Threads

1. Android on Ubunty 9.04: redux, connecting your G1

THis is what worked for me to get my G1 connected to my Ubuntu 64 Jaunty.



mojote...@kobo:~$ adb devices
List of devices attached

(note: nothing listed here)

mojote...@kobo:~$ sudo touch /etc/udev/rules.d/51-android.rules
[sudo] password for mojotexas:
mojote...@kobo:~$ sudo vi /etc/udev/rules.d/51-android.rules

in vi, add the line:

UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

mojote...@kobo:~$ ls /etc/udev/rules.d/
51-android.rules 70-persistent-cd.rules 70-persistent-net.rules README

mojote...@kobo:~$ sudo chmod a+rx /etc/udev/rules.d/*-android.rules

mojote...@kobo:~$ sudo /etc/init.d/udev reload
* Reloading kernel event manager... [ OK ]

mojote...@kobo:~$ adb kill-server

mojote...@kobo:~$ adb start-server

mojote...@kobo:~$ adb devicesList of devices attached
HT850GZ54711 device



-- 
~m0j0

Neil Hendrick
Yogi Berra <http://www.brainyquote.com/quotes/authors/y/yogi_berra.html>  -
"I never said most of the things I said."

--~--~---------~--~----~------------~-------~--~----~

2. Audio Streams

I am developing an Android application in which I would like the audio
of my application to play 'over' background music (in particular,
music from the built in music app).  Ideally my application will mute
any music currently being played (I would like to have pausing be an
option but would prefer to have mute be the default) while it is
playing a short sound effect (no more than 1 second long).  One way to
do this is to play my audio on a different stream (STREAM_ALARM or
STREAM_NOTIFICATION) and mute the STREAM_MUSIC using the AudioManager
class.  The problem with this is that I will need to modify the volume
level of whichever stream type I choose to play my sound effect so
that the user can hear it (assuming the initial value of the chosen
stream is low).  Is there any way to mute just the sound coming from
the built in music application without muting all STREAM_MUSIC?  Are
there any alternative solutions (i.e. can a developer create their own
stream type, STREAM_DEV, and play their sound effects on this stream
while muting the music stream)?

--~--~---------~--~----~------------~-------~--~----~

3. Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp

4. how to add a button to existing text messaging app

5. can we please

6. Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp.

7. Transparency/Translucency working on emulator but not device