want code

by star_bangalore » Sat, 07 Mar 2009 11:00:22 GMT


Sponsored Links
 hello please provide me a code 2 play video files in android..i just
want put video files in res/raw folder.. so it need to play that
files..
please help me to write a code of this type..

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



Other Threads

1. 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);

-- 

2. how to get the icons of running services ?

Hi all,

Can any one tell how to retrive the icon of a running service ?


Thanks
Mayuran.

-- 

3. Address Parsing in Android Webkit

4. Animate a single view in sequence

5. Soundpool / isplaying or length of audio

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

7. AudioTrack flush() does not work