Research Log of Web Science Students

Computer Science is not simply programming

Posts Tagged ‘Android

Loud and Clear

leave a comment »

Yay! Sounds are now a lot more audible than the last time. Read the rest of this entry »

Written by Jhie

December 9, 2009 at 12:27 am

Posted in GBLinMusic

Tagged with , ,

Adding POI’s using long press

leave a comment »

One Feature of our application is to be able to add Points of Interest.
The application should be able to detect long press on the Map and and get the coordinates of the location the user pressed. I tried implementing OnTouchEvent on our overlay which should detect an action down when the user pressed on the screen and a timer for the delay but it seems to overlap on our overlay’s tap listener which lead to failure in detecting Taps.
But using OpenStreetMapViewer‘s own overlay method onLongPress seems to work. I just added an interface Listener for Long Press. Our application can now detect a long press and add Coordinates on our database.
All Poi’s added by the user are called “Sample Building” though.
Still need to work on that.. Maybe I can use a separate activity holding textboxes with a Dialog theme for the interface.

Written by laurencekit07

December 8, 2009 at 12:18 pm

Posted in UP Nav

Tagged with ,

¡Mas alto, por favor!

with one comment

2 out of 3 mini-games are now ready for polishing! But one critical issue that we still have to address at this point is the volume of our game. It’s almost inaudible without speakers or earphones. 😦

What we are currently doing is that we generate individual MIDI files (for each pitch and beat) using JFugue, a free Java API for programming music.  Then we play these files in Android by using a loop which plays the sequence of notes one after another, given a specified time interval. We’ve already maxed out the volume using Android’s sound manager, but that didn’t seem to work.

We’re now looking at the MIDI files themselves. We chose to retain them as MIDI files because they’re small in size which saves a lot of time and memory. But we’ll see what happens if we convert them to another format with louder volume, say MP3 or OGG. 🙂

Written by Jhie

November 29, 2009 at 3:02 am

Posted in GBLinMusic

Tagged with , ,

AR mode radar added

leave a comment »

 

I added a radar that shows the user nearby points of interests within a range of 300km. It also shows the POI’s positions in relation to the user.

As for the marker position on the screen, I still have  to calculate this based on the altitude and pitch values.

Written by laurencekit07

November 26, 2009 at 9:05 am

Posted in UP Nav

Tagged with

task # 1

with one comment

As we had our thesis meeting last Tuesday, I realized that we still had a lot of things to do. So, I’m not gonna waste my time ranting about not having a sembreak. I’m gonna start doing the tasks. T_T

The first task was to remove this screen

Picture 4

Read the rest of this entry »

Written by janinaj

October 22, 2009 at 2:41 am

Posted in BabyBook

Tagged with ,

9++ hours to go!

leave a comment »

And.. We’re about to finish the basics of our application. Here comes the hard part: error checking!

Ugh. We still have to do the other deliverables.

Written by jamiepolloso

October 8, 2009 at 6:36 pm

Posted in BabyBook

Tagged with ,

dynamically populating a spinner

leave a comment »

I found a tutorial on how to dynamically populate a spinner, but it didn’t work. Well, stupid me again. The error was from an misnamed spinner (I was using the spinner of another layout). Anyway, here’s the code.

You could either do this:


spinnerName = (Spinner)AddMilestone.this.findViewById(R.id.yourLayoutSpinnerName);

ArrayAdapter<CharSequence> yourAdapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item);

yourAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 spinnerName.setAdapter(yourAdapter);

yourAdapter.add("Hello World!");

Or this:


String yourStringArray[] = {"Hello World!"};

spinnerName = (Spinner)AddMilestone.this.findViewById(R.id.yourLayoutSpinnerName);

ArrayAdapter<CharSequence> yourAdapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item, yourStringArray);

yourAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

spinnerName.setAdapter(yourAdapter);

Written by janinaj

September 30, 2009 at 5:44 pm

Posted in BabyBook

Tagged with ,