Programación y Desarrollo para Android Subforo exclusivo para temas de programación de software para PDAs y desarrollo de aplicaciones, interfaces, etc bajo Android


 
Herramientas
  #1  
Viejo 21/01/12, 21:38:04
Avatar de JACINT1
JACINT1 JACINT1 no está en línea
Usuario muy activo
Mensajes: 514
 
Fecha de registro: sep 2010
Mensajes: 514
Mencionado: 3 comentarios
Tagged: 0 hilos
Librerias de Java a Android

Hola,
estoy haciendo un proyecto con Android en el que tengo que utilizar las librerias es.mityc.facturae.utils para validar una factura XML.

En Java todo funciona bien, pero en Android no sé como hacerlo funcionar.

El codigo en Java és:

import java.io.*;

//import org.w3c.dom.Document;

import es.mityc.facturae.utils.*;

public class Validacion{

public static void main(String[] args) throws Exception {

java.io.File factura32 = new java.io.File( "facturaprova.xml" );


ValidatorUtil ve = ValidatorUtil.getInstance();
boolean x=ve.validate(factura32, "3.2");
System.out.print(x);
}

}

Como digo, en java funciona y retorna true si es valida la factura pero en Android, no peta la aplicacion pero sale esto en el logCAT del Eclipse:


D/gralloc_goldfish(827): Emulator without GPU emulation detected.

I/ValidatorUtil(827): Initializing the Validators

I/ValidatorUtil(827): Loading the configuration properties

I/ValidatorUtil(827): Loading the internal schemas properties

I/ValidatorUtil(827): Loading the external schemas (extensions) properties

I/ValidatorUtil(827): There is not a custom extensions file created by user, so the default resource included in the API jar is loaded (no extensions are used in 3.1 and over version)


D/dalvikvm(827): GC_CONCURRENT freed 306K, 6% free 7025K/7431K, paused 5ms+6ms

E/ValidatorUtil(827): http://www.w3.org/2001/XMLSchema


Tampoco sé muy bien qu significa pero parece que las rojas son los errores, pero no los comprendo.

Alguien me puede ayudar?
Responder Con Cita


Respuesta

Estás aquí
Regresar   HTCMania > Todo sobre Android > Programación y Desarrollo para Android


Reglas de Mensajes
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Las caritas están On
Código [IMG] está On
Código HTML está Off

Saltar a Foro



Hora actual: 09:21:29 (GMT +1)

Cookies settings
Powered by vBulletin™
Copyright © vBulletin Solutions, Inc. All rights reserved.
 
HTCMania: líderes desde el 2007