Want to join this group.

by Tushar » Fri, 20 May 2011 09:50:54 GMT


Sponsored Links
 Want to join this group. Please add me.

-- 



Re: Want to join this group.

by Zsolt Vasvari » Fri, 20 May 2011 10:12:34 GMT


 No can doozie, babydoll, no can doozie.




-- 


Sponsored Links


Re: Re: Want to join this group.

by Chris Stewart » Fri, 20 May 2011 10:40:53 GMT


 Ok, ok, I'll add you I guess.  There, you're added.

--
Chris Stewart
 http://chriswstewart.com 








-- 



Other Threads

1. Raw sound file as ringtone

Hi all,

I am using the following code trying to pull an .mp3 or .ogg file from
my raw directory and saving it to the sd card and activating it as a
ringtone. Although, it keeps failing for some reason or another and
doesnt actually copy the new file to the sdcard.

Any ideas please?

    public boolean saveas(int ressound){
         byte[] buffer=null;
         InputStream fIn =
getBaseContext().getResources().openRawResource(ressound);
         int size=0;

         try {
          size = fIn.available();
          buffer = new byte[size];
          fIn.read(buffer);
          fIn.close();
         } catch (IOException e) {
          // TODO Auto-generated catch block
          return false;
         }

         String path="/sdcard/media/audio/ringtones/";
         String filename="priceringtone"+".ogg";

         boolean exists = (new File(path)).exists();
         if (!exists){new File(path).mkdirs();}

         FileOutputStream save;
         try {
          save = new FileOutputStream(path+filename);
          save.write(buffer);
          save.flush();
          save.close();
         } catch (FileNotFoundException e) {
          // TODO Auto-generated catch block
          return false;
         } catch (IOException e) {
          // TODO Auto-generated catch block
          return false;
         }

         sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
Uri.parse("file://"+path+filename)));

         File k = new File(path, filename);

         ContentValues values = new ContentValues();
         values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath());
         values.put(MediaStore.MediaColumns.TITLE, "exampletitle");
         values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/ogg");
         values.put(MediaStore.Audio.Media.ARTIST, "cssounds ");
         values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
         values.put(MediaStore.Audio.Media.IS_NOTIFICATION, true);
         values.put(MediaStore.Audio.Media.IS_ALARM, true);
         values.put(MediaStore.Audio.Media.IS_MUSIC, false);

         //Insert it into the database
 
this.getContentResolver().insert(MediaStore.Audio.Media.getContentUriForPath(k.getAbsolutePath()),
values);

         return true;
        }

-- 

2. Need Bluetooth UUID clarification

I am trying to connect to a Bluetooth headset, and it fails at the
time of connect with an error: "Service Discovery Failed". Following
is the code snippet.

BluetoothSocket btsock =
device.createRfcommSocketToServiceRecord(UUID.fromString("00000003-0000-1000-8000-00805F9B34FB"));
btsock.connect();

Obviously, the problem is with the UUID.

We've a J2ME implementation that can connect to the headset with UUID
as:
final UUID RFCOMM_UUID = new UUID(0x0003);

Same headset can be connected on Symbian implementation using:
KSerialPortUUID = 0x1101;

We do not have the folks who worked on both J2ME and Symbian.
What should be the UUID in Android? What would be the 128 bit UUID for
SerialPort service?

-- 

3. Updating the UI in response to a received broadcast.

4. multiple parameters with rawQuery in sqlite = BUG

5. HTML content on AppWidget

6. How to run a prefs activity from my widget !!

7. How to manage orientation dependent activities?