Sound Recorder in Android Development

This example shows how to record sound and save it to SD card it.
Algorithm:


1.) Create a new project by 

File-> 
New -> 
Android Project name it SoundRecorder.


2.) Write following into main.xml:

<?xml version=“1.0” encoding=“utf-8”?>
<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
    android:layout_width=“fill_parent”
    android:layout_height=“fill_parent”
    android:orientation=“horizontal” >     <Button
        android:id=“@+id/start”
        android:layout_width=“wrap_content”
        android:layout_height=“wrap_content”
        android:text=“Start Recording”
        android:onClick=“startRecording” />
    <Button
        android:id=“@+id/stop”
        android:layout_width=“wrap_content”
        android:layout_height=“wrap_content”
        android:text=“Stop Recording”
        android:enabled=“false”
         android:onClick=“stopRecording”
        />
</LinearLayout>




3.) Write following into manifest file:

<manifest xmlns:android=“http://schemas.android.com/apk/res/android”
    package=“com.example.soundrecorder”
    android:versionCode=“1”
    android:versionName=“1.0” >     <usessdk
        android:minSdkVersion=“8”
        android:targetSdkVersion=“15” />
    <usespermission android:name=“android.permission.WRITE_EXTERNAL_STORAGE”/>
    <usespermission android:name=“android.permission.RECORD_AUDIO” />
 
    <application
        android:icon=“@drawable/ic_launcher”
        android:label=“@string/app_name”
        android:theme=“@style/AppTheme” >
        <activity
            android:name=“.SoundRecorder”
            android:label=“@string/title_activity_sound_recorder” >
            <intentfilter>
                <action android:name=“android.intent.action.MAIN” />
                <category android:name=“android.intent.category.LAUNCHER” />
            </intentfilter>
        </activity>
    </application>
</manifest>

4.) Run for output.
Steps:


1.) Create a project named SoundRecorder and set the information as stated in the image.
Build Target: Android 4.0
Application Name: SoundRecorder
Package Name: com. example. SoundRecorder
Activity Name: SoundRecorder
Min SDK Version: 8


2.) Open SoundRecorder.java file and write following code there:

package com.example.soundrecorder; import java.io.File;
import java.io.IOException;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Intent;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
public class SoundRecorder extends Activity {
        MediaRecorder recorder;
        File audiofile = null;
        private static final String TAG =“SoundRecordingActivity”;
        private View startButton;
        private View stopButton;
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
                startButton = findViewById(R.id.start);
                stopButton = findViewById(R.id.stop);
        }
        public void startRecording(View view) throwsIOException {
                startButton.setEnabled(false);
                stopButton.setEnabled(true);
                File sampleDir =Environment.getExternalStorageDirectory();
                try {
                        audiofile =File.createTempFile(“sound”“.3gp”, sampleDir);
                } catch (IOException e) {
                        Log.e(TAG, “sdcard access error”);
                        return;
                }
                recorder = new MediaRecorder();
                recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
                recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
                recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
                recorder.setOutputFile(audiofile.getAbsolutePath());
                recorder.prepare();
                recorder.start();
        }
        public void stopRecording(View view) {
                startButton.setEnabled(true);
                stopButton.setEnabled(false);
                recorder.stop();
                recorder.release();
                addRecordingToMediaLibrary();
        }
        protected void addRecordingToMediaLibrary() {
                ContentValues values = new ContentValues(4);
                long current = System.currentTimeMillis();
                values.put(MediaStore.Audio.Media.TITLE,“audio” + audiofile.getName());
                values.put(MediaStore.Audio.Media.DATE_ADDED(int) (current/ 1000));
                values.put(MediaStore.Audio.Media.MIME_TYPE,“audio/3gpp”);
                values.put(MediaStore.Audio.Media.DATA, audiofile.getAbsolutePath());
                ContentResolver contentResolver =getContentResolver();
                Uri base =MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
                Uri newUri = contentResolver.insert(base, values);
                sendBroadcast(newIntent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, newUri));
                Toast.makeText(this“Added File “ + newUri, Toast.LENGTH_LONG).show();
        }
}

3.) Compile and build the project.
Output



Enjoy Guys! and don’t forget to post your comments. � MyTricksTime.com

HOW TO INSTAL ECLIPSSE IN EASY MANER FOR ANDROID

download eclipse from internet and it will be contain one floder . in that eclipse icon is there click that eclicplse will be run.
note:you need to be instal java


it will ask folder to set output u need set location
after that eclipse will be run



>windows

>propeties
>android
>browse sdk files .
or 
>download fro net .


now go to 
>AVDMANGER
>CREATE NEW AVD
>give name and size 6
>emultor will run.

Read also : NAVDROYD 1.4.0 Offline GPS Navigation Software for Android

Enjoy Guys! and don’t forget to post your comments. � MyTricksTime.com

HOW TO RESET OR FORMAT NOKIA 5233


Hii Friends I Tell U How To Reset Or Hard Reset NOKIA 5233.
To Format NOKIA 5233 Just Follow The Step.
(If U Have any Query About this post u can comment your query)



NOTE

1. HARD RESET WILL ERASE ALL YOUR PHONE’S DATA..
2. BACK UP YOUR CONTENTS BEFORE HARD RESET.


NOW GET STARTED


1. SWITCH OFF YOUR PHONE.
2. PRESS AND HOLD THE BUTTONS GREEN (CALL BUTTON)+RED (REJECT BUTTON)+CAMERA AT THE SAME TIME IN SWITCH OFF MODE..
3. WHILE YOU ARE HOLDING THE ABOVE MENTIONED THREE BUTTONS SWITCH ON YOUR PHONE…
4. THE PHONE WILL START….HOLD THOSE BUTTONS UNTIL YOU SEE THE SHAKE HANDS SCREEN ON YOU NOKIA 5233….
5. NOW LEAVE THE BUTTONS…
6. CONGRATULATIONS..YOUR NOKIA 5233 HAS COMPLETED THE HARD RESET.
7. NOW YOU WILL SEE THE SEVERAL OPTIONS TO SET UP YOUR PHONE.
8. SET UP THE PHONE ACCORDING TO YOUR CHOICE..

Enjoy Guys! and don’t forget to post your comments. � MyTricksTime.com

How to Recover Deleted Potos

None of us want to bear the pain of losing photos of alluring moments of our life but almost all of us must have heard or suffered digital photo loss at least once. There can be various reasons responsible for photo loss, which may range from accidental deletion, to memory card corruption or formatting of the memory card. However, despite the reason for photo loss, very few of us may aware of the fact that recovery of lost or deleted photos is possible through third-party photo recovery software. Yes, photo recovery tools can recover even those photos which are deleted completely from your storage media or which are lost due to any other reason like formatting of memory card.
Let us see how third-party photo or memory card recovery software can recover photos which are deleted permanently from the memory card of your camera. Indifferent from any other storage media like hard drive of your computer, a memory card too

maintains a pointer of all the photos saved on it. Whenever, a photo is deleted from the memory card, only the pointer associated to that photo gets deleted initially. Since pointer is used by the operating system (OS) to access the photo, thus its deletion makes the associated photo inaccessible by the OS. Due to the inaccessibility we become unable to see the deleted photo as well as the OS marks the space occupied by this deleted photos as free to use.

Now, the role of photo/memory card recovery comes. The photo recovery software scans entire memory card, searches for all available free to use spaces, and extracts photos from there. However, if you have used this memory card before recovery, for saving new photos or for transferring stored photos from one location to another then there are possibilities of occupancy of free space by new ones. At such situation the previously saved photos or photos with no pointers, or deleted photos are overwritten. Once, a photo is overwritten then it goes beyond the recovery, even by the most efficient photo recovery software.
This is the reason why some of the users of photo recovery software claim that photo recovery tool is unable to give 100% result. Follow the precaution that is to stop using your affected memory card and use an efficient photo recovery tool to recover your photos completely. Since, there is a long list of third-party photo recovery software available online and some of which may be freeware thus it is quite difficult for a layman to select the most efficient and reliable tool. Well, it is always advisable to not to opt for a freeware as most of them are malicious software which harm your computer instead of recovering your photos.
Efficient software generally offers free demo and paid full version. So, to evaluate the software, you can initially download its free demo version. In the demo if you find that the software has easily understandable user interface, simple steps to recover photos, supports various image file formats, compatible with the memory card used in your digital camera, and some other advance features to recover photos then go for that tool.
There are a list of free & paid photo recovery software are available to bring back lost or deleted photos from hard drive and storage media devices. These software�s are compatible with almost all memory card types and all major digital cameras. You can also find the �Create Image� feature, freely provided with software to create image of your entire storage device or selected region of the device. Through preview of recoverable photos option of the software enables you to see the preview of the recoverable photos. Moreover, the software not only recovers photos but it can also recover videos, audios, and other multimedia files. The software is separately available for Windows and Mac users, so you can select the one according to the operating system used in your computer.
Enjoy Guys! and don’t forget to post your comments. � MyTricksTime.com

Unlock Memory Card Password Trick

If you protect your memory card with password and forgot that after few day then step easy method How to unlock Memory card without software.

  1. Hacking or finding memory card password.
  2. Formatting corrupted memory card(but no guaranteed).

There are many methods to find memory card password.

  • Install and launch MMCPWD application. it will display some special characters including your password.(MMCPwd.sis)
  • Locate mmcstore file. install and launch System Explorer or FExplorer application. go to c:system and open (using unicode/hex editor) the mmcstore file. it will display your password.
  • NOTE: you can also copy the mmcstore file to any folder of your phone memory, rename it to mmcstore.txt and open it without using any unicode/hex editor). 

Instructions: 

  • open up fe explorer thingy.
  • Go to C:system folder and locate a file called mmcStore. Scroll down till you find it.
  • Copy it to C:nokiaothers
  • Highlight it
  • click options
  • FILE>RENAME
  • IT should turn blue: right click then write �.txt� (should look like �MMCSTORE.txt�
  • try to open it, (that should be your password, if nothing happens then go to 9.)
  • connect phone to pc
  • Open the file from C:NOKIAOTHERSMMCSTORE
  • copy the file to your desktop
  • open with Windows notepadmicrosoft word
  • that should be your password

Hope these work for you if still need software than you reply me i will provide as soon as possible.Enjoy Guys! and don’t forget to post your comments. � MyTricksTime.com