[android-developers] Digest for android-developers@googlegroups.com - 6 updates in 5 topics

Tom <tom.gradwell@gmail.com>: Apr 30 02:55PM -0700

I have found the same issue with Vista and adb. Sometimes I have been able
to resolve this by disable debug then clearing all authorised from the
android device then re-enabling debug. I wonder if it is something to do
with the key pairs on Windows ?
 
On Sunday, April 24, 2016 at 11:30:54 PM UTC+10, Mark Hansen wrote:
Mark Hansen <meh.2000@gmail.com>: Apr 30 03:13PM -0700

I just tried to install Android Studio 2.x on a different laptop, which
I've never used before for Android development. It is running Windows 7
Home Premium and is an AMD-based laptop. AS runs okay (although a bit slow)
but I'm not able to connect to my phone device via adb. It also says
unauthorized and don't prompt me on the phone to allow connecting. I turned
off developer options, then turned it back on again. I then enabled USB
debugging and then revoked authorizations. I then did an 'adb kill-server'
and then a start-server but still, no prompt on the phone to allow USB
debugging.
Nilesh Darade <nil.darade@gmail.com>: Apr 30 11:30AM -0700

My code to take audio recorder.
 
Anything I missing?
 
 
I know following code is not upto mark but I tried to extract what I have in the code.
 
 
 
public static AudioRecord findAudioRecord(Context context) {
AudioRecord recorder = null;
try {
AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
int _rate = Integer.parseInt(audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE));
//int bufferSize = Integer.parseInt(audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER));
for (short audioFormat : new short[]{AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT}) {
for (short channelConfig : new short[]{AudioFormat.CHANNEL_IN_MONO, AudioFormat.CHANNEL_IN_STEREO}) {
 
Log.d(TAG, "Attempting rate " + _rate + "Hz, bits: " + audioFormat + ", channel: "
+ channelConfig);
int bufferSize = AudioRecord.getMinBufferSize(_rate, channelConfig, audioFormat);
if (bufferSize != AudioRecord.ERROR_BAD_VALUE) {
// check if we can instantiate and have a success
recorder = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, _rate, channelConfig, audioFormat, bufferSize);
 
if (recorder.getState() == AudioRecord.STATE_INITIALIZED) {
_bufferSize = bufferSize;
return recorder;
}
}
 
}
}
} catch (Exception e) {
Log.e(TAG, "Exception, keep trying.", e);
}
 
// I'm removing above configurations (_rate) from below code...
 
 
for (int rate : new int[]{8000, 11025, 16000, 22050, 44100}) {
for (short audioFormat : new short[]{AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT}) {
for (short channelConfig : new short[]{AudioFormat.CHANNEL_IN_MONO, AudioFormat.CHANNEL_IN_STEREO}) {
try {
Log.d(TAG, "Attempting rate " + rate + "Hz, bits: " + audioFormat + ", channel: "
+ channelConfig);
bufferSize = AudioRecord.getMinBufferSize(rate, channelConfig, audioFormat);
 
if (bufferSize != AudioRecord.ERROR_BAD_VALUE) {
// check if we can instantiate and have a success
recorder = new AudioRecord(MediaRecorder.AudioSource.DEFAULT, rate, channelConfig, audioFormat, bufferSize);
 
if (recorder.getState() == AudioRecord.STATE_INITIALIZED) {
_bufferSize = bufferSize;
return recorder;
}
}
} catch (Exception e) {
Log.e(TAG, rate + "Exception, keep trying.", e);
}
}
}
}
return null;
}
Subho Priyo <priyo.subho@gmail.com>: Apr 30 11:06AM -0700

My handset is Motorola Moto G3 (3rd Generation), On this type of stock
android handest should have double Tap Lock and unlock facilities and there
are aslo needs some moods in Camera by default. Which two thing make any
stock android handset very helpful as a user like other some handset those
are have these options.
andres roldan <andres178bur@gmail.com>: Apr 30 06:28AM -0700

Hi everyone, i have a big question i am beginner with android, and i have
to do a system reserve in a library for the rooms, someone has idea, anyone
has an idea of how, if I need some special items, or you can provide me an
example of code to guide me, i have knowledge with Java, but Android is a
little different. I think so i can do this similar like a reserve in a
hotel or restaurant, if you can provide me any help i will ve very grateful
KNOWLEDGEB LAND <knowledgeland525@gmail.com>: Apr 30 10:59AM +0400

الرجاء التكرم بالضغط على المربع في حالة عدم ظهور الصورة:-
 
Training Department
 
HEAD OFFICE COMPANY GROUP
 
DUBAI -SH.ZAYED ROAD-CITY TOWER 2
 
CALL CENTER FOR COMPANY GROUP: 0097143513999
 
CENTRAL FAX OF COMPANY GROUP: 0097142557615
 
Email: info@knowledgeland.ae
 
www.knowledgeland.ae
 
www.knowledge-land.org
 
Our Vision: To become one of the most important leading centers in the field of training through the development of standards of excellence and the provision of high quality.
 
رؤيتنا : أن نصبح أحد اهم المراكز الرائدة في مجال التدريب من خلال وضع معايير التميز وتوفير جودة عالية
 
Note: To unsubscribe your email from our Mailing list please click here
 
Note: More Training Courses on www.knowledgeland.ae
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

No comments:

Post a Comment