In Eclipse, when I attached the project to the process, it said the project contain errors, couldn't be lauched! I think this error make sense, because you couldn't attached an error project to debugger. Could anyone give us a clear description on it?
On Tue, Aug 25, 2009 at 9:41 AM, Dianne Hackborn <hack...@android.com>wrote: > Yes, as I've already posted, go to DDMS, select the app's process, and > attach the eclipse debugger to port 8700. > > > On Mon, Aug 24, 2009 at 6:31 PM, Kerr Yuandan <yuanda...@gmail.com> wrote: > >> You konw that for 3rd party app development, we must develop app in the >> SDK and with eclipse, if "*Almost all of the apps are build with the >> platform build system*", so is it possible to debug it as usural apps in >> eclipse, could we debug it from step by step run and view the variable >> values, etc. >> >> >> On Tue, Aug 25, 2009 at 3:28 AM, Dianne Hackborn <hack...@android.com>wrote: >> >>> Sorry I don't really understand what you are asking. Almost all of the >>> apps are built with the platform build system, not form the SDK. And there >>> is no such thing as "internal resources" for an application, because by >>> definition all resources in an app are private since nobody else will link >>> to that app. (Well the IM app is a little weird there because they have >>> this concept of plugins that doesn't really make sense within the android >>> framework, and will be removed in the future. I'm honestly not sure how all >>> they set up the build of that code, but it's probably not something anyone >>> wants to copy.) >>> >>> >>> On Mon, Aug 24, 2009 at 1:09 AM, Kerr Yuandan <yuanda...@gmail.com>wrote: >>> >>>> When build system application such as IM in eclipse, as you mentioned, I >>>> modified the code to use some necessary private internal class(.java) >>>> files, >>>> but at last, the added files turn to need some com.android.internal.R.xxx >>>> reference, everybody knows that R is generated by aapt tool, in a single >>>> android project, Does aapt could generate multiple R files in order to add >>>> internal resource files into IM project? I know no, so I guest, there are >>>> something we don't know, How androider(in android team) develop those >>>> system >>>> application such as calendar, IM, if they did it in eclipse, so how to >>>> solve >>>> multi resource files problem including IM related resource and internal >>>> resouce files? >>>> >>>> >>>> >>>> >>>> On Sun, Aug 23, 2009 at 1:28 PM, Dianne Hackborn >>>> <hack...@android.com>wrote: >>>> >>>>> You can certainly debug it with eclipse. Just load the code into a >>>>> project, select the app's process in ddms, and attach the eclipse remote >>>>> debugger to port 8700. >>>>> >>>>> >>>>> On Fri, Aug 21, 2009 at 9:06 PM, Kerr Yuandan <yuanda...@gmail.com>wrote: >>>>> >>>>>> But, if we build the apps within the platform build system, we can >>>>>> only use "make xxx" command, that means we coundn't debug that >>>>>> application >>>>>> in Eclipse, this will be a very tough task for debugging. >>>>>> So, is there some official or good method to debug that? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Sat, Aug 22, 2009 at 1:01 AM, Dianne Hackborn <hack...@android.com >>>>>> > wrote: >>>>>> >>>>>>> You need to either continue to build the apps within the platform >>>>>>> build system against the private APIs, or modify the apps to not use >>>>>>> private >>>>>>> APIs. There is no way to build an SDK that contains private APIs. >>>>>>> >>>>>>> >>>>>>> On Fri, Aug 21, 2009 at 2:52 AM, Kerr <yuanda...@gmail.com> wrote: >>>>>>> >>>>>>>> >>>>>>>> Hi, All, >>>>>>>> When you want to modify the android system applications such as >>>>>>>> Calendar, Email, Launcher, you can download it, and add that project >>>>>>>> into Eclipse, but there are alway more or less errors which said >>>>>>>> some >>>>>>>> class couldn't be referenced, for example, in the official SDK, >>>>>>>> (android.jar), there are no >>>>>>>> android.net.http.androidHttpClient, >>>>>>>> android.provider.im, >>>>>>>> ..... >>>>>>>> >>>>>>>> >>>>>>>> So, we need a full class contained SDK, generally you can build your >>>>>>>> ower by: >>>>>>>> $make sdk >>>>>>>> But unfortunately, the builded SDK also don't contain the missed >>>>>>>> class file. Does any one konw how to add the missed class files in >>>>>>>> to >>>>>>>> SDK packet? I think this is one very basic development environment, >>>>>>>> it >>>>>>>> will benefit much developer loving android! >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> Kerr >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Dianne Hackborn >>>>>>> Android framework engineer >>>>>>> hack...@android.com >>>>>>> >>>>>>> Note: please don't send private questions to me, as I don't have time >>>>>>> to provide private support, and so won't reply to such e-mails. All >>>>>>> such >>>>>>> questions should be posted on public forums, where I and others can see >>>>>>> and >>>>>>> answer them. >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> >>>>> -- >>>>> Dianne Hackborn >>>>> Android framework engineer >>>>> hack...@android.com >>>>> >>>>> Note: please don't send private questions to me, as I don't have time >>>>> to provide private support, and so won't reply to such e-mails. All such >>>>> questions should be posted on public forums, where I and others can see >>>>> and >>>>> answer them. >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Dianne Hackborn >>> Android framework engineer >>> hack...@android.com >>> >>> Note: please don't send private questions to me, as I don't have time to >>> provide private support, and so won't reply to such e-mails. All such >>> questions should be posted on public forums, where I and others can see and >>> answer them. >>> >>> >>> >>> >> >> >> > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---