I had associated the wrong application on the device with the debugger.Previously I had com.mcruiseon.WelcomeScreen. I modified the code to com.org.mcruiseon.client.WelcomeScreen. But the debugger on the emulator was still debugging com.mcruiseon. Fixed that. But now I get the below. [2009-07-03 19:33:59 - mCruiseOnClient] Android Launch! [2009-07-03 19:33:59 - mCruiseOnClient] adb is running normally. [2009-07-03 19:33:59 - mCruiseOnClient] Performing com.org.mcruiseon.client.WelcomeScreen activity launch [2009-07-03 19:33:59 - mCruiseOnClient] Automatic Target Mode: Preferred AVD 'MyAVD' is not available. Launching new emulator. [2009-07-03 19:33:59 - mCruiseOnClient] Launching a new emulator with Virtual Device 'MyAVD' [2009-07-03 19:34:19 - mCruiseOnClient] New emulator found: emulator-5554 [2009-07-03 19:34:19 - mCruiseOnClient] Waiting for HOME ('android.process.acore') to be launched... [2009-07-03 19:35:55 - mCruiseOnClient] emulator-5554 disconnected! Cancelling 'com.org.mcruiseon.client.WelcomeScreen activity launch'! Please help On Fri, Jul 3, 2009 at 4:53 PM, MCON Dev <mcon...@gmail.com> wrote:
> <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="com.org.mcruiseon.client" > android:versionCode="1" > android:versionName="1.0"> > <application android:icon="@drawable/icon" > android:label="@string/app_name"> > <activity android:name=".WelcomeScreen" > android:label="@string/app_name"> > <uses-permission android:name="android.permission.INTERNET" /> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > </application> > <uses-sdk android:minSdkVersion="3" /> > <uses-permission > android:name="android.permission.INTERNET"></uses-permission> > <uses-permission > android:name="android.permission.READ_PHONE_STATE"></uses-permission> > </manifest> > I am reading the phone number and other phone properties to send over a > socket using (sample code below) > try{ > outputStream = clientSocket.getOutputStream() ; > objectOutputStream = new ObjectOutputStream(outputStream); > } catch (IOException e){ > e.printStackTrace(); > } > Server Code as > this.inClientSocket = inClientSocket ; > try { > inputObject = new > ObjectInputStream(this.inClientSocket.getInputStream()); > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > return ; > } > Questions > - I am running the client in debug mode. Why isn't the debugger showing me > where the problem is ? > - I put a breakpoint on the first time of the client code, still the client > hangs without the debugger reaching the breakpoint > Can someone advice me on what I am doing wrong. > Dude 4m MConDev > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---