Digital clock time adjustment

by N V » Thu, 14 May 2009 00:44:09 GMT


Sponsored Links
 Hi to all...

        Can anyone tell me how can i  adjust Digital clock time...?

Thank You
Nithin N V
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. MediaPlayer Error

Hello All,
I am developing a media application using VideoView.
When I start playing video file, it gets start playing, but after few
seconds I ONLY hear the sound NO VIDEO :(.
When I captured the error it returned
what  = 44,
extra = 0,

and
what = -38
extra = 0

I dont know what does this mean :(.

Could anyone please help me out?

Thanks in advance
Irfan

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

2. Looping Through Images and getting Image Data Bytes

Hi

I have 21 photo JPEG images on a (simulated) SD Card. I want to read
out the binary
image bytes from each image in turn via the Image ContentProvider and
process the
data (upload to a server). I have written the method processImages()
for my Activity -

public void processImages() {
        Log.d(TAG,"processImages()---ENTER---");
        int cnt=1;
        byte [] imageData = null;
        Uri extImagesUri = Images.Media.EXTERNAL_CONTENT_URI;
        String [] projection = {Images.ImageColumns._ID} ;
        Cursor cur = managedQuery(extImagesUri, projection, null,
null, null);
        long rowID=0;
        int idIndex =0;
        //
        cur.moveToFirst() ;
        while ( cur.moveToNext() ) {
                Log.d(TAG,"Picture #"+cnt+" ---begin---");
                idIndex = cur.getColumnIndexOrThrow(Images.Media._ID);
                rowID = cur.getLong( idIndex );
                Uri imageUri =  Uri.withAppendedPath(extImagesUri, (new
Long(rowID)).toString() );
                Log.d(TAG, "imageUri is " + imageUri.toString() );
                try {
                        Bitmap bitmap = Images.Media.getBitmap( 
getContentResolver(),
                                                                                
                        imageUri );
                        if (bitmap == null) {
                                Log.d(TAG, "Sorry no bitmap today :(");
                                Log.d(TAG,"Picture #"+cnt+" ---end-----");
                        cnt++;
                        continue;
                        }
                        ByteArrayOutputStream bytes = new 
ByteArrayOutputStream();
                        if (bytes == null) {
                                Log.d(TAG, "Sorry no ByteArrayOutputStream 
today :(");
                                Log.d(TAG,"Picture #"+cnt+" ---end-----");
                        cnt++;
                        continue;
                        }

                        bitmap.compress(Bitmap.CompressFormat.JPEG, 90,
bytes);
                        imageData = bytes.toByteArray() ;
                        Log.d(TAG,"len of data is " + imageData.length + " 
bytes");
                        // Release bitmap
                        bitmap = null ;
                        //
                        // Do something with imageData
                        // <SNIP> ... </SNIP>

                                                // release imageData
                        imageData=null;
                        if (bytes != null) {
                        bytes.close();
                        }

                } catch (FileNotFoundException of) {
                        Log.e(TAG,of.toString(),of);
                } catch (IOException ioe) {
                    Log.e(TAG, ioe.toString(), ioe);
                }
                Log.d(TAG,"Picture #"+cnt+" ---end-----");
                cnt++;
        }
        Log.d(TAG,"processImages()---EXIT----");
    }

When I run this code I get data fbytes or the first Image only, all
the later Bitmap objects
are returned as null by
--~--~---------~--~----~------------~-------~--~----~

3. How to set initial MapActivity zoom level?

4. Hidden functionality in API demos for sensors - REVEALED :-)

5. Chrome and Android Have Google鈥檚 Head in the Clouds

6. OpenGL sample code

7. J2ME on Android