I really, really, need help with the android emulator sensors, HELP PLEASE!

by Fred Grott(shareme) » Tue, 13 Jan 2009 08:07:59 GMT

Sponsored Links

user permissions..just go through that drop down list until you find


I really, really, need help with the android emulator sensors, HELP PLEASE!

by flashpro » Tue, 13 Jan 2009 10:19:18 GMT

 Thanks i've looked into that. However, i'm actually creating an app
like that one, so i want to know
how to enable the receiving of events in android.

Sponsored Links

I really, really, need help with the android emulator sensors, HELP PLEASE!

by flashpro » Tue, 13 Jan 2009 10:20:15 GMT

 That makes sense. However, my emulator gives me a permission denied
error when i ad HARDWARE_TEST permission. Any suggestions?
Thanks again for your help!

I really, really, need help with the android emulator sensors, HELP PLEASE!

by flashpro » Tue, 13 Jan 2009 11:30:58 GMT

 K, here is my manifest file. Below that is the Logcat data:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.bouncingball" android:versionCode="11"
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="@string/app_name"
<activity android:name=".BouncingBall" android:label="@string/
<action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
<activity android:name=".FileExplorer" android:label="Choose
<action android:name="android.intent.action.PICK" />
android:name="android.intent.category.LAUNCHER" />

01-12 19:29:13.245: DEBUG/AndroidRuntime(297): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
01-12 19:29:13.245: DEBUG/AndroidRuntime(297): CheckJNI is ON
01-12 19:29:13.405: DEBUG/AndroidRuntime(297): --- registering native
functions ---
01-12 19:29:13.405: INFO/jdwp(297): received file descriptor 19 from
01-12 19:29:14.175: DEBUG/PackageParser(55): Scanning package: /data/
01-12 19:29:14.305: WARN/PackageManager(55): Attempt to re-install
com.android.bouncingball without first uninstalling.
01-12 19:29:14.305: INFO/installd(28): unlink /data/dalvik-cache/
01-12 19:29:14.335: DEBUG/AndroidRuntime(297): Shutting down VM
01-12 19:29:14.335: DEBUG/dalvikvm(297): DestroyJavaVM waiting for non-
daemon threads to exit
01-12 19:29:14.345: INFO/dalvikvm(297): DestroyJavaVM shutting VM down
01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread shutting
01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread has shut
01-12 19:29:14.355: DEBUG/jdwp(297): JDWP shutting down net...
01-12 19:29:14.375: DEBUG/jdwp(297): +++ peer disconnected
01-12 19:29:14.375: INFO/dalvikvm(297): Debugger has detached; object
registry had 1 entries
01-12 19:29:14.395: DEBUG/dalvikvm(297): VM cleaning up
01-12 19:29:14.415: DEBUG/dalvikvm(297): LinearAlloc 0x0 used 529468
of 4194304 (12%)
01-12 19:29:14.645: DEBUG/dalvikvm(55): GC freed 4683 objects / 308520
bytes in 319ms
01-12 19:29:14.765: DEBUG/AndroidRuntime(305): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
01-12 19:29:14.775: DEBUG/AndroidRuntime(305): CheckJNI is ON
01-12 19:29:15.129: DEBUG/AndroidRuntime(305): --- registering native
functions ---

I really, really, need help with the android emulator sensors, HELP PLEASE!

by Fred Grott(shareme) » Tue, 13 Jan 2009 11:47:27 GMT

 ardwareTest permission not set right..

should be uses-permission

On Jan 12, 9:30pm, flashpro <flashpro.sam...@gmail.com> wrote:

I really, really, need help with the android emulator sensors, HELP PLEASE!

by Justin (Google Employee) » Fri, 16 Jan 2009 06:48:33 GMT

  think is all a bit moot because you won't get any interesting input
from the emulator sensor service. What would it take the sensor input
from? I could be wrong though, I've never tried to use it in the

Android Team @ Google

On Jan 12, 7:47 pm, "Fred Grott(shareme)" <fred.gr...@gmail.com>

Other Threads

1. Programmatically Adding a LinearLayout Error

I am trying to add a LinearLayout using only code to a Activity and I
keep getting as error.  Here is a proof of concept piece of code:

ackage org.syperiorsoft;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;

public class ViewTest extends Activity {

    public void onCreate(Bundle savedInstanceState)

        LinearLayout llRoot = (LinearLayout)findViewById(R.id.someid);
        if ( llRoot != null )
                LinearLayout llDetails = new LinearLayout(this);
                llDetails.setLayoutParams(new LayoutParams
(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

                ImageView imEdit = new ImageView(this);
                imEdit.setLayoutParams(new LayoutParams(32, 32));

                LinearLayout llVert = new LinearLayout(this);



Here is the stack:

Thread [<3> main] (Suspended (exception RuntimeException))
        LinearLayout.getBaseline() line: 151
        LinearLayout.measureHorizontal(int, int) line: 644
        LinearLayout.onMeasure(int, int) line: 280
        LinearLayout(View).measure(int, int) line: 7115
        LinearLayout(ViewGroup).measureChildWithMargins(View, int, int, int,
int) line: 2875
        LinearLayout.measureChildBeforeLayout(View, int, int, int, int, int)
line: 888
        LinearLayout.measureVertical(int, int) line: 350
        LinearLayout.onMeasure(int, int) line: 278
        LinearLayout(View).measure(int, int) line: 7115
        FrameLayout(ViewGroup).measureChildWithMargins(View, int, int, int,
int) line: 2875
        FrameLayout.onMeasure(int, int) line: 245
        FrameLayout(View).measure(int, int) line: 7115
        LinearLayout.measureVertical(int, int) line: 464
        LinearLayout.onMeasure(int, int) line: 278
        LinearLayout(View).measure(int, int) line: 7115
        PhoneWindow$DecorView(ViewGroup).measureChildWithMargins(View, int,
int, int, int) line: 2875
        PhoneWindow$DecorView(FrameLayout).onMeasure(int, int) line: 245
        PhoneWindow$DecorView(View).measure(int, int) line: 7115
        ViewRoot.performTraversals() line: 698
        ViewRoot.handleMessage(Message) line: 1482
        ViewRoot(Handler).dispatchMessage(Message) line: 99
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 3948
        Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 521
        ZygoteInit$MethodAndArgsCaller.run() line: 782
        ZygoteInit.main(String[]) line: 540
        NativeStart.main(String[]) line: not available [native method]

I hope someone can help me out, I know I am missing something here.
Thanks to all in advance!


2. Changing standin animation in camera preview


I am working on camera preview. I want to change the standin animation
and want to put my own animation, any idea, how this can be done ??



3. savedInstanceState Textview text problem.

4. Custom GridView

5. How can i catch the notification from in built mail in mobile?

6. About Android Email architecture ??

7. How to make my device sleep