[Q] put images inside excel file - Java for Android App Development

Hi guys!
i'm developing an android app, and i need to write an excel file without any formula but with images.
i found docx4j but android branch is out of date. so i'm thinking to use xml and xsl file. i must write directly the xml with applied xsl, something like this: http://pastebin.com/yWB72d3K (example found on internet)
how can i add an image to a cell using this method?
have you got other ideas to work with android, excel and images?
thanks!

rmbq said:
Hi guys!
i'm developing an android app, and i need to write an excel file without any formula but with images.
i found docx4j but android branch is out of date. so i'm thinking to use xml and xsl file. i must write directly the xml with applied xsl, something like this: http://pastebin.com/yWB72d3K (example found on internet)
how can i add an image to a cell using this method?
have you got other ideas to work with android, excel and images?
thanks!
Click to expand...
Click to collapse
Haven't done what you're attempting but have used poi.apache.org for excel which seemed to work OK.

Related

RIL lib

Hi,
I want to try to make a phone call using the RIL on a smartphone.
Is it possible ?
How can I get the ril.lib ?
If someone has already developed such a service please send me thoe source .
in tstril.zip from http://xda-developers.com/RIL/ there is a ril.lib file.
you can create it your self by running
Code:
lib /def:ril.def /machine:arm
the ril.h is far from complete. maybe someone has the time to copy
them from the patents.
the constants are more work, you need to do some reverse engineering to find those.
and the patent may not be exactly what has been implemented.
Where is the ril.def ? Have I to define it by myself ?
Where is the complete ril.h ? Is it the same as in tsril ?
In fact I want to use the RILDial function and I need to know
the syntax of this function.
Thanks for your answer
XDA developer Itsme said:
in tstril.zip from http://xda-developers.com/RIL/ there is a ril.lib file.
you can create it your self by running
Code:
lib /def:ril.def /machine:arm
the ril.h is far from complete. maybe someone has the time to copy
them from the patents.
the constants are more work, you need to do some reverse engineering to find those.
and the patent may not be exactly what has been implemented.
Click to expand...
Click to collapse
have you looked in the tstril.zip archive on that page?
itsme said:
in tstril.zip from http://xda-developers.com/RIL/ there is a ril.lib file.
you can create it your self by running
Code:
lib /def:ril.def /machine:arm
the ril.h is far from complete. maybe someone has the time to copy
them from the patents.
the constants are more work, you need to do some reverse engineering to find those.
and the patent may not be exactly what has been implemented.
Click to expand...
Click to collapse
i looked for it ,but have no that page ...........
As a developer, I started to explorer more my device.
I created a small application to expose all RIL messages.
This app is still in development but feel free to use it.
Ideas are welcome.
Thanks.
RIL Lib
I found an update RIL.H.
I have updated the DEF file and created a new LIB file.
Note: I have updated DEF based on MSDN and not based on the H file. Maybe some reference to certain API are still missing on the H file.

sppl2_xx.lex - how?

Does anybody have an idea, how can I create sppl2_xx.lex? Some of them: sppl2_en.lex, sppl2_fr.lex etc can be extracted from existing ROMs. I can't find any information about file format nor any tools to create them.
In particular - I'm looking for sppl2_pl.lex [polish].
Any ideas? please help.
I've seen the files with names mssp2_??.lex in WinWord 6.0, but I never tried to copy them on PocketPC. So you can try to get MS Word 6.0 with your language support, install it and take a file from there. Maybe this would work.
Finding such an old Word version would be a complex task
Already checked. Old mssp2_pl.lex does not work

Custom Dialpad

I've been using the unskinned dialer on my Vogue for the last couple weeks because its much snappier and features an embedded call history. However, after looking at some of the new Diamond custom dialers I've realized I'm not happy with the default skin, so I started pouring over the Windows directory looking for the images that govern the unskinned dialer in hopes I could directly skin it instead of using the dialer overlays.
I was able to find a few files of use, in particular the gifs that control the background color for the call and end keys, the call history images on the left (for call missed/out/in), and the background image. But after changing the files via TotalCommander and soft-resetting, I see no change.
Is there any way to do this without cooking? And does anyone know where else files might be kept for editing this dialer?
ANY help at all would be greatly appreciated.
I'm curious about this too. I've looked all over, but havent been able to find what i'm looking for. Is there a PSD somewhere for the iphone-ish dialers that has the correct splits and things to create our own?
The custom dialers are an alternative to the original dialer...
Look at the files in the CABs for custom dialers, and you will see they have a different set of files. Look at those, and edit them as you want.
Yes, but the custom dialers lose the embedded call history functionality and are sluggish in comparison with wm's default dialer. I don't mind having to cook a rom to get this to work, but I still don't know where all of the images are stored, particularly the ones for the actual number buttons. And perhaps an xml file governing their placement?
Red49er said:
Yes, but the custom dialers lose the embedded call history functionality and are sluggish in comparison with wm's default dialer. I don't mind having to cook a rom to get this to work, but I still don't know where all of the images are stored, particularly the ones for the actual number buttons. And perhaps an xml file governing their placement?
Click to expand...
Click to collapse
Okay...
Maybe this will work...
In the dll files related to the dialer (can't remember there names off hand), there will be graphic files that can be replaced...
Okay, after much searching (now that I knew what I was looking for), I've come up with a list of dlls that may be related:
phcanhtc.dll
phcanoverBMP.dll
dpadmenu.dll
tapres2.dll
tapres.dll.0409.mui
tapres.dll
also, the reg key hklm/security/resover might allow something
Only problem is I realized after continued reading that some of the info I got was related to wm5 roms trying to get smartdialing working like wm6....so if anyone could help me narrow down which dlls are the right ones to edit, that would be fantastic!
also, whats the best way to edit dll and mui files?
Red49er said:
Okay, after much searching (now that I knew what I was looking for), I've come up with a list of dlls that may be related:
phcanhtc.dll
phcanoverBMP.dll
dpadmenu.dll
tapres2.dll
tapres.dll.0409.mui
tapres.dll
also, the reg key hklm/security/resover might allow something
Only problem is I realized after continued reading that some of the info I got was related to wm5 roms trying to get smartdialing working like wm6....so if anyone could help me narrow down which dlls are the right ones to edit, that would be fantastic!
also, whats the best way to edit dll and mui files?
Click to expand...
Click to collapse
phcanhtc.dll -- Contains some BMPs/images
phcanoverBMP.dll -- Contains most of the images
dpadmenu.dll -- Is to do with the dialer workings... Contains no images (I think)
tapres2.dll -- may contain some images
tapres.dll.0409.mui -- is localisation. Mostly just text strings, but may be some images
tapres.dll -- may contain some images
I use "ResHacker" to open up dlls and modify them...
Just tried copying the needed dlls over to my storage card, tried both totalCommander and RescoExplorer, with flight mode off/on, can't get access to tapres.dll, tapres.96.dll, or tapres.dll.0409.mui
Edit: Thanks for the info and the heads up on reshack!
That may be a problem... I'd guess they need to be cooked into the ROM, in which case it may be easiest to take a ROM, dump it, edit the files there, rebuild it and then flash it...
Yeah, I just realized they're rom files and I can't get at them this way.
But I was able to successfully edit phcanoverBMP and change the call history icons.
Thanks for all your help, its cooking time
Red49er said:
Yeah, I just realized they're rom files and I can't get at them this way.
But I was able to successfully edit phcanoverBMP and change the call history icons.
Thanks for all your help, its cooking time
Click to expand...
Click to collapse
No probs!
There are also some files in the WM5 ROM I've dumped in an OEM pack called "Phone_DPI_96" that may be of interest...
they are:
Code:
backarrow_glyph.gif
clg_in.gif
clg_miss.gif
clg_out.gif
cmdpad_land.gif
cmdpad_port.gif
cmdpad_sqre.gif
dialpad_land.gif
dialpad_port.gif
dialpad_sqre.gif
anything beginning with "dlr"
handset_glyph.gif
spd_lst.gif
Okay, so I got ahold of a kitchen, but when I found the tapres dlls in the sys folder, they're not compiled -- its a bin file, 2 txts, and an s000. Reshack can't do anything with these files. What do I do?
You need to use "Reversemode" to turn those into a dll, then you can edit that.
I googled reversemode, and all I came up with was reversemode.com which didn't look like any sort of software that would help with this.
Red49er said:
I googled reversemode, and all I came up with was reversemode.com which didn't look like any sort of software that would help with this.
Click to expand...
Click to collapse
I'll be more helpful then
This post: http://forum.xda-developers.com/showthread.php?t=331094
well this seems to be a brick wall. no matter which file I try to use revresmode on, it says it doesn't work on .net files.
Thanks for the help anyways tho.
I don't know about changing the font of the dialer, but you can change the dialer within the rom contents (only the buttons and background) I found that there are two separate folders in the SYS folder. the files are read only. unlock them and edit in photoshop. you don't have to relock them to cook them back in, just save them in the same exact format they were in before you unchecked the "readonly". That is how I edited mine. I have no idea why why anyone would bother trying to mess with the dll's?!!!
S.V.I said:
I don't know about changing the font of the dialer, but you can change the dialer within the rom contents (only the buttons and background) I found that there are two separate folders in the SYS folder. the files are read only. unlock them and edit in photoshop. you don't have to relock them to cook them back in, just save them in the same exact format they were in before you unchecked the "readonly". That is how I edited mine. I have no idea why why anyone would bother trying to mess with the dll's?!!!
Click to expand...
Click to collapse
There are embedded images in the DLLs...
You need to use reversmode on the folder, not the files within it...
l3v5y said:
You need to use reversmode on the folder, not the files within it...
Click to expand...
Click to collapse
Doing that gives me a "cannot open input file" error. And yes, all files and folders are not marked as read only.
Red49er said:
Doing that gives me a "cannot open input file" error. And yes, all files and folders are not marked as read only.
Click to expand...
Click to collapse
My mistake! Reversmod does dll to module, RecMod (attached) does the reverse...
Sorry!

[Q] Editing the file types that the Library app catalogs...

Is there anyway to change the group of file types that are listed in the native Library app? I'd like to add CBR/CBZ to the Library listing; I use ComiCat to read these files now and obviously would continue using that app but I'd like to just list all my books/comics in one place. My assumption would be if I was able to list this, the android system would ask me what app I want to open the CBR file in and I'd choose ComiCat as the default application... I decrypted Library.apk and went through all the XML code but couldn't find anything useful.. Any ideas?

[HOW TO] S-Note templates with custom backgrounds

I was looking for an easy way of having the "Note" and "Meeting" templates with white background, so it would print decently. So far it seems there's no easy way to create own templates apart from messing with the .apk file. The alternative of manually setting the background each time I create a note or add a page does not look appealing as well.
Until somebody comes with a better solution, here's what I managed to get:
Simple description:
Modify original '"Note" template
Download the "Wine" template form 'new snote' dialog window
Replace the "Wine.snb" with modified "Note.snb"
Detailed description
* Intro:
Templates are stored in *.snb files, which are plain zip files (just like .apk's), easy to open/change with e.g. 7-Zip.
We want to customize the Note template ('note.snb' file).
Root is necessary.
* How to modify note.snb backgrounds:
Copy the file '\system\app\Snote_wxga.apk' to your PC
On PC:
Open the 'Snote_wxga.apk' file and
Goto to '\assets\templates' folder
Open the 'Note.snb' file
Go to folder 'snote\media\':
- the two .png files located there are note backgrounds (for title page and normal ones) - edit or replace the files with your own
- the two .jpg files are thumbnails - edit or create your own, by e.g. resizing and converting the .png files from previous step
* How to get the modified template to the device:
Download new template from the web (in new note window dialog) - let's say it's "Wine"
Go to folder '/data/data/com.sec.android.app.snotebook/download/template', it should contain following files:
/T_001/template/thumb_l.png
/T_001/template/thumb_p.png
/T_001/template/wine.snb
/T_001/widget/widget_thumb.png
/template.list
Replace the file '/T_001/template/wine.snb' with your modified copy of 'note.snb' (remember to change the name from 'note.snb' to 'wine.snb')
All other .png files are thumbnails - edit, make your own or leave as it is
* How to change name of the new template from 'Wine' to something else:
Copy the 'template.list' file to PC
Open it with a decent text editor (e.g. Notepad++)
Find the string {"value":"Wine","lang":"en"} for your language, and change the 'Wine' label to one of your choosing
Copy the file 'template.list' back to folder '/data/data/com.sec.android.app.snotebook/download/template' on your device
The following procedure can be repeated - so far there are 3 downloadable templates provided by Samsung, each of those can be replaced the same way.
PS1. It works.
PS2. At least on my device.
Thanks for trying that out. I haven't got round to it yet, but I was planning to try something similar myself.
The other solution I had considered was a rather more radical hack of the snote apk, but a more flexible solution: If it was possible to hack the apk so that the downloaded templates are stored in the default external storage in /sdcard/Android/data/com.sec.android.app.snotebook/ rather than the internal storage you could get to that without root, and just edit the templates any time you wanted.
It would be easy enough to do with access to the java code, and while I'm sure it might be possible to do by hacking the smali files, it's more work than I can find the time for at the moment.
rmein said:
Thanks for trying that out. I haven't got round to it yet, but I was planning to try something similar myself.
The other solution I had considered was a rather more radical hack of the snote apk, but a more flexible solution: If it was possible to hack the apk so that the downloaded templates are stored in the default external storage in /sdcard/Android/data/com.sec.android.app.snotebook/ rather than the internal storage you could get to that without root, and just edit the templates any time you wanted.
It would be easy enough to do with access to the java code, and while I'm sure it might be possible to do by hacking the smali files, it's more work than I can find the time for at the moment.
Click to expand...
Click to collapse
Hopefully Samsung will discover the idea of custom templates some day. Also, judging from the structure of snb files, they must have some template editor (i don't believe they would edit all the xml's manually). Would be great if the editor was made public as well.
As for the solution - editing java lives far above my abilities, so I hope you'll find the time. I chose the described method, because the other solution, i.e. replacing the snb files directly inside the snote apk, would not survive the flashing, unless the new apk was installed to data, which I had no time to check if would work at all. Besides, having the ready-made template folder, I was able to repeat the process on my wife's Note within a minute.
One final remark - I did not bother with creating new backgrounds, any decent graphic editor enables to edit images palette colours, I used GIMP, to simply change background of 'Note' and 'Meeting' to white.
Sent from my GT-N5100 using xda premium
Thank you for finding and sharing this. I am still struggling with finding the Wine template. On the dialog "new note" in my Galaxy note 10.1 it just shows me the 10 templates available to choose. No template to download. Or do you mean another dialog? I don't understand that part really well.
Another question (I suppose I will know that when I can do it). Can I put templates (background images) of higher resolution? . That is the whole reason why I want to change the templates. I think the finest pen stroke looks pretty thick.
Thanks!!
Cristian
duguet said:
Thank you for finding and sharing this. I am still struggling with finding the Wine template. On the dialog "new note" in my Galaxy note 10.1 it just shows me the 10 templates available to choose. No template to download. Or do you mean another dialog? I don't understand that part really well.
Click to expand...
Click to collapse
Don't know how it works with Note 10, on the 8 the pressin the "+" for new note shows window as in attached screenshot - the 'download button' is marked
duguet said:
Another question (I suppose I will know that when I can do it). Can I put templates (background images) of higher resolution? . That is the whole reason why I want to change the templates. I think the finest pen stroke looks pretty thick.
Click to expand...
Click to collapse
I guess you could try, but it could require additional editing of one of xml files - I think template dimensions are stored there
Many thanks!!!
So now I know I don't have the same S-note version. I don't see that download option. Could somebody send me the Wine template file? thanks!
I'll let you know if I made it increasing the resolution.
BR,
Cristian
duguet said:
Many thanks!!!
So now I know I don't have the same S-note version. I don't see that download option. Could somebody send me the Wine template file? thanks!
I'll let you know if I made it increasing the resolution.
BR,
Cristian
Click to expand...
Click to collapse
I'm afraid this might not work for you - the whole template/background swapping works because additional templates are installed by SNote app itself. I doubt your version will be able to recognize template files if you just copy them.
anyway, I'll attach the templates after the weekend, so you can try for yourself
duguet said:
Could somebody send me the Wine template file? thanks!
Click to expand...
Click to collapse
As promised - modified templates with white background (names in template.list unchanged):
1. Note (replacement of Wine template)
2. Meeting (replacement of Movie template)
3. Memo (replacement of Weaning Food template)
p107r0 said:
I was looking for an easy way of having the "Note" and "Meeting" templates with white background, so it would print decently. So far it seems there's no easy way to create own templates apart from messing with the .apk file. The alternative of manually setting the background each time I create a note or add a page does not look appealing as well.
Until somebody comes with a better solution, here's what I managed to get:
Simple description:
Modify original '"Note" template
Download the "Wine" template form 'new snote' dialog window
Replace the "Wine.snb" with modified "Note.snb"
Detailed description
* Intro:
Templates are stored in *.snb files, which are plain zip files (just like .apk's), easy to open/change with e.g. 7-Zip.
We want to customize the Note template ('note.snb' file).
Root is necessary.
* How to modify note.snb backgrounds:
Copy the file '\system\app\Snote_wxga.apk' to your PC
On PC:
Open the 'Snote_wxga.apk' file and
Goto to '\assets\templates' folder
Open the 'Note.snb' file
Go to folder 'snote\media\':
- the two .png files located there are note backgrounds (for title page and normal ones) - edit or replace the files with your own
- the two .jpg files are thumbnails - edit or create your own, by e.g. resizing and converting the .png files from previous step
* How to get the modified template to the device:
Download new template from the web (in new note window dialog) - let's say it's "Wine"
Go to folder '/data/data/com.sec.android.app.snotebook/download/template', it should contain following files:
/T_001/template/thumb_l.png
/T_001/template/thumb_p.png
/T_001/template/wine.snb
/T_001/widget/widget_thumb.png
/template.list
Replace the file '/T_001/template/wine.snb' with your modified copy of 'note.snb' (remember to change the name from 'note.snb' to 'wine.snb')
All other .png files are thumbnails - edit, make your own or leave as it is
* How to change name of the new template from 'Wine' to something else:
Copy the 'template.list' file to PC
Open it with a decent text editor (e.g. Notepad++)
Find the string {"value":"Wine","lang":"en"} for your language, and change the 'Wine' label to one of your choosing
Copy the file 'template.list' back to folder '/data/data/com.sec.android.app.snotebook/download/template' on your device
The following procedure can be repeated - so far there are 3 downloadable templates provided by Samsung, each of those can be replaced the same way.
PS1. It works.
PS2. At least on my device.
Click to expand...
Click to collapse
Thanks!
S Note of Galaxy Note 3
Does anyone know how we can get large (A4) size templates for S Note? The default pages are like small (size) notes.
Can someone give me the S Note apk files for Galaxy Note 3? I want to install this on my Asus tablet as well so I can synchronize my work done on either of the two.
I have been using Asus Supernote earlier on my Asus Tablet and Galaxy S3 mobile, but the Supernote does not work on my new Galaxy Note 3.
Unless I missed it - is it possible to change the default save file name? I used the memo template to create my new one - copied over wine. When I hit save it defaults to Memo_date_time. If I can find where to change the Memo portion of the filename. Would make for a sweet setup then

Categories

Resources