Request here for libraries.

@Neotechni:

I created the Ultimate Audio Library.
This lets you access properties of MP3 files. (Artist, composer, album, etc) and lets you also write to the metadata of an mp3 file.

Tomas

awesome, thank you
 
@Neotechni:

I created the Ultimate Audio Library.
This lets you access properties of MP3 files. (Artist, composer, album, etc) and lets you also write to the metadata of an mp3 file.

Tomas

That wasnt it. I want access to the mediastore, so I can search for all music on the device by category (all/album/artist/etc)
 
This code brings up contacts with multiple phone numbers. For example, instead of Jen, John, Steve, etc. It displays Jen, Jen, Jen, John, Steve. Anything I've found in b4a so far takes too long to display the contacts.

Code: Copy
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.view.View;


public class MyApp extends Activity
{
   View view;
   private static final int PICK_CONTACT = 0;
   
      
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      
   }   
      
   public void callIntent(View view) {
      Intent intent = null;
      switch (view.getId()) {
      case R.id.b1:
         intent = new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI); 
            startActivityForResult(intent, PICK_CONTACT);
              break;
 
Also would be nice for the Contacts/Contacts2
is to getContactInfoByPhoneNumber

When reading SMS messages, I get the -1
for Contact ID, so I end up having to search
through all contacts by phonenumber until i get a match
to find the name of the person
 
Last edited:
Hi XverhelstX, thanks for your offering. Would it be possible for you to create a library that allows us to use the AudioTrack class, from the media package?

Not so long ago Erel decided not to implement it officially because it seems it's a little buggy. But despite of those bugs it would be very useful for many of us that want to experiment with audio streams and create sounds programmaticaly.
 
Last edited:
+1 AUDIOTRACK CLASS

AudioTrack is available since Android 1.5 (API level 3)

- Sends PCM data directly to the device’s audio hardware
- You can use it in two modes: static and streaming.

- Change pitch by Changing the sample rate
- Changing pitch will change tempo

- AudioTrack supports various sampling rates
- 2 PCM encodings
- 8-bit and signed 16-bit PCM
 
I've just released a library based on AudioRecord, AudioTrack will be the perfect compliment to it, I'll have a look and see what I can do. not sure on timescales though.
 
I've just released a library based on AudioRecord, AudioTrack will be the perfect compliment to it, I'll have a look and see what I can do. not sure on timescales though.

You just read my mind! I saw your library release thread and thought exactly that, but then I decided not to be too greedy asking you too for it. Thank you :icon_clap:
 
A library that allows as to access the Display class would be potentially very useful. Particularly the method getRotation() that returns either ( Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_180, or Surface.ROTATION_270)

I was (am) in need of detecting the orientation, not just portrait/landscape, but differentiate between the 4 possibilities, in order to correctly display a complex background bitmap. And the only solution I found was a dirty hack comparing height/width and retrieving the accelerometer info the phone library, in order to make a guess.

This would make life much easier :)

EDIT:
As Erel suggested I've created a new thread for this: How to use reflection library to access display.getrotation()
 
Last edited:
catch 'keyboardHidden' events

Please point me how to catch 'keyboardHidden' events, maybe using
onConfigurationChange().

I bought 50+ android phones (same-M900 with sliding physical keyboard)
and first thing my "buyer" did was to open up physical keyboard and the
program started over!?!? After 6 months - final demo - HELP!
Thanks, Jerry

P.S. Everything is saved at all times so "starting over" is ok, but I
have to reconnect to a B4AServer, c2dm, my server, etc. In mean time,
I am working on shorting the "startup time".

P.S.S. The start over problem happens when my "client" just "PLAYS"
with the smart phone's physical keyboard (not even opening it)!

HELP!
 
Back
Top