Today I tried to implement ChatColors, but it's definitely a work in progress. I hope to possibly start it tomorrow (today I researched it). I found out that it's going to need to be serverside, and I'm going to have to use substrings to figure out if there's a chat color in the text and then change the text sent back to the client from there.
Aki worked more on EIMACS and figuring out how to make his first app. I fixed some issues he had in IntelliJ.
Tuesday, September 23, 2014
Monday, September 22, 2014
Eimacs: My First App
Today I worked on the eimacs curriculum but I am a bit slow at it because the tutorials are for NetBeans and Eclipse while I am using IntelliJ.
Notes
Finn Edit: I was sick today, but over the weekend I was able to get chat fully working with usernames. Now, it'll have a username in chat before the text, the username being found via SharedPreferences (it was saved back from the Account Creation screen!). I also fully finished the Music and SFX players (using the MediaPlayer object), so as soon as we have sounds, they can be easily played from any class that calls them!
I haven't checked with Aki yet, but this week my goals are to fully code all image buttons for the menu, have art done for all the buttons, and possibly start some UI coding for the game.
Notes
- Activity: A screen(menu, settings) of the app where the user can make actions like press buttons or swipe (quit, change volume)
- View: The class for widgets for the user to perform actions like buttons
- ViewGroup: A subclass for View and the base class for layouts. It includes AbsoluteLayout, RelativeLayout, LinearLayout, and GridLayout for positioning widgets and such.
- Method: From what it sounds like this is basically a function
- Intent: These seem to tell the app what to do, like quit the app. You can also add FLAG like here "Intent.FLAG_ACTIVITY_NEW_TASK" to prioritize the Intent so, for instance, you would want a quit button to quit the app ASAP.
- Class: Someone described it as blueprints where methods are placed and it can create different objects. So it was described as blueprints(class) for bikes(objects) where the different bikes had different features like gears,etc.
Finn Edit: I was sick today, but over the weekend I was able to get chat fully working with usernames. Now, it'll have a username in chat before the text, the username being found via SharedPreferences (it was saved back from the Account Creation screen!). I also fully finished the Music and SFX players (using the MediaPlayer object), so as soon as we have sounds, they can be easily played from any class that calls them!
I haven't checked with Aki yet, but this week my goals are to fully code all image buttons for the menu, have art done for all the buttons, and possibly start some UI coding for the game.
Friday, September 19, 2014
First Server! Chat!
Today after several hours I finally finished an entire server as well as a chat client on our app. Currently it still has some bugs (it needs to be able to receive other users' messages), but the server effectively receives all messages!
The server/client relationship is done via a Socket. There's not many new screenshots to post, however, since we haven't made any new layouts!
The server/client relationship is done via a Socket. There's not many new screenshots to post, however, since we haven't made any new layouts!
Thursday, September 18, 2014
Buttons
I used Finn's template to code a couple of buttons mainly in the new menus we added which was a log in screen and a server list although I actually forgot how to save the rendered images so I'll include the pictures in tomorrow's post when I figure it out.
EDIT: here are some pictures
The server list will use SQL to list servers when possible
EDIT: here are some pictures
The server list will use SQL to list servers when possible
Music Players and Image Buttons
Today I worked with the MediaPlayer class, and attempted to get background audio working, but I am still having issues with starting it. I'll finish it hopefully tomorrow.
Aki and I also worked on ImageButtons, but we're still clearing out issues with resizing the images to fill the buttons.
Aki and I also worked on ImageButtons, but we're still clearing out issues with resizing the images to fill the buttons.
Tuesday, September 16, 2014
Custom Buttons, Menus, and More
Finn starting working on SQL and he also taught me a bit of Java and basic listeners(how to work a button).
final Button menuStore = (Button) findViewById(R.id.menuStore); //Button in menu to store
menuStore.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent startStore = new Intent(v.getContext(), StoreHandler.class);
startActivity(startStore);
I can basically use this as a template for making buttons, all I have to do is change the IDs. I also added a store page but it's not that interesting.
I also started working on some custom UI and buttons last night. They are available here in a zip file (updated daily)! -Finn
Our goals for the week are
final Button menuStore = (Button) findViewById(R.id.menuStore); //Button in menu to store
menuStore.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
Intent startStore = new Intent(v.getContext(), StoreHandler.class);
startActivity(startStore);
I can basically use this as a template for making buttons, all I have to do is change the IDs. I also added a store page but it's not that interesting.
I also started working on some custom UI and buttons last night. They are available here in a zip file (updated daily)! -Finn
Our goals for the week are
- Make custom buttons
- Finish up most of the menus
Saturday, September 13, 2014
Reworking the Menu! + Optimization
Today I've started working on reworking the Menu code and optimizing it. I've removed several duplicate variables, etc. and I've also created a new Activity to handle the settings. In simpler words, an Activity is simply a second class, called to by the main class via an Intent. This allows you to keep multiple classes and simplify/organize your code better. In addition to this, I also got the Music sound bar working! It now also tracks progress.
I also worked a bit on making things look better. Now, before you change a sound setting, the text will be invisible (if you have already changed the sound in the app and gone back to the main menu, then returned again to the settings menu). It's a bit oddly specific and confusing, and I'm still trying to work out it being invisible until being changed.
However, as you change it, you will be able to see the percentage number to fine-tune it.
Other smaller changes:
I also worked a bit on making things look better. Now, before you change a sound setting, the text will be invisible (if you have already changed the sound in the app and gone back to the main menu, then returned again to the settings menu). It's a bit oddly specific and confusing, and I'm still trying to work out it being invisible until being changed.
However, as you change it, you will be able to see the percentage number to fine-tune it.
Other smaller changes:
- The theme is now always Holo.NoActionBar.FullScreen - This means that the Android action bar / notification bar is never shown in-app unless you swipe downwards to see it (unlike previous screenshots)
- The OK button in settings now promptly returns you to the menu!
- The app now forces Landscape mode and will only be in Landscape mode (moving your device will not change it to Portrait mode).
Subscribe to:
Posts (Atom)



