Android HTML Template realization? - Android Q&A, Help & Troubleshooting

Gold evening everybody!
Unfortunately, i'm not able to post my question in the developer section.
My question is the following: i would love to export a sqlite table as a html document (a table respectively). I found out about the string resource template system. Is this the only way to save a html file? With this I mean the following: putting the hardcoded html source code with the desired template interfaces in a string resource file.
Do you have ans creative ideas or suggestions?
All the bests and thanks a lot for any help!
McMardy
Gesendet von meinem Galaxy Nexus mit Tapatalk

mcmardy said:
Gold evening everybody!
Unfortunately, i'm not able to post my question in the developer section.
My question is the following: i would love to export a sqlite table as a html document (a table respectively). I found out about the string resource template system. Is this the only way to save a html file? With this I mean the following: putting the hardcoded html source code with the desired template interfaces in a string resource file.
Do you have ans creative ideas or suggestions?
All the bests and thanks a lot for any help!
McMardy
Gesendet von meinem Galaxy Nexus mit Tapatalk
Click to expand...
Click to collapse
Well, I think there's some confusion here.
Assuming you already know how to "export a sqlite table in html" (which is not directly related to Android) and want to put the resulting html into an Android string resource: it's not a good idea! You'll probably experience any sort of formatting issue as it's not intended to be used for very long strings or strings containing "unusual characters".
A more stable solution is to put the html inside a text file in the /res/raw or /assets directory of your project and then access it respectively with this or this.
It's not as straightforward (you'll have to deal with an InputStream), but definitely worth the effort!
Google around if you are lost

Rf
Gesendet von meinem Galaxy Nexus mit Tapatalk

Hi thanks for your help.
I didnt express my Problem quite well, sorry: i want to do table[SQL] -> table
HTML:
.
I found out about the format possibilities with string resources.
1. Quest.: is there a better way for that?
2. Quest.: im thinking about creating a nice formatted (CSS) table with a html site hierarchy (=subsites). Do have suggestions to implement that?
All the bests :)
Gesendet von meinem Galaxy Nexus mit Tapatalk

Does nobody have any ideas?
Gesendet von meinem Galaxy Nexus mit Tapatalk

Related

[Q] Why I can't import .tsk.xml files in Tasker?

I'm trying to import a task in tasker, the task is a simple test and I've just generated it with tasker itself.
I own a non-rooted Nexus 7 and I really can't find a reason why I can't import an xml task.
When I try to import from emulated/legacy or sdcard/ (with ASTRO) I get an error that file can't be moved: "Failed to move import to my SD directory", if I try to import from emulated/0/ "The import is now accessible from my UI". Obviusly I can't find the task imported.
With the Tasker importer, I simply can't see the files in the directories, this is even more strange.
Anyone can help me with this issue? Notice that I'm a programmer so I have some knowledge, but seems mostly a tasker bug, or a permission issue, but I don't have a rooted Nexus 7.
if I try to import from emulated/0/ "The import is now accessible from my UI". Obviusly I can't find the task imported
Click on the profiles or tasks or scenes or vars button & then select import then when you see the file you want click it & it will turn up in the folder, note is there is nothing in the folder when you select it try the next one until you find it.
Hope this helps.... if so click that thanks button:thumbup:
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
deanr1977 said:
if I try to import from emulated/0/ "The import is now accessible from my UI". Obviusly I can't find the task imported
Click on the profiles or tasks or scenes or vars button & then select import then when you see the file you want click it & it will turn up in the folder, note is there is nothing in the folder when you select it try the next one until you find it.
Hope this helps.... if so click that thanks button:thumbup:
sent via Tapatalk 2 with my super modded SGS3 which is pimped out with Foxhnd rising v2.5
Click to expand...
Click to collapse
Nope, as I've said, all folders are empty (in tasker).
Same problem here on Nexus 4. Any solution? Searched the web and didn't find a solution yet. Even if I export a profile or something, I can't find it on the sdcard.
lopez1_de said:
Same problem here on Nexus 4. Any solution? Searched the web and didn't find a solution yet. Even if I export a profile or something, I can't find it on the sdcard.
Click to expand...
Click to collapse
I have found the solution and it's terrible for me, I mean, the solution is ok, what I discovered made me feel really stupid however.
If you keep pressing the project and then import, it will import ONLY project files.
To import a task, you must long-tap the TASKS tab (yea the button used to switch to tasks tab), and you can import from there...
Fire-Dragon-DoL said:
Nope, as I've said, all folders are empty (in tasker).
Click to expand...
Click to collapse
lopez1_de said:
Same problem here on Nexus 4. Any solution? Searched the web and didn't find a solution yet. Even if I export a profile or something, I can't find it on the sdcard.
Click to expand...
Click to collapse
Same here, the xml files exist, I can see them with file manager tools, but not using the tasker import command...strange. And, I know this worked before, as I've used this before for downloaded xmls...
Just downloaded an xml and it doesn't see it either, so something is definitely wonky...
Really weird behavior.
Tasker 4.1u3m
I dumped a bunch of .prj.xml | .tsk.xml | prf.xml files into storage/sdcard0/tasker folder
Click HOME | Import | <- (back arrow to go up one level)
I see only Battery.prj.xml (one project file), but none of the other files I put in there (all on same level)
I can verify the many files (14) are there from USB storage mode | Silm File Manager | ES File Explorer
Click-Hold Tasks | Import | <-
I can see all the Tasks .xml files!
What the heck, this is not usual behavior.
emagin said:
Really weird behavior.
Tasker 4.1u3m
I dumped a bunch of .prj.xml | .tsk.xml | prf.xml files into storage/sdcard0/tasker folder
Click HOME | Import | <- (back arrow to go up one level)
I see only Battery.prj.xml (one project file), but none of the other files I put in there (all on same level)
I can verify the many files (14) are there from USB storage mode | Silm File Manager | ES File Explorer
Click-Hold Tasks | Import | <-
I can see all the Tasks .xml files!
What the heck, this is not usual behavior.
Click to expand...
Click to collapse
I was just searching for the answer to the exact same problem. I went back to the Tasker developers site and tried this,
"ensure that Menu / Prefs / UI / Beginner Mode is unchecked"
I can now see the xml files I downloaded and I can now see options to import.
Thanks dude, now it works greatly.
Inviato dal mio Galaxy Nexus utilizzando Tapatalk
Lifesaver
Fire-Dragon-DoL said:
I have found the solution and it's terrible for me, I mean, the solution is ok, what I discovered made me feel really stupid however.
If you keep pressing the project and then import, it will import ONLY project files.
To import a task, you must long-tap the TASKS tab (yea the button used to switch to tasks tab), and you can import from there...
Click to expand...
Click to collapse
I could debase myself in any number of ways for you....been searching for how to do this off and on for months. OUTSTANDING!!!!!!!
cant import profiles
Hey, guys, I'm having the same issue here. I have a nexus 4, original rom with kitkat.
Already imported in the past several profiles. After I reinstalled tasker I can't import a single profile, although I do have a profile folder.
What I've already done:
- erased the profiles folder and created a new one.
- reinstalled tasker
- tryed both in the beginner and advanced mode
- reset all settings of the android (total despair)
What else should I do?
Tks!!!
---------- Post added at 01:53 PM ---------- Previous post was at 01:07 PM ----------
OH, it's also happening with tasks. I have the tasks folder, but can't import tasks either. It's happening for about 14 days now.
Tks again.
I'm having the same issue. Worked at first, but after about a week with Tasker it shows nothing. I'm on the right tab and have beginner mode off.
Change the source
Fire-Dragon-DoL said:
I'm trying to import a task in tasker, the task is a simple test and I've just generated it with tasker itself.
I own a non-rooted Nexus 7 and I really can't find a reason why I can't import an xml task.
When I try to import from emulated/legacy or sdcard/ (with ASTRO) I get an error that file can't be moved: "Failed to move import to my SD directory", if I try to import from emulated/0/ "The import is now accessible from my UI". Obviusly I can't find the task imported.
With the Tasker importer, I simply can't see the files in the directories, this is even more strange.
Anyone can help me with this issue? Notice that I'm a programmer so I have some knowledge, but seems mostly a tasker bug, or a permission issue, but I don't have a rooted Nexus 7.
Click to expand...
Click to collapse
1 download the tsk.xml file.
2 open it and inside it change cl=AppIcon to cl=Img
3 Go into Tasker and go into the relevant tab (in this case tasks) press the tab name again and press import.
4 Browse to your file and open it.
5 done!
You are a genius
fire-dragon-dol said:
i have found the solution and it's terrible for me, i mean, the solution is ok, what i discovered made me feel really stupid however.
If you keep pressing the project and then import, it will import only project files.
To import a task, you must long-tap the tasks tab (yea the button used to switch to tasks tab), and you can import from there...
Click to expand...
Click to collapse
thanks mate*!*
problem solved this is the answer*! ♥‿♥
Fire-Dragon-DoL said:
I have found the solution and it's terrible for me, I mean, the solution is ok, what I discovered made me feel really stupid however.
If you keep pressing the project and then import, it will import ONLY project files.
To import a task, you must long-tap the TASKS tab (yea the button used to switch to tasks tab), and you can import from there...
Click to expand...
Click to collapse
Hello and thank you very much for the solution I spent all night for this same problem.

[Q] Lg-P760 [CM 10.1 Stable] Transparente Statusbar

Wie kann ich die Statusbar unter Cyanogenmod 10.1 Stable Transparent machen?
Could you say that in english please?
Sent from my LG-P765 using Tapatalk
With Xposed Framework and GravityBox
Gesendet von meinem LG-P760 mit Tapatalk 4
or with the Hybrid Properties
He/she said CM not PA/PAC
Gesendet von meinem LG-P760 mit Tapatalk 4

Crosswalk runtime

I developed some hybrid html5 android app, with crosswalk runtime 14 shared for all my app, from I updated to the last crosswalk version (18), some of these don't work correctly.
The apps are based on jquery mobile mainly.
Anyone knows the changes in the crosswalk runtime that could block the correct work of these apps?
Note: I only use Cordova plugin to close the app.
Thanks a lot in advance..
Regards.
David.
Enviado desde mi D2303 mediante Tapatalk
Hi,
try the github url: https://github.com/crosswalk-project/crosswalk
Here is a complete changelog with complete description of changes from 14 to 18:
https://crosswalk-project.org/documentation/release-notes.html
As you can see there are quite some things that were refactored, also make sure you are using the latest version of Cordova and JQM. Also, there are some deprecated functionalities in Jquery since 2015, so you may need to check it as well.

[Q] Custom icone toggle

Hello everybody,
I would like to modify the icons of the tiles of the quick adjustment panel ( app or xposed or modifi systemui.apk).
I can not find a tutorial that works for me.
An idea please
thank you in advance
Try "Apk Editor" from Google play.
Απουσιολόγος said:
Try "Apk Editor" from Google play.
Click to expand...
Click to collapse
Thanks
It's weird I can not find the icons in the systemUI.apk
I take a look for you asap!. But I think they are XML files . No pngs images
Gesendet von meinem P9000 mit Tapatalk
Bradco said:
It's weird I can not find the icons in the systemUI.apk
Click to expand...
Click to collapse
They will probably be in
SystemUI<simple edit<images
Regards,
milkyway3
icons are not images/ pngs .
that was in android 5 and 5.1 . but now they are xml files.
example:
the location icon
Code:
there it creates the icon via
Code:
pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"
and set the height and width with the upper vector one.. ( vector android:height="17.0dip" android:width="17.0dip)
you can change the hex color #ffffff to what you want
i will test and tell you what you can do to change it into pngs images. (this will take a bit because of real life and work etc.. a bit busy)
milkyway3 said:
They will probably be in
SystemUI<simple edit<images
Regards,
milkyway3
Click to expand...
Click to collapse
I modify the picture framed in green because it is in png
But the picture framed in red I did not succeed.
I found png but it was not the one
skeleton1911 said:
icons are not images/ pngs .
that was in android 5 and 5.1 . but now they are xml files.
example:
the location icon
Code:
there it creates the icon via
Code:
pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"
and set the height and width with the upper vector one.. ( vector android:height="17.0dip" android:width="17.0dip)
you can change the hex color #ffffff to what you want
i will test and tell you what you can do to change it into pngs images. (this will take a bit because of real life and work etc.. a bit busy)
Click to expand...
Click to collapse
No problem skeleton, I understand, you have already do a lot for our p9000
Bradco said:
I modify the picture framed in green because it is in png
But the picture framed in red I did not succeed.
I found png but it was not the one
No problem skeleton, I understand, you have already do a lot for our p9000
Click to expand...
Click to collapse
You will get an answer and a how to , as soon as possible
Gesendet von meinem P9000 mit Tapatalk
skeleton1911 said:
You will get an answer and a how to , as soon as possible
Gesendet von meinem P9000 mit Tapatalk
Click to expand...
Click to collapse
Thank you very much, I wonder how can display png via an xml file, The image should be stored somewhere
Bradco said:
Thank you very much, I wonder how can display png via an xml file, The image should be stored somewhere
Click to expand...
Click to collapse
Vector files are not stored but generated. You could try putting the custom png files you want in your applicable drawable folder (drawable-xxxhdpi-v4 for example) named exactly like the xml you are replacing (except it will end in . png obviously). Sometimes android looks first for png before it moves to the vector (drawable) folder.
WiFi is usually ic_qs_wifi_0.xml and ic_qs_wifi_full_0.xml from 0 1, 2, 3, and 4.
Bluetooth is ic_bluetooth_off.xml and one for on.
Airplane might be ic_signal_airplane_enable.xml and disable
Tulsadiver said:
Vector files are not stored but generated. You could try putting the custom png files you want in your applicable drawable folder (drawable-xxxhdpi-v4 for example) named exactly like the xml you are replacing (except it will end in . png obviously). Sometimes android looks first for png before it moves to the vector (drawable) folder.
WiFi is usually ic_qs_wifi_0.xml and ic_qs_wifi_full_0.xml from 0 1, 2, 3, and 4.
Bluetooth is ic_bluetooth_off.xml and one for on.
Airplane might be ic_signal_airplane_enable.xml and disable
Click to expand...
Click to collapse
Thanks mate for this information ( 1/2 months I'm looking for )
Can i edit with notepad++ ?
What do you think about TickleMyAndroid for editing apk ?
Bradco said:
Thanks mate for this information ( 1/2 months I'm looking for )
Can i edit with notepad++ ?
What do you think about TickleMyAndroid for editing apk ?
Click to expand...
Click to collapse
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Tulsadiver said:
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Click to expand...
Click to collapse
So, The files in the zip you gave me does not exist in png but in xml in systemUI.apk
My xml files have the same name as the png that you gave me.
As the png files does not exist in my systemUI.apk I take those you gave me and I put them in:
- systemUI / res / drawable-xxhdpi-v4
or
- drawable-xhdpi-v4 ?
Thank you for all this informations.
EDIT : For the size of the PNG in pixel, what dimension should it use ?
Bradco said:
So, The files in the zip you gave me does not exist in png but in xml in systemUI.apk
My xml files have the same name as the png that you gave me.
As the png files does not exist in my systemUI.apk I take those you gave me and I put them in:
- systemUI / res / drawable-xxhdpi-v4
or
- drawable-xhdpi-v4 ?
Thank you for all this informations.
EDIT : For the size of the PNG in pixel, what dimension should it use ?
Click to expand...
Click to collapse
It doesn't matter where you add them.. I would place them into xxhdpi.
The dimensions of the icons is also not that important. In XML file it's 48dpi. If your icons are xhdpi it should be fine
Gesendet von meinem P9000 mit Tapatalk
Tulsadiver said:
I highly recommend tma always. If you just want to change the colors, yes use notepad ++ on the vector xml's themselves by changing the fill colors. If you have some png files in mind, try just renaming them, if necessary, to the same names as the vectors like I mentioned above and drop them in one of your drawable folders, xhdpi, xxhdpi and see if it works.
Edit: Unzip and see if these are named like yours. Drop them in a drawable folder. Recompile, put on your phone and see if they show up. They won't fit right but you'll know whether or not you can use pngs. Always make a backup first.
Click to expand...
Click to collapse
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1. Theming menu
2. Recompile files
3. Recompile with original signature
4. Select systemui.apk
5. Then create flashable zip file
6. Add system/priv-app/ file to project android 5.0
7. Select out folder
8. Create standard zip file
9. Flash with the phone
But the problem
Interface system has stopped
Bradco said:
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1.Theming menu
2.Recompile files
3.Recompile with original signature
4.Select systemui.apk
5.Then create flashable zip file
6.Add system/priv-app/ file to project android 5.0
7.Select out folder
8.Create standard zip file
9.Flash with the phone
But the problem
Interface system has stopped
Click to expand...
Click to collapse
Have you signed it? If yes don't do it.
Do you use the latest apktool?
Btw . I use androidmultitool with latest apktool to make my rom themes and modifications.
Gesendet von meinem P9000 mit Tapatalk
skeleton1911 said:
Have you signed it? If yes don't do it.
Do you use the latest apktool?
Gesendet von meinem P9000 mit Tapatalk
Click to expand...
Click to collapse
Yes with original signature
Version of apktool = 2.2.1
I have already managed to change the icons with this same configuration and process.
I will go with a clean install of the phone, what do you think ?
Bradco said:
I test with png for airplane mod, i put the png on drawable xxhdpi v4 with this name --Airplane might be ic_signal_airplane_disable.png--
with TMA :
1. Theming menu
2. Recompile files
3. Recompile with original signature
4. Select systemui.apk
5. Then create flashable zip file
6. Add system/priv-app/ file to project android 5.0
7. Select out folder
8. Create standard zip file
9. Flash with the phone
But the problem
Interface system has stopped
Click to expand...
Click to collapse
ic_signal_airplane_disable, is this how your xml file is named? You didn't put "Airplane might be" in the name, did you?
Before decompiling, did you install your framework(s)?
Apktool 2.2.2 is the latest. You should update your TickleMyAndroid
Tulsadiver said:
ic_signal_airplane_disable, is this how your xml file is named? You didn't put "Airplane might be" in the name, did you?
Before decompiling, did you install your framework(s)?
Apktool 2.2.2 is the latest. You should update your TickleMyAndroid
Click to expand...
Click to collapse
The name of my xml file is ic_signal_airplane_disable.xml i name a png like that ic_signal_airplane_disable..png
I just realized that I put two points to the extension i'am an idiot )
you might with TMA ? yes framework(s) is installed on my computer.
y update TMA and clean my phone it's better
could you tell me the process for recompile ans create zip with TMA ?

Verge System-Update

Bravo, finally German available [emoji1376]
Gesendet von meinem MI 8 mit Tapatalk
I would like to post a screenshot, but I do not have sufficient permission [emoji53]
The version number is 3.3.0.13
Additional languages ​​are Russian, Spanish, Italian, French and German.
Version is 3.2.0.13
pittrich67 said:
Bravo, finally German available [emoji1376]
Gesendet von meinem MI 8 mit Tapatalk
I would like to post a screenshot, but I do not have sufficient permission [emoji53]
The version number is 3.3.0.13
Additional languages ​​are Russian, Spanish, Italian, French and German.
Click to expand...
Click to collapse
stefabax73 said:
Version is 3.2.0.13
Click to expand...
Click to collapse
Sorry
And the German translations are... somewhat misleading...

Categories

Resources