Using Sound Recorder activity for capturing audio in Android

One more solution for capturing audio in Android.
You can use existing application which can capture audio for you. I am going to show example which shows how to start Sound Recorder activity:

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.widget.Button;

/**
* This class shows how to run Sound Recorder activity
* @author The Developer’s Info
*/
public class Main . . . → Read More: Using Sound Recorder activity for capturing audio in Android

  • Share/Bookmark

Capturing audio in Android

In this post I am going to show how to capture audio in Android.
Android allows to capture audio in very easy manner. But today I spent 3 hours for creating working example. I don’t know why I spent so much time, maybe because it is first time when I tried to work with multimedia in Android. Anyway now I know how it works and I want to share my knowledge. Here I am going to record/capture audio from phone’s/emulator’s microphone to the SDCard (Note: I used web camera’s microphone for recording audio – it works). Continue reading Capturing audio in Android

  • Share/Bookmark

Showing running services in Android

Here I want to share snippet of code which I found when I tried to get all services which are running in Android.
It is very simple and useful.

public class Main extends Activity {
private static String APP_TAG = “tag”;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningServiceInfo> runningServices = activityManager.getRunningServices(50);

for (int i = 0; i < runningServices.size(); . . . → Read More: Showing running services in Android

  • Share/Bookmark

Working with SDCard’s filesystem in Android

It is very easy to work with SDCard in Android. Here we are working with File objects as with standard Java I/O operations.
In this article I am going to show how to read, write, create files and how to create a folder in SDCard. Continue reading Working with SDCard’s filesystem in Android

  • Share/Bookmark

Viewing android.R.drawable images

How often do you want to see what kind of images are in android.R.drawable package?
Personally, I very often look at them. And the big problem is to see them at first time, because you don’t know where they are.
This post should resolve this problem. Continue reading Viewing android.R.drawable images

  • Share/Bookmark

Using SDCard image for Android emulator in Ubuntu Linux

It is my first working day in this year and I started it with installing Ubuntu Linux 9.10 on my PC.

Why I need this system?
I want to try use it in my development environment. I used Windows XP, not Vista :) .
First of all I found that emulator instance works slowly than in my Windows machine, but for me it is not very big problem… I think so.
In Linux I found one very good solution for working with SDCard image. In Linux I can use file manager when need to access SDCard and it is very useful. Continue reading Using SDCard image for Android emulator in Ubuntu Linux

  • Share/Bookmark

Checking Android SDK version

I want to show how you can get Android SDK version from code.
It is very simple:

String version = Build.VERSION.RELEASE;

This one returns SDK version (2.0.1, 2.0, 1.6).

int apiLevel = Build.VERSION.SDK_INT;

This one returns API Level (6, 5, 4).

 

If you’d like to get the latest posts as soon as they’re published, subscribe to . . . → Read More: Checking Android SDK version

  • Share/Bookmark

Using Sony-Ericsson XPERIA X10 add-on for the Android SDK

Sony-Ericsson published XPERIA X10 addon for Android SDK and I tried to use it in my work.
All details you can find here. Continue reading Using Sony-Ericsson XPERIA X10 add-on for the Android SDK

  • Share/Bookmark

Checking if camera presents in Android device

Today I tried some ideas with camera in Android and found that there is an easy way to check if camera presents in Android device. Continue reading Checking if camera presents in Android device

  • Share/Bookmark

Image rotating in Android

There is an easy way for image rotating in Android from code. Continue reading Image rotating in Android

  • Share/Bookmark