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
please help me to write a code of this type..


Other Threads

1. Dialog box without title

Hi all,

Is there a way, I can remove title from the default dialog box ?

I am using following code :

Dialog alertDialog = new Dialog(getApplicationContext());

But it shows a titlebar with no text in it. How can I avoid that?



2. JSONObject optString output


I'm receiving a Json response like this:

{"password_confirmation":["is too short (minimum is 4
characters)"],"password":["is too short (minimum is 4
characters)","doesn't match confirmation"],"email":["is too short
(minimum is 6 characters)","should look like an email
address."],"login":["is too short (minimum is 3 characters)","should
use only letters, numbers, spaces, and .-_@ please."]}

I create a JSONObject with the previous string, but when I try to show
the value of a key on my app I'm getting the output with brackets and

HttpResponse mHttpResponse = mHttpClient.execute(mHttpPost);
String jsonString = EntityUtils.toString(mHttpResponse.getEntity());
     try {
          JSONObject jsonResponse = new JSONObject(jsonString);

The optString method returns ["is too short (minimum is 3
characters)","should use only letters, numbers, spaces, and .-_@
please."]. Is this a normal thing or is something wrong in what I'm
doing. Should I just strip brackets and quotes from the string?




3. XmlPullParser in a Thread returns nothing every other run. Why?

4. smooth videos play

5. How to get Context Menu group id

6. Action Bar

7. java.lang.RuntimeException: android.view.InflateException : Binary XML file: Error inflating class