Sax Parser for android - Android Software Development

I am attempting to parse an xml document (NZB file) with a sax parser in android. The code I used works perfectly for my java desktop application, but fails when using it under android. It parses out null tokens.
My code can be seen here: pastebin.com/ht1yNebZ
Any insight is appreciated.

Related

html to XML parser

hello guys!
i'm going develop a application, that extract information to the pages HTML, and to do this, i think that its more simple do the parse of the html pages to the xml language an then get th spscific XML tree structure, to extrat more easilly the fields that i want.
Any One konws if exists applications for mobile to do that (the parse and the seek in the tree stucture) in open source.
And for desktop a cool open source html parser?
Thanks for the help.
Psyke

SlimServer Client developement - HELP NEEDED with XML

Hi there...
I have embarked upon the developement of a slimserver client for the pocket pc using c#. There is no decent one around that I know of!
Anyway, it is going to be open sourced, and I have already implemented the use of the CLI interface. however, I am a bit stuck with the XML one. I have attached the relevant sources! The problem is that when it runs through the emulator, it is unable to deserialise a slimserver xml file and returns a NotSupported Exception (I have attached a sample xml file). I generated a c# class library for slimserver's xml schema using xsd.exe.
The funny thing is that when I run the compiled .exe file in windows (without the emulator), it runs smoothly, and deserialises it perfectly! It also works when compiled for a normal desktop application!
Could someone help please?

[UTILITY] Lua 5.1 tools: compiler, decompiler, snippets & extendable lua.dll with SDK

[UTILITY] Lua 5.1 tools: compiler, decompiler, snippets & extendable lua.dll with SDK
Hi!
This package contains lots of useful tools for Manila3D Lua5.1 editing. You can find here a compiler a decompiler, a small script repository at post #3 and ExtLua, which provides developers the possibility to extend M3D's functionality.
Also check m9editor which is a really great application to edit mode9 files by 6Fg8!
And check Manila kitchen project which hosts the decompiled scripts with a LUA IDE and everything ready to go.
You might want to try out mode9 converter too.
ChangeLog
LuaDec 2.0
Finds out where locals are
Read more here
LuaDec 1.9
Some changes regarding LDS(2) strings and for loops (it's still a bit unstable)
LuaDec has a new option to disassemble instead of decompile
The provided lua package (lua, luac and luadec) is now unicode compilant, it will read and write the unicode variants of the scripts instead of the ascii variants.
Read more here
LuaDec 1.0
Added LDS2 support to both luadec and luac
Fixed OP_TFORLOOP handling
Read more here
LuaDec Beta6
Improved luadecguesser with fast mode
Fixed a crashing when encountering boolean values
Increases happy face rate in XDA-developers forum
Read more here
LuaDec Beta5
Improved luadecguesser
Read more here
luaDec Beta4
Upvalue handling
Added a brute-force local variable searcher application
Read more here
luaDec Beta3
Generic for loop handling
Improved local variable handling
Read more here
ExtLua 0.1
Initial release
Read more here
luaDec Beta2
Less crashing
More decompiling
Read more here
LuaDec Beta1
Decompiling simpler scripts and recompiling them will result in a semantically identical compiled lua script!
Numeric for loops are fixed, they should work fine
Complex boolean expressions and conditional statements will make luadec crash
Only works with ascii files. Don't forget to convert the lua files to ascii then back to unicode
Good to know
Luadec will output a "-- Lua5.1" or "-- Warning" comment to lines, where you should check the output.
If luadec crashes try running it with the "-d" parameter to acquire as much information as you can.
Compile your lua files with the "-s" parameter set.
It was compiled with Visual C++ 2008, so you might need the MSVC++ 2008 redistributables too.
Valid Numbers are in range from -32768.0 to 32767.0. Numbers not in this range will be cropped by the compiler.
There is a decompilation tutorial starting here
DL link: http://winmo.sztupy.hu/luadec.html
I start a repository at post #3 for them, but you can just look at the decompiled rhodium2 scripts too.
Does not work for me.
Useful snippets of code
Succesfully decompiled scripts
All rhodium and rhodium2 scripts:
http://winmo.sztupy.hu/manilakitchen.html
Run an application:
Code:
Shell_NavigateTo(command,parameters)
Add an eventhandler to an event: (thx D-MAN666)
Code:
object.EventName:connect(functionRef, scopeRef);
object.EventName:disconnect(functionRef, scopeRef);
Where events can be: onPress, onRelease, onReleaseOutside
Example (from 4aefb03d_manila):
Code:
require("hitfeedback")
OnPhotoTouchPress = function(loc_0)
gnPhotoTouchPressY = loc_0._ymouse
Camera3DHitFeedback:Press()
end
PhotoHitTarget.onPress:connect(OnPhotoTouchPress)
sztupy said:
More detail please... no output? crash ? missing dlls?
Click to expand...
Click to collapse
It simply return "cannot execute this file", tested on XP and Win7 beta
do you have to do something first at manila files?
for me say bad headers!
@udk : i'm running on win 7 beta too and it's working in CMD...
utopykzebulon said:
@udk : i'm running on win 7 beta too and it's working in CMD...
Click to expand...
Click to collapse
That's strange, maybe I miss some files.
udK said:
It simply return "cannot execute this file", tested on XP and Win7 beta
Click to expand...
Click to collapse
Do you have the MS Visual C++ 2008 redistributables? (MSVCR9 and MSVCP9)
utopykzebulon said:
do you have to do something first at manila files?
for me say bad headers!
@udk : i'm running on win 7 beta too and it's working in CMD...
Click to expand...
Click to collapse
did you unicode2ansi them?
sztupy said:
did you unicode2ansi them?
Click to expand...
Click to collapse
yes it's work onw thx man
For "ERROR_nil" you have to decompile lua files with chunkspy and correct it manually
utopykzebulon said:
yes it's work onw thx man
For "ERROR_nil" you have to decompile lua files with chunkspy and correct it manually
Click to expand...
Click to collapse
I' now comparing the VM docs of 5.0 and 5.1 and I'm comparing the changes. I already corrected a lot of bugs, so in the next version you might not even need chunkspy
sztupy said:
I' now comparing the VM docs of 5.0 and 5.1 and I'm comparing the changes. I already corrected a lot of bugs, so in the next version you might not even need chunkspy
Click to expand...
Click to collapse
you're great man
waiting for your relase!
Alpha 2:
Less chatty (no more "arg" values)
Fixed constant loading errors
fixed function variables
Added handlers to the new opcodes
Some changes to OP_TEST
Check first post for links.
I also started a repository for useful snippets of code at post #3
Wow, that looks promising!
Hi!
beta1 is released. I also added a compiler (and an interpreter just in case), that was changed to use TF3D's Q16.16 numeric encoding format. (Thanks to D-MAN for deciphering the encoding)
Currently luadec is able do decompile a lot of scripts, except:
Scripts with too much local variables
Scripts with complex boolean expressions and conditional statements
Scripts where luadec crashes while decompiling
This means however that recompiling small scripts WORK, and will result in a semantically identical files (semantically means it will do the same as the original. Usually the only thing that is changed is the line number of the function declarations (yes, lua stores this information in the compiled files) )
Tutorial
For example, to change 4aefb03d_manila do the following:
1. Convert it to ascii
Code:
luaconv 4aefb03d_manila x uni2asc
2. Decompile
Code:
luadec x > m.lua
3. Edit m.lua
4. Recompile using luac from my package
Code:
luac -s m.lua
5. Convert output back to unicode
Code:
luaconv luac.out 4aefb03d_manila.new asc2uni
Here is an example: this will run footprints instead of HTCAlbum
Code:
require("hitfeedback")
gnPhotoTouchPressY = -1
Camera3DHitFeedback = HitFeedback(Camera3D)
OnPhotoTouchPress = function(loc_0)
gnPhotoTouchPressY = loc_0._ymouse
Camera3DHitFeedback:Press()
end
OnPhotoTouchRelease = function(loc_0)
Camera3DHitFeedback:Release()
if gnPhotoTouchPressY ~= -1 and loc_0._xmouse < CameraSprit.Position.x and noImage2DCamera._visible == false then
Shell_NavigateTo("\\Windows\\HTCFootprint.exe", "")
end
gnPhotoTouchPressY = -1
end
OnPhotoTouchReleaseOutside = function()
Camera3DHitFeedback:Release()
end
PhotoHitTarget.onPress:connect(OnPhotoTouchPress)
PhotoHitTarget.onRelease:connect(OnPhotoTouchRelease)
PhotoHitTarget.onReleaseOutside:connect(OnPhotoTouchReleaseOutside)
You're the best
Now we can create a lots of manila mods
i try it now
thanks a lot for this tool
one of the best with mode9editor
edit after use:
really a giant leap in manila research....
fantastic work, sztupy. Already working on integration with m9editor. You're going to break the final frontier
6Fg8 said:
fantastic work, sztupy. Already working on integration with m9editor. You're going to break the final frontier
Click to expand...
Click to collapse
it will be fantastic....
WOW! manila's inside out
great work
i'm using windows 7 beta and i'm getting this error:
the application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
how to correct this?
pcarvalho said:
WOW! manila's inside out
great work
i'm using windows 7 beta and i'm getting this error:
the application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
how to correct this?
Click to expand...
Click to collapse
Did you install the MSVC++ 2008 redistributables?
sztupy said:
Did you install the MSVC++ 2008 redistributables?
Click to expand...
Click to collapse
yes, all that you say in first post is installed...
in the log i have:
Activation context generation failed for "C:\Users\XXXXXXXXX\Desktop\lua\luadec.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
and found this...
http://www.gamedev.net/community/forums/topic.asp?topic_id=493103

Applet support?

Hi,
I know HTC supports java. With regard to that, I have some questions/doubts.
1. Whether the HTC supports Applet, in other word the IE/Opera/Skyfire browser supports applet? Since many of the banking application I am using is having the logon in applet and it's not loadind in opera. Any idea how to achieve it?
2. I have installed Mysaifu JVM which will run the java program. So it accepts .class file or .jar file. I need to compile it in my phone. How can I do it?
For example: I will write my own java file(.java). I need a compiler to compile the .java to .class file.

compiled jar library project

Hi all.
I need to do a close source library for my work.
I figured I could create a library project and then export all of its code into a compiled jar archive.
Then, when I need to use that library, I use the empty android library project for its resources and I import the jar file in the build path.
So far, it works when the main project that uses the library doesn't have its own resources.
But as soon as I add a resource (like icon.png) into the main project, the application fails to launch a library activity and I get this error : Unable to start activity ComponentInfo{...}: android.content.res.Resources$NotFoundException: File res/drawable/icon.png from xml type layout resource ID #0x7f020000
I really don't get it. What's the problem ?
Thank you for your help.

Categories

Resources