XML help - Windows Mobile Software Development

I'm new to vb.net and writing my first app for windows mobile 6.
I need help with an XML reader/writer. Is there anyone willing to help me with this.
I have an AT&T Fuze and want to use the AT&T tab in manilla as a game tab
I can edit the file nessary(att_tabitems.xml) on my desktop with notepad and all works fine. But if I edit it on the phone with the program I made after saving the file It is half the size an the At&t tab in manila can't read the file; however, opening each file the origional and the one my app created on the phone they seem to have the same information in them. word for word.
I use the readfiles/writefiles options in vb to read and write the file. I think I need to use a method of writing XML I did try and use the System.XML xmlDocument to try and read in the xml file but was unable to get it to work.
I was hoping someone here had an example of an app they had writen that reads/writes XML on the smartphone.

Hmm...You are editing it with an app you made? Any chance you can PM me the source and maybe I can figure it out from there. My best bet would be that you are forgetting to Close() the file, creating an access issue...
I'd be able to give you a better answer if you send me the code

Related

Declare Function Help

Hi
I'm simply trying to use a dll written in eVC, with a small app written in vVB.
The dll has mostly been wizard generated with an extra function call testing, which returns a 4 as an int.
I've compiled the dll as 'dll_test.dll' and after much messing about i've managed to register the pvbdecl.dll file which seems to be needed. Now i get the following error. 'dll_test.dll was loaded, but the DllRegistryServer entry point was not found'
I hope this is a small common problem? thanks for any help/hints in advance
just a follow up:
i cracked it. i was using the wrong naming convention in my dll. meaning that vb couldn't find the functions in the dll. (also removed some of the c++ stuff from the dll)
now i can use my dll with vb or c (using loadlibrary etc...). next step is to use it in c with just including the h file and linking to the lib file
if anyone is interested then let me know and i'll explain more.

Ubuntu / Linux auto sign tool?

I have been toying with the idea of making a theme. Sounds like fun and the How To's here are really thorough (by the way, I appreciate that, those things must have been quite the labors of love).
As you can tell from the thread title, my OS of choice is obviously Ubuntu. The autosign tool sounds pretty convenient, but I notice it is for Windows. I've searched a bit, but honestly I am getting tired of thumbing through thread after thread looking for the answer and was hoping for a friendly nudge in the right direction.
Anyway, long way around to these questions:
1, when I re-sign an apk, do I use test-keys, do I create my own key, or do is that something JDK will create for me to use?
2, I don't want to create a theme that makes people need to wipe before switching, the template is up to date on the How To thread? Are there templates for JF ADP1.1, and maybe even RC8 as well? Or was there a thread I could read about taking the necessary parts of JF's update and building a template of mine own from that?
3, To actually resign an apk, you have to edit some hex code right? If there truly is NO tool for Linux, I could use some directions on where to find how to manually sign a file. Then hopefully I can find / convert / create a tool in Linux to handle the dirty work for me.
I guess this is what I get for coming in so late into the game.
Also, I am curious if anyone else creates themes in anything other than Windows... any *nix creators out there?
ok, first off to resign an apk or a zip you dont have to do any hex editing at all, in fact, to make a theme you dont have to do any hex editng.
2nd, use my default themes as in the stickies as a template to build your theme, it will not wipe.
3rd to resign in linux, which I haven't done, you will probably need the original signing tool which can be found in jf's recovery.img .zip[ he provided a while ago. I believe it is stickied on android development.
This is the command to resign them
java -jar testsign.jar >inputfile> <outputfile>
Hope this helps
Stericson
Thanks for the super quick reply
Ok, I'll give a search for "testsign.jar", that should get me in the right direction. Once I have that I guess it is time for some experimenting. It shouldn't be hard to develop a shell script that takes every file of xxx type, from a directory and then pass them as values to the testsign.jar app one by one. I had a shell script do something like this to rename all of my photos.
I resign the apk and zip files then.
Thanks Stericson, now I am off to find that testsign.jar, make sure I have the up-to-date default themes, and play around a bit.
EDIT:
SignApk.jar is a tool included with the Android platform source bundle.
testkey.pk8 is the private key that is compatible with the recovery image included in this zip file
testkey.x509.pem is the corresponding certificate/public key
Usage:
java -jar signapk.jar testkey.x509.pem testkey.pk8 <update.zip> <update_signed.zip>
Click to expand...
Click to collapse
This is what I need isn't it? I thought that sounded familiar, I had this downloaded from the whole "let's explore how to root my phone" process.
oh yea, ooops, that is right...sorry I have a custom version of the tool I use. Sowwy.
But that is right.
that cmd line will sign both apks and zips
Stericson

Contents.xml

SystemFS\User\MultiStage\Contents.xml
You could extract this file from *.FFS or grab from handset.
Maybe some tweaking possible...
S5PC110_EVT1_UM10.pdf
2D Graphic Engine
− BitBLT
− Supports maximum 8000x8000 image size
Click to expand...
Click to collapse
<FileFormat>
<JPG>
<MaxFileSize value="4096000"/>
<MaxWidth value="5000"/>
<MaxHeight value="5000"/>
<ThumbNail>
<MaxWidth value="1280"/>
<MaxHeight value="1024"/>
</ThumbNail>
</JPG>
There are more infos in this file...
<MaxInstallCount>
<NativeApp value="100"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
</AStore>
</Contents>
</SDP>
Check out, maybe interesting or helpfull.
Best Regards
I already tryed to increase the max. resolution to 8000x8000px for jpg a week ago but it didnt worked
This file exists 2 times and I flashed them correctly to the wave (tested with sTunes after flash), the limits seems to be set somewhere else...
The image sizelimit is also higher than 4096000 byte (or what it is) - about 10 mb.
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
SystemFS\User\MultiStage
User\MultiStage
@ st0rmi
Thanks.
Yes, via sTune this file is twice.
It seems writeprotected files are most in folder SystemFS... as Backup.
If you check via TriX Firmware files. Then Contents.xml is in *.FFS... maybe edit before flashing. Then changes in both files on handset.
Not tested yet...
@ rex4u
At the moment I have nothing changed in this file, so no idea what happens.
Maybe soon few tests...
Best Regards
@adfree: Yeah thats what I have done
I just used sTunes to copy the contents.xml back to my pc and view if the edited xlm are really on my phone because it didnt worked...
@adfree
No bro' I was offering my own suggestions to this configuration file.
It might allow us to install more than 100 apps in phone and show in Menu.
Second it might show Java apps icons in Menu.
My 2 cents
xml parser
please help me
a want to parser punker xml data base.
rex4u said:
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
Click to expand...
Click to collapse
it's into the 'app counter' field, '-1' may be means 'unlimited' number of java apps installable, but I haven't read yet the whole xml... anyway if it is editable it's an interesting thing..
I saw that file a while ago while looking for something inside my phone (very special thing that made me to copy the whole phone)
there is a lot of interesting things but i never tried tweaking it
Maybe if someone have enough knowledge to add few new extensions and test them
Also removing some stupid limits would be awsome
Sorry i've no time to test that with you guys but would appreciate results
Best Regards
You dont need modif ffs or other just use pfs file to modif what you want and in real time direct phone flash pfs file and not have write protect problem
Just says Thank
Example file : dont give attention of boot img cause i dont take time to do it in 800x480 but its 400x240 then its make bug but with pfs file you can upload anything you want to change !!!
Good hack !!!
Maybe with this you can create dual boot or i dont know what a pro smoker can do, you can also try to put her rc2 or rc1 directory i dont try it !!!
Download example, in this one you can see SystemFS and Registry directory, off course you can put her all directory you want to flash pfs, using trix to modified or wave remaker more faster :
https://rapidshare.com/files/809973956/Circle.pfs
An idea its like you can make your one firmware with personal Widget installed and other idea welcome....Just take file registry and Widget folder on phone and put it on PFS
i can not open new thread
i went to parser an xml file with structure like this.
<?xml version="1.0"?>
<node1>
<node2>
<node3>
<node4>
<node5>
text
</node5>
</node4>
</node3>
</node2>
</node1>
Click to expand...
Click to collapse

Programatically set default file associations

In windows 8, programs "cannot" set themselves as the default to open a file. As a programmer, I want my power over the computer, so I have found a way to change the associations.
The "user choice" of the default file handler is located in the key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\[extension here]\UserChoice
Unfortunately, this key is protected by some mystery hashing algorithm that incorporates the extension, your user account, and the program in some convoluted way.
Fortunately, we can, of course, set the default file handler by brutally deleting the other file handlers with extreme prejudice, making windows think that your program is the only available program capable of opening that type of file, thereby making it default.
These are located in:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\[extension here]\OpenWithList
HKCR\[extension here]\OpenWithList
How to:
1-set your program as "default" the normal way, as you would in windows 7.
2-delete the OpenWithList keys located in HKCU and HKCR, and if necessary, the UserChoice key.
3-???
4-Profit
If you use this process, please post feedback so that I know it works. When I get around to it, I will write a program as an example.
cool thanks work form me
Thank you for sharing this information. It pointed me in the right direction.
To not let the users continually shift between the desktop and the default Store Apps (Metro applications), we want to start all images and videos in the desktop programs.
It didn't work on our versions of Windows 8 Pro. HKCR\[extension here]\OpenWithList was empty or it didn't exist. The solution for me was:
1) change as needed: HKCU\Software\Microsoft\Windows\CurrentVersion\Exp lorer\FileExts\[extension here]\OpenWithList
2) remove all the keys beginning with 'AppX' for the desired file extensions in [HKEY_CLASSES_ROOT\[extension here]\OpenWithProgids]
If the user can use a virtual registry, you probably need to delete it for the elevated administrator and the user.
The keys beginning with AppX are the links to the Store Apps.
(Do not forget to backup registry keys before making changes)
All the extensions for video and images:
.3g2, .3gp, .3gp2, .3gpp, .aac, .adt, .adts, .AIF, .AIFC, .AIFF, .ASF, .ASX, .AU, .avi, .bmp, .dib, .gif, .jfif, .jpe, .jpeg, .jpg, .jxr, .M1V, .m2t, .m2ts, .M2V, .m3u, .m4a, .m4v, .MID, .MIDI, .mod, .mov, .MP2, .MP2V, .mp3, .mp4, .mp4v, .mpa, .MPE, .mpeg, .mpg, .mpv2, .mts, .png, .RMI, .SND, .tif, .tiff, .TS, .TTS, .wav, .WAX, .wdp, .wm, .wma, .wmd, .wms, .wmv, .WMX, .wmz, .WPL, .WVX
I hope this information can helps someone.
Or right click on a file of the type you want to modify and go to open with...
Sent from my SCH-I510 using Tapatalk 2
JihadSquad said:
Or right click on a file of the type you want to modify and go to open with...
Sent from my SCH-I510 using Tapatalk 2
Click to expand...
Click to collapse
If you read the thread title, you would realize that this is referring to programmatic modification of default associations. MS "prohibits" programs from modifying the default file associations, so this is a valid workaround.

[Q] Converting readable .xml to human unreadable android .xml

Hi!
I have not found any answers from Google so I'm going to post it here and those who can answer Thank You!
I can't recompile some apps that is secured or something like that..
I have modified Dolphin browser Beta's xml files to support Flash player on Jelly Bean but I can't make .xml files to human unreadable like how them are in the app packages.
Code:
/res/xml/webcontent_prefences.xml
default value from ON-DEMaND to true
deleted: dolphin:entries="@array/pref_plugin_state_choices" dolphin:entryValues="@array/pref_plugin_state_values"
/res/xml/browser_prefences.xml
added: <mobi.mgeek.preference.FlashPlayerPreference dolphin:key="plugin_state" dolphin:title="@string/pref_content_plugins" dolphin:defaultValue="true" dolphin:background="@drawable/settings_bg_middle_bk" />
Please help me if you know how to do that..
I have tried to compile another apk with those files but then it will fail compiling the APK and I have no idea what to do and how to do!
hmmmm... i am not programmer that makes applications , but as far as i know , XML files in APK is only for layout or resources , am i correct ?
if you wanna make your browser support flash , seems it doesn't have anything to do with XML files.
and usually , shouldn't you decompile the APK files first , and then modify , and recompile after all ???
in any case , it should be APK/XML human unreadable files ----(decompile)---> human readable and modify ---(recompile)---> unreadable again.
I'm not exactly sure what the command is but I believe aapt (from the Android SDK) is your best bet. Either that or something like APKTool or FJ-APKTools so that you can just 'decompile' it and replace whatever files you need (human-readable XML that is) and then repackage/'compile' it all up again.
Unlawful said:
I'm not exactly sure what the command is but I believe aapt (from the Android SDK) is your best bet. Either that or something like APKTool or FJ-APKTools so that you can just 'decompile' it and replace whatever files you need (human-readable XML that is) and then repackage/'compile' it all up again.
Click to expand...
Click to collapse
I have used APKtool and FJ-APKtools and no luck with those, so that's why I need to do it manually somehow..
I read from internet that somehow can do something to .xml file via aapt but I don't think it could be able to convert the .xml to human unreadable .xml

Categories

Resources