Putih-putih

by dantez » Wed, 21 Apr 2010 15:59:57 GMT


Sponsored Links
 si mbah ama cicit nya yawh?? ahahahahah :p





-- 
"



Putih-putih

by Enya Anggia » Wed, 21 Apr 2010 16:02:21 GMT


 beuh.. sama2 1.6 pulak yak?
hahahahaa...







-- 
--sent from si Greeny--

-- 
"


Sponsored Links


Putih-putih

by Rizki Muhammad » Wed, 21 Apr 2010 16:27:36 GMT


 Duhh,putihnya bikin ngiler nehh




beuh.. sama2 1.6 pulak yak?
hahahahaa...



-- 
--sent from si Greeny--



-- 
"



Putih-putih

by Renner Chen » Wed, 21 Apr 2010 17:15:57 GMT


 Kurang yang putih-nya nih hehe kok cuma dua... gadgets semua pula ;p

G1 ama X10 kembaran gitu, nice moment! Hehehe...

--rc
What droid doesn't, Ultimate Droid does!!...
japri: android.nyet....@anjroid.net




Duhh,putihnya bikin ngiler nehh






-- 
--sent from si Greeny--


> "



Other Threads

1. Application Crashing OutOfMemory .Restructuring Help Needed

Yo again,

A few clarifying comments to Yahel:



There is no way anyone is going to actually browse more than a few hundred item in a list. Ever !!
I guess it depends what the items are, but in my particular tree 95% of the lists are quite short and being sortabel should help a lot to get the particular PART of the list you are after.
Jim is right : Search & Pagination.
In my case, that was already there. A nice side effect is that it is now easy to get a list of other products in the same category.
If your users are dumb enough to asks the full list and you are actually going to do it, then implements a list like the android market and fetch a 100 items at a time.
Done done. (T-50 days)
I'm pretty sure if you use Flurry to check what your users are doing. You'll find only one or two users sliding below 200 items.
No need for Flurry&CO - it is trivial to see in the web service log.
And a user that asks you to get 30 000 items, is probably a competitor that just wants to steal your database through your webservice anyway :D
Nah, 30000 was just the extreme case. The data is freely available anyway and it is continously updated, so stealing it is hardly an issue. The point of my app is to make is easily accessible on the phone (well, along with using GPS and barcode scanning etc to make it even more powerful). Best / Jonas --

2. Audio Flickering - my code, my computer or android emulator?

Hello,

Since my day 1 Ive been facing problems with Android AudioRecord API.
After a lot of research and a lot more trial and error Ive found my
way into the code and was able to write an asynctask for audio streams
recording which encapsules most of the audiorecord and asynctask
features as a lib, so the developers doesnt need to worry about
finding the best audio parameters, work on stop and release, etc.
So far, everything was right.
Yesterday I started trying to process the audio I got from the
microfone input and my code was reacting bad. I revisited it many
times and decided then to check the audio I was getting from the mic.
Created in instance of AudioTrack and tried to play it back. The sound
was horrible, with lots of chopping, lots of distortion and giving me
even the sensation of low samplerate playback (a single word spoken
sometimes lasted for seconds on the earphone).
To check if it was actually my code I went for the internet and found
the code above. Tried it and got the same results. The only thing that
comes to my mind actually is that, it doesnt matter what I do and the
configuration I try, I always get the buffer overflow message. Even if
I dont actually do anything but read from AudioRecord and write to
AudioTrack (example above, and not in debug mode). If the emulator can
t do it fast enought .... then Im completly lost here.

Based on the output of my algorithm I think the audio streams Im
reading are not right.

Have anyone faced this? does anyone know how to solve it? Could anyone
try the code (copy and paste) and check if its actually my computer
or my emulator?

package com.example.test;

import android.app.Activity;
import android.content.Context;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioRecord;
import android.media.AudioTrack;
import android.media.MediaRecorder;
import android.os.Bundle;

public class test extends Activity {


    boolean isRecording; //currently not used
    AudioManager am;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
       am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
       Record record = new Record();
       record.run();

   }

      public class Record extends Thread
      {
             // SoundPower sndPower = new SoundPower();

              static final int bufferSize = 200000;
              final short[] buffer = new short[bufferSize];
              short[] readBuffer = new short[bufferSize];

              public void run() {
                isRecording = true;
                android.os.Process.setThreadPriority
                (android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);

                int buffersize = AudioRecord.getMinBufferSize(8000,
                AudioFormat.CHANNEL_CONFIGURATION_MONO,
                AudioFormat.ENCODING_PCM_16BIT);
                buffersize = 2048;

                               AudioRecord arec = new
AudioRecord(MediaRecorder.AudioSource.MIC,
                                               8000,
 
AudioFormat.CHANNEL_CONFIGURATION_MONO,
 
AudioFormat.ENCODING_PCM_16BIT,
                                               buffersize);

                               AudioTrack atrack = new
AudioTrack(AudioManager.STREAM_VOICE_CALL,
                                               8000,
 
AudioFormat.CHANNEL_CONFIGURATION_MONO,
 
AudioFormat.ENCODING_PCM_16BIT,
                                               buffersize,
 
AudioTrack.MODE_STREAM);


                               atrack.setPlaybackRate(8000);

                               byte[] buffer = new byte[buffersize];
                               arec.startRecording();
                               atrack.play();

                               while(isRecording) {
                                       arec.read(buffer, 0,
buffersize);
                                       atrack.write(buffer, 0,
buffer.length);
                               }

                               arec.stop();
                               atrack.stop();
                               isRecording = false;
              }
      }
}


This code is not mine. Ive just cut and replaced some values (as the
SampleRate) so it would work.

My specs:

AndroidOS 2.1, last emulator and package (downloaded one week ago).
Dell Vostro 1000 (onboard soundcard), windows XP SP3.

Thank you very much,
Gabriel Simes

-- 

3. removing all items of a listview

4. UI OS build string

5. Google Checkout Finally Arrives in Canada?

6. Help with displaying HTML formatted strings from an ArrayAdapter

7. Multitouch support in various device?