Camera Emulation on Android

by Thisara Rupasinghe » Thu, 22 Apr 2010 18:17:22 GMT


Sponsored Links
 Hi,

I'm studying emulators code to implement camera on android emulator. As i
get to know, i think i need to implement new HAL implementation for camera
which directs to the actual webcam device. therefore I would like to know
more details and possibility of doing that. in the emulator below the HAL
layer are there the normal driver manager, power manager etc models exists
as physical mobile phone?
I'm going to use GStreamer for that. how should this exactly need to happen?
Any ideas abt that?

-- 
Thanks & Regards,
Thisara.

-- 



Other Threads

1. Cupcake Keyboard Crash in Landscape mode

If I enable the "Orientation" preference in the "Sound & Display"
settings and I use the device in landscape mode I get the following
crash in Cupcake when I hit the Enter key:

05-28 19:48:40.250: ERROR/AndroidRuntime(364):
java.lang.IndexOutOfBoundsException: getChars (6 ... 0) has end before
start
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.text.SpannableStringBuilder.checkRange
(SpannableStringBuilder.java:935)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.text.SpannableStringBuilder.getChars
(SpannableStringBuilder.java:847)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.text.TextUtils.getChars(TextUtils.java:69)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.text.SpannableStringBuilder.<init>(SpannableStringBuilder.java:
59)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.text.SpannableStringBuilder.subSequence
(SpannableStringBuilder.java:839)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.widget.TextView.extractTextInternal(TextView.java:4405)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.widget.TextView.reportExtractedText(TextView.java:4443)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.widget.TextView.finishBatchEdit(TextView.java:4585)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.widget.TextView.endBatchEdit(TextView.java:4567)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
com.android.internal.widget.EditableInputConnection.endBatchEdit
(EditableInputConnection.java:54)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
com.android.internal.view.IInputConnectionWrapper.executeMessage
(IInputConnectionWrapper.java:334)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
com.android.internal.view.IInputConnectionWrapper
$MyHandler.handleMessage(IInputConnectionWrapper.java:57)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.os.Handler.dispatchMessage(Handler.java:99)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.os.Looper.loop(Looper.java:123)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
05-28 19:48:40.250: ERROR/AndroidRuntime(364):     at
dalvik.system.NativeStart.main(Native Method)

--~--~---------~--~----~------------~-------~--~----~

2. Button ID

I want to make UI Events but Eclipse underlines something in red:

Button button = (Button)findViewById([b]R.id[/b].corky);

I have a button whit the name "Ok"
what I'm doing wrong?

Full class:

package stijn.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Test extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button button = (Button)findViewById(R.id.corky);
        button.setOnClickListener(this);
    }

    public void onClick(View v) {
        // do something when the button is clicked
      }
}

--~--~---------~--~----~------------~-------~--~----~

3. how to create a new emulator instance

4. how to go to command prompt of emulator(very very urgently needed)

5. Android Camera Garbage Collection.

6. ERROR: Application requires API version 2. Device API version is 1

7. Starting services on Android Boot