Android supports audio bookmarking

by Joel » Fri, 04 Sep 2009 01:44:49 GMT


Sponsored Links
 In the android-platform group, the topic of audio bookmarking came up
- 



Other Threads

1. MapView + LocationManager Question

Hi everyone,

I am currently working with the MapView. When the MapView is loaded I
request a GPS fix, when I get the GPS fix I plot it on the MapView.
After that I set a timer for 1 minute. When the timer Ticks I tell it
to get my GPS location again and plot it but for some reason
locationManager.requestLocationUpdates(provider, 0, 0,
locationListener); doesn't do anything. The code gets hit but it
doesn't try to get my GPS location. I'm not getting any errors
reported back. The code for the timer is set in the onLocationChanged
event. Below is the code I have.


public void onLocationChanged(Location location){
                locationManager.removeUpdates(locationListener);
                p = new GeoPoint((int)(location.getLatitude() * 1E6),(int)
(location.getLongitude() * 1E6));
                MyOverlay myOverlay = new MyOverlay();
                mc.animateTo(p);
                mc.setCenter(p);
                mc.setZoom(17);
                overlays.clear();
                overlays.add(myOverlay);
                overlays.add(myLocationOverlay);
                myPoints.add(p);

                mapView.invalidate();

                //Set Next Timer for GPS Check. Default 5 Minutes
                checkGPS = new Timer();
                final Location myLoc = location;
                checkGPS.scheduleAtFixedRate(new TimerTask(){
                        @Override
                        public void run(){
                                
locationManager.requestLocationUpdates(provider, 0, 0,
locationListener);
                                //myLocationOverlay.onLocationChanged(myLoc);


                        }
                },60000,60000);


Like I said, the first time around it does what it needs to. The
reason I am trying to do this is because I don't want the GPS running
constantly to track my position I just want it to check every X
minutes(currently 1 minute for testing) Is this something that I can't
do in a MapView? Does the GPS have to be on all the time in order to
work?

-- 

2. Spinner added to onDraw view

I have a view (scalesView.java) that I create with onDraw and I need
to add a spinner selector to the lower left of the screen. The code
(below) runs and places a spinner where I need it but when I enable
the setAdapter, the app crashes. When I remove the spinner code the
view works fine, when I add a listview (instead of a spinner) it works
fine. Although I can't get the listview small enough to work in the
corner of my app.

What am I missing about using setAdapter?

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mView = new scalesView(this);


        scaleSpin = (Spinner)this.findViewById(R.id.scalespinner);

       ArrayAdapter<String> adapter = new
ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, res);
       System.out.println("first");
 
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        System.out.println("second");

//This line crashes the app
        //scaleSpin.setAdapter(adapter);



        final RelativeLayout myLayout = new RelativeLayout(this);
        myLayout.setLayoutParams(new
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));

        View v = this.getLayoutInflater().inflate(R.layout.scalelist,
null);
        RelativeLayout.LayoutParams params2 = new
RelativeLayout.LayoutParams(100, LayoutParams.WRAP_CONTENT);
        params2.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
        params2.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
        v.setLayoutParams(params2);


        myLayout.addView(mView);
        myLayout.addView(v);


        setContentView(myLayout);

-- 

3. how to get the icons of running services ?

4. Address Parsing in Android Webkit

5. Animate a single view in sequence

6. Soundpool / isplaying or length of audio

7. App Appears Multiple times in "Recent Apps" list.