How to start debugger on ADP1 device rather than AVD

by WoodManEXP » Fri, 18 Sep 2009 11:05:59 GMT


Sponsored Links
 Does anyone know how to get the debugger to launch on an ADP1?. It was
recently flashed to 1.5. Dev platform is Eclipse on Windows XP with
the SDK 1.5 USB driver installed (HTC Dream Composite Interface).
Windows can see the device and adb can see the device with db
devicescommand. USB Debugging has been enabled on the device and the
application manifest has android:debuggable="true" set in it. The
LogCat windows is showing log output from the ADP1 too.

But when Selecting Run->Debug or Run->Run the avd is always launched.
The instructions say that it should launch to the device or give a
choice if the avd is running too.

Do anyone know what needs to be done to get the debugger to launch
against the real device instead of the avd?


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



How to start debugger on ADP1 device rather than AVD

by WoodManEXP » Fri, 18 Sep 2009 19:10:02 GMT


 The minSDKVersion of the app is 3 (1.5) and the ADP1 and the AVD are
each at the same level. It's all at 3 (1.5).

Changing to the manual confuguration seems to have been the answer.

Thank you!




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


Sponsored Links


Other Threads

1. Attention: Web application developers! Exciting event on Feb 26th in Pune (WebApps 2011)

Hello,

SiliconIndia is organizing WebApps 2011 at Pune on Feb 26th,
2011.Drawing well-renowned thought-leaders, contributors,
influencer's, and organizations in the Web Development space, the
conference offers insight to develop industry-leading Web Development
projects. The conference brings together web developers, web designers
technology enthusiasts, innovators, vendors, and users to experience
the future of Web Applications.

Web-based applications are revolutionizing both the features that can
be delivered and the technologies for developing and deploying
applications. They also involve a diverse collection of issues and
technologies.We have lined up some of the best speakers and the
sessions & networking will be of the highest order.Get hands-on
technical training and gain new skills. WebApps 2011 guarantees
perfect networking and exciting learning success in workshops,
sessions, discussion panels & fascinating keynotes.

TOPICS:
5 New Skills that Every Web Designer Needs to Know
Progressive CSS3 Design
How to Build a HTML5 Website - Live Demo
Accessibility in Web Design
Icon Design

Who should attend: Web Application Developers, Application Managers,
Web Architects, Web and Graphic Designers, Web Development Managers,
Web Strategists, Web Technologists, Business Strategists, E-commerce
Managers, Product Managers, Technologists and Entrepreneurs and Others

DATE: Feb 26, 2011 (Saturday)
TIME: 8.00 AM to 5.30 PM
VENUE: Pune

We have limited Seats. Registration for this game-changing Symposium
is by invitation only. Attendance is limited to maintain an intimate
setting and foster dialogue among all participants.

To request an invitation, please visit:
http://www.siliconindia.com/events/siliconindia_events/index.php?eid=WebAppPune2011
and complete the  form .

And also you can NOMINATE your colleagues and friends who ever is
interested in attending this event.

We will review your submission and let you know. Once we qualify you,
there will be a registration fee of Rs 500 only. This is towards:
Access to Sessions, Tea/ Coffee & Refreshments and Lunch.

Here's your chance to meet tech leaders and get expert instruction and
hands-on tutorials to create the best web applications, tools, and
software.

Thanks ,


-- 

2. Problem in Handler

Hi all,
I have created to thread in an application, and from these threads i
am sending a value.
But the App has started but after 5-6 seconds it crashes and with the
following log error.


02-03 09:40:19.598: ERROR/AndroidRuntime(1684): FATAL EXCEPTION: main
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):
android.util.AndroidRuntimeException: { what=1000 when=2469427 obj=4 }
This message is already in use.
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.MessageQueue.enqueueMessage(MessageQueue.java:171)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.Handler.sendMessageAtTime(Handler.java:457)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.Handler.sendMessageDelayed(Handler.java:430)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.Handler.sendEmptyMessageDelayed(Handler.java:394)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.Handler.sendEmptyMessage(Handler.java:379)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.ViewRoot.scheduleTraversals(ViewRoot.java:652)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.ViewRoot.requestLayout(ViewRoot.java:596)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.View.requestLayout(View.java:8125)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.View.requestLayout(View.java:8125)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.View.requestLayout(View.java:8125)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.View.requestLayout(View.java:8125)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.view.View.requestLayout(View.java:8125)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.widget.TextView.checkForRelayout(TextView.java:5378)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.widget.TextView.setText(TextView.java:2688)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.widget.TextView.setText(TextView.java:2556)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.widget.TextView.setText(TextView.java:2531)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
com.demo.app.handlerapp$3.handleMessage(handlerapp.java:95)
02-03 09:40:19.598: ERROR/AndroidRuntime(1684):     at
android.os.Handler.dispatchMessage(Handler.java:99)

Please refer to the following code which i have written.

package com.demo.app;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class handlerapp 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)findViewById(R.id.Button01);
        tw=(TextView)findViewById(R.id.TextView01);
        tw.setText("click button to start");
        button.setOnClickListener(this);
   }
        @Override
        public void onClick(View v) {
                // TODO Auto-generated method stub
        switch(v.getId()){
        case R.id.Button01:
                Toast.makeText(getApplicationContext(), "clicked", 2).show();
                if(!th.isAlive())
            th.start();
                if(!th1.isAlive())
                        th1.start();
                break;
        }

        }
        Thread th= new Thread(new Runnable(){

                @Override
                public void run() {
                        // TODO Auto-generated method stub
                        Message msg= handler.obtainMessage();
                        for(int i=2;i<1000;i++)
                        {
                                try {
                                        Thread.sleep(5000);
                                } catch (InterruptedException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                }
                        msg.obj= i;
                        msg.what=2;
                        handler.sendMessage(msg);
                        }

                }

        });
        Thread th1= new Thread(new Runnable(){
                @Override
                public void run() {
                        // TODO Auto-generated method stub
                        Message msg= handler.obtainMessage();
                        for(int i=2;i<1000;i++)
                        {
                                try {
                                        Thread.sleep(3000);
                                } catch (InterruptedException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                }
                        msg.obj= i;
                        msg.what=1;
                        handler.sendMessage(msg);
                        }

                }

        });

        Handler handler = new Handler(){
                @Override
                public void handleMessage(Message msg) {
                        // TODO Auto-generated method stub
                        super.handleMessage(msg);
                        switch(msg.what){
                        case 1:
                                Toast.makeText(getApplicationContext(), 
msg.obj.toString(),
1).show();
                                break;
                        case 2:

                                tw.setText(msg.obj.toString());
                                removeMessages(msg.what, msg.obj);
                        break;
                        }
                }

    };


        Button button;
        TextView tw;
}



Thanks in Advance
Regards
Yogi

-- 

3. Unable to recover key : Message when exporting android project using Eclipse for release

4. Media Controller in VideoView should never disappear

5. Receiving Exception 'java.lang.RuntimeException: setParameters failed' while using NyARToolkit in Android 2.1

6. Media metadata update

7. Android to bluecove