I finally find the validate details in
  \mydroid\frameworks\base\libs\utils\ResourceTypes.cpp.  The
function  ResTable::stringToValue(...) does the job.  It doesn't seem
to be the part of ADT.

Susan wrote:
> Anybody can help me?
>
> Susan wrote:
> > Thanks for your help!
> > But I really can't find where ADT does it.
> > In build method of
> > com.android.ide.eclipse.adt.build.PreCompilerBuilder.java:
> >                  // launch the command line process
> >                  Process process = Runtime.getRuntime().exec(
> >                                 array.toArray(new String[array.size
> > ()]));
> >
> >                   // list to store each line of stderr
> >                   ArrayList<String> results = new ArrayList<String>();
> >
> >                  // get the output and return code from the process
> >                   execError = grabProcessOutput(process, results);
> >
> > It seems that after invoke aapt in first line and then we get the
> > error message from aapt process.
> > Could you please give me a hint?
> >
> > Thanks again.
> >
> > Balwinder Kaur (T-Mobile USA) wrote:
> > > ADT.
> > >
> > > Balwinder Kaur
> > > Open Source Development Center
> > > ·T· · ·Mobile· stick together
> > >
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
> > >
> > >
> > > On Aug 27, 2:18 am, Susan <smxb...@gmail.com> wrote:
> > > > Who is responsible for validation of xml file when editing xml in
> > > > Android layout editor?  For example, when I set a negtive valut to
> > > > android:maxLength of TextView, it will be marked in red. ADT or aapt
> > > > is responsible for check?
> > > >
> > > > Your help will be appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to